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 500e693 commit 6a94375Copy full SHA for 6a94375
source/adapters/level_zero/usm.cpp
@@ -308,6 +308,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urUSMHostAlloc(
308
uint32_t Align = USMDesc ? USMDesc->align : 0;
309
// L0 supports alignment up to 64KB and silently ignores higher values.
310
// We flag alignment > 64KB as an invalid value.
311
+ // L0 spec says that alignment values that are not powers of 2 are invalid.
312
if (Align > 65536 || Align & (Align - 1) != 0)
313
return UR_RESULT_ERROR_INVALID_VALUE;
314
0 commit comments