This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Fix an issue of wrong return type of DeviceRTLTy::getNumOfDevices
ClosedPublic

Authored by tianshilei1992 on May 1 2020, 12:11 PM.

Details

Summary

There is a typo in DeviceRTLTy::getNumOfDevices that the type of its return value is bool. It will lead to a problem of wrong device number returned from omp_get_num_devices.

Diff Detail

Event Timeline

tianshilei1992 created this revision.May 1 2020, 12:11 PM
Herald added a project: Restricted Project. · View Herald Transcript
jdoerfert accepted this revision.May 3 2020, 9:23 AM

LGTM. Feel free to commit such obvious fixes w/o review.

This revision is now accepted and ready to land.May 3 2020, 9:23 AM
This revision was automatically updated to reflect the committed changes.