Skip to content

Commit e256f54

Browse files
authored
Update usm.cpp
1 parent 6a94375 commit e256f54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/adapters/level_zero/usm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urUSMSharedAlloc(
480480
// L0 supports alignment up to 64KB and silently ignores higher values.
481481
// We flag alignment > 64KB as an invalid value.
482482
// L0 spec says that alignment values that are not powers of 2 are invalid.
483-
if (Alignment > 65536 || Alignment && (Alignment - 1) != 0)
483+
if (Alignment > 65536 || Alignment & (Alignment - 1) != 0)
484484
return UR_RESULT_ERROR_INVALID_VALUE;
485485

486486
ur_platform_handle_t Plt = Device->Platform;

0 commit comments

Comments
 (0)