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 6a94375 commit e256f54Copy full SHA for e256f54
source/adapters/level_zero/usm.cpp
@@ -480,7 +480,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urUSMSharedAlloc(
480
// L0 supports alignment up to 64KB and silently ignores higher values.
481
// We flag alignment > 64KB as an invalid value.
482
// L0 spec says that alignment values that are not powers of 2 are invalid.
483
- if (Alignment > 65536 || Alignment && (Alignment - 1) != 0)
+ if (Alignment > 65536 || Alignment & (Alignment - 1) != 0)
484
return UR_RESULT_ERROR_INVALID_VALUE;
485
486
ur_platform_handle_t Plt = Device->Platform;
0 commit comments