Skip to content

Commit 95fa847

Browse files
authored
[CUDA] Use bitwise | instead of logical || for enum (#18542)
Caught by a compiler warning.
1 parent f128444 commit 95fa847

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unified-runtime/source/adapters/cuda/device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
10961096
ur_device_throttle_reasons_flags_t ThrottleReasons = 0;
10971097
constexpr unsigned long long NVMLThrottleFlags[] = {
10981098
nvmlClocksThrottleReasonSwPowerCap,
1099-
nvmlClocksThrottleReasonHwThermalSlowdown ||
1099+
nvmlClocksThrottleReasonHwThermalSlowdown |
11001100
nvmlClocksThrottleReasonSwThermalSlowdown,
11011101
nvmlClocksThrottleReasonHwPowerBrakeSlowdown,
11021102
nvmlClocksThrottleReasonApplicationsClocksSetting};

0 commit comments

Comments
 (0)