[Openmp-commits] [PATCH] D79255: [OpenMP] Fix an issue of wrong return type of DeviceRTLTy::getNumOfDevices

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Sun May 3 13:17:38 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGcb038927ef5a: [OpenMP] Fix an issue of wrong return type of DeviceRTLTy::getNumOfDevices (authored by tianshilei1992).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79255/new/

https://reviews.llvm.org/D79255

Files:
  openmp/libomptarget/plugins/cuda/src/rtl.cpp


Index: openmp/libomptarget/plugins/cuda/src/rtl.cpp
===================================================================
--- openmp/libomptarget/plugins/cuda/src/rtl.cpp
+++ openmp/libomptarget/plugins/cuda/src/rtl.cpp
@@ -380,7 +380,7 @@
     return DeviceId >= 0 && DeviceId < NumberOfDevices;
   }
 
-  bool getNumOfDevices() const { return NumberOfDevices; }
+  int getNumOfDevices() const { return NumberOfDevices; }
 
   void setRequiresFlag(const int64_t Flags) { this->RequiresFlags = Flags; }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79255.261721.patch
Type: text/x-patch
Size: 503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20200503/8d2edb50/attachment.bin>


More information about the Openmp-commits mailing list