diff --git a/openmp/libomptarget/plugins/cuda/src/rtl.cpp b/openmp/libomptarget/plugins/cuda/src/rtl.cpp index 4ad58e290252dc..7e089a17370e5e 100644 --- a/openmp/libomptarget/plugins/cuda/src/rtl.cpp +++ b/openmp/libomptarget/plugins/cuda/src/rtl.cpp @@ -380,7 +380,7 @@ class DeviceRTLTy { return DeviceId >= 0 && DeviceId < NumberOfDevices; } - bool getNumOfDevices() const { return NumberOfDevices; } + int getNumOfDevices() const { return NumberOfDevices; } void setRequiresFlag(const int64_t Flags) { this->RequiresFlags = Flags; }