We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03d45cc commit 95ab6feCopy full SHA for 95ab6fe
offload/libomptarget/OpenMP/API.cpp
@@ -93,8 +93,7 @@ EXTERN int omp_get_device_num(void) {
93
EXTERN int omp_get_initial_device(void) {
94
TIMESCOPE();
95
OMPT_IF_BUILT(ReturnAddressSetterRAII RA(__builtin_return_address(0)));
96
- int NumDevices = omp_get_num_devices();
97
- int HostDevice = NumDevices == 0 ? -1 : NumDevices;
+ int HostDevice = omp_get_num_devices();
98
DP("Call to omp_get_initial_device returning %d\n", HostDevice);
99
return HostDevice;
100
}
0 commit comments