HomePhabricator

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

Authored by tianshilei1992 on May 3 2020, 12:58 PM.

Description

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

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.

Reviewers: jdoerfert

Reviewed By: jdoerfert

Subscribers: yaxunl, guansong, openmp-commits

Tags: #openmp

Differential Revision: https://reviews.llvm.org/D79255

Details

Committed
tianshilei1992May 3 2020, 12:59 PM
Reviewer
jdoerfert
Differential Revision
D79255: [OpenMP] Fix an issue of wrong return type of DeviceRTLTy::getNumOfDevices
Parents
rG81e48ae2b4a5: [clangd] Reland LSP latency test
Branches
Unknown
Tags
Unknown