Skip to content

Commit 9766fb1

Browse files
committed
set spec constant id to INT_MAX - 1
1 parent e56db5f commit 9766fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unified-runtime/source/loader/layers/sanitizer/sanitizer_common/sanitizer_libdevice.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace ur_sanitizer_layer {
2222
enum class DeviceType : uint32_t { UNKNOWN = 0, CPU, GPU_PVC, GPU_DG2 };
2323

2424
// Try to use a larger ID number to avoid conflict with user ID.
25-
constexpr int SpecConstantDeviceTyID = 99;
25+
constexpr int SpecConstantDeviceTyID = INT32_MAX - 1;
2626

2727
inline const char *ToString(DeviceType Type) {
2828
switch (Type) {

0 commit comments

Comments
 (0)