Skip to content

Commit 2f548ca

Browse files
authored
Merge pull request #1845 from aarongreig/aaron/removePowerOf2FillVal
Remove the power of 2 pattern size requirement from USMFill
2 parents 9d3bce6 + dcd3c18 commit 2f548ca

File tree

6 files changed

+0
-16
lines changed

6 files changed

+0
-16
lines changed

include/ur_api.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6894,7 +6894,6 @@ urEnqueueMemUnmap(
68946894
/// - ::UR_RESULT_ERROR_INVALID_SIZE
68956895
/// + `patternSize == 0 || size == 0`
68966896
/// + `patternSize > size`
6897-
/// + `(patternSize & (patternSize - 1)) != 0`
68986897
/// + `size % patternSize != 0`
68996898
/// + If `size` is higher than the allocation size of `ptr`
69006899
/// - ::UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST
@@ -8388,7 +8387,6 @@ urCommandBufferAppendUSMMemcpyExp(
83888387
/// - ::UR_RESULT_ERROR_INVALID_SIZE
83898388
/// + `patternSize == 0 || size == 0`
83908389
/// + `patternSize > size`
8391-
/// + `(patternSize & (patternSize - 1)) != 0`
83928390
/// + `size % patternSize != 0`
83938391
/// + If `size` is higher than the allocation size of `ptr`
83948392
/// - ::UR_RESULT_ERROR_INVALID_MEM_OBJECT

scripts/core/enqueue.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,6 @@ returns:
10611061
- $X_RESULT_ERROR_INVALID_SIZE:
10621062
- "`patternSize == 0 || size == 0`"
10631063
- "`patternSize > size`"
1064-
- "`(patternSize & (patternSize - 1)) != 0`"
10651064
- "`size % patternSize != 0`"
10661065
- "If `size` is higher than the allocation size of `ptr`"
10671066
- $X_RESULT_ERROR_INVALID_EVENT_WAIT_LIST:

scripts/core/exp-command-buffer.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,6 @@ returns:
408408
- $X_RESULT_ERROR_INVALID_SIZE:
409409
- "`patternSize == 0 || size == 0`"
410410
- "`patternSize > size`"
411-
- "`(patternSize & (patternSize - 1)) != 0`"
412411
- "`size % patternSize != 0`"
413412
- "If `size` is higher than the allocation size of `ptr`"
414413
- $X_RESULT_ERROR_INVALID_MEM_OBJECT

source/loader/layers/validation/ur_valddi.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5979,10 +5979,6 @@ __urdlllocal ur_result_t UR_APICALL urEnqueueUSMFill(
59795979
return UR_RESULT_ERROR_INVALID_SIZE;
59805980
}
59815981

5982-
if ((patternSize & (patternSize - 1)) != 0) {
5983-
return UR_RESULT_ERROR_INVALID_SIZE;
5984-
}
5985-
59865982
if (size % patternSize != 0) {
59875983
return UR_RESULT_ERROR_INVALID_SIZE;
59885984
}
@@ -8089,10 +8085,6 @@ __urdlllocal ur_result_t UR_APICALL urCommandBufferAppendUSMFillExp(
80898085
return UR_RESULT_ERROR_INVALID_SIZE;
80908086
}
80918087

8092-
if ((patternSize & (patternSize - 1)) != 0) {
8093-
return UR_RESULT_ERROR_INVALID_SIZE;
8094-
}
8095-
80968088
if (size % patternSize != 0) {
80978089
return UR_RESULT_ERROR_INVALID_SIZE;
80988090
}

source/loader/ur_libapi.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5887,7 +5887,6 @@ ur_result_t UR_APICALL urEnqueueMemUnmap(
58875887
/// - ::UR_RESULT_ERROR_INVALID_SIZE
58885888
/// + `patternSize == 0 || size == 0`
58895889
/// + `patternSize > size`
5890-
/// + `(patternSize & (patternSize - 1)) != 0`
58915890
/// + `size % patternSize != 0`
58925891
/// + If `size` is higher than the allocation size of `ptr`
58935892
/// - ::UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST
@@ -7540,7 +7539,6 @@ ur_result_t UR_APICALL urCommandBufferAppendUSMMemcpyExp(
75407539
/// - ::UR_RESULT_ERROR_INVALID_SIZE
75417540
/// + `patternSize == 0 || size == 0`
75427541
/// + `patternSize > size`
7543-
/// + `(patternSize & (patternSize - 1)) != 0`
75447542
/// + `size % patternSize != 0`
75457543
/// + If `size` is higher than the allocation size of `ptr`
75467544
/// - ::UR_RESULT_ERROR_INVALID_MEM_OBJECT

source/ur_api.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5023,7 +5023,6 @@ ur_result_t UR_APICALL urEnqueueMemUnmap(
50235023
/// - ::UR_RESULT_ERROR_INVALID_SIZE
50245024
/// + `patternSize == 0 || size == 0`
50255025
/// + `patternSize > size`
5026-
/// + `(patternSize & (patternSize - 1)) != 0`
50275026
/// + `size % patternSize != 0`
50285027
/// + If `size` is higher than the allocation size of `ptr`
50295028
/// - ::UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST
@@ -6404,7 +6403,6 @@ ur_result_t UR_APICALL urCommandBufferAppendUSMMemcpyExp(
64046403
/// - ::UR_RESULT_ERROR_INVALID_SIZE
64056404
/// + `patternSize == 0 || size == 0`
64066405
/// + `patternSize > size`
6407-
/// + `(patternSize & (patternSize - 1)) != 0`
64086406
/// + `size % patternSize != 0`
64096407
/// + If `size` is higher than the allocation size of `ptr`
64106408
/// - ::UR_RESULT_ERROR_INVALID_MEM_OBJECT

0 commit comments

Comments
 (0)