Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions unified-runtime/include/ur_api.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions unified-runtime/scripts/core/enqueue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ returns:
- "An event in `phEventWaitList` has $X_EVENT_STATUS_ERROR."
- $X_RESULT_ERROR_INVALID_MEM_OBJECT
- $X_RESULT_ERROR_INVALID_SIZE:
- "`region.width == 0 || region.height == 0 || region.width == 0`"
- "`region.width == 0 || region.height == 0 || region.depth == 0`"
- "`bufferRowPitch != 0 && bufferRowPitch < region.width`"
- "`hostRowPitch != 0 && hostRowPitch < region.width`"
- "`bufferSlicePitch != 0 && bufferSlicePitch < region.height * (bufferRowPitch != 0 ? bufferRowPitch : region.width)`"
Expand Down Expand Up @@ -406,7 +406,7 @@ returns:
- "An event in `phEventWaitList` has $X_EVENT_STATUS_ERROR."
- $X_RESULT_ERROR_INVALID_MEM_OBJECT
- $X_RESULT_ERROR_INVALID_SIZE:
- "`region.width == 0 || region.height == 0 || region.width == 0`"
- "`region.width == 0 || region.height == 0 || region.depth == 0`"
- "`bufferRowPitch != 0 && bufferRowPitch < region.width`"
- "`hostRowPitch != 0 && hostRowPitch < region.width`"
- "`bufferSlicePitch != 0 && bufferSlicePitch < region.height * (bufferRowPitch != 0 ? bufferRowPitch : region.width)`"
Expand Down
2 changes: 1 addition & 1 deletion unified-runtime/source/adapters/hip/enqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueMemBufferReadRect(
UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST);
UR_ASSERT(!(phEventWaitList != NULL && numEventsInWaitList == 0),
UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST);
UR_ASSERT(!(region.width == 0 || region.height == 0 || region.width == 0),
UR_ASSERT(!(region.width == 0 || region.height == 0 || region.depth == 0),
UR_RESULT_ERROR_INVALID_SIZE);
UR_ASSERT(!(bufferRowPitch != 0 && bufferRowPitch < region.width),
UR_RESULT_ERROR_INVALID_SIZE);
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions unified-runtime/source/loader/ur_libapi.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions unified-runtime/source/ur_api.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ TEST_P(urEnqueueMemBufferCopyRectTest, InvalidNullPtrEventWaitList) {
TEST_P(urEnqueueMemBufferCopyRectTest, InvalidSize) {
UUR_KNOWN_FAILURE_ON(uur::NativeCPU{});

// region.width == 0 || region.height == 0 || region.width == 0
// region.width == 0 || region.height == 0 || region.depth == 0
src_region.width = 0;
ASSERT_EQ_RESULT(urEnqueueMemBufferCopyRect(
queue, src_buffer, dst_buffer, src_origin, dst_origin,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ TEST_P(urEnqueueMemBufferReadRectTest, InvalidSize) {

std::vector<uint32_t> dst(count);

// region.width == 0 || region.height == 0 || region.width == 0
// region.width == 0 || region.height == 0 || region.depth == 0
region.width = 0;
ASSERT_EQ_RESULT(urEnqueueMemBufferReadRect(
queue, buffer, true, buffer_offset, host_offset, region,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ TEST_P(urEnqueueMemBufferWriteRectTest, InvalidSize) {
std::vector<uint32_t> src(count);
std::fill(src.begin(), src.end(), 1);

// region.width == 0 || region.height == 0 || region.width == 0
// region.width == 0 || region.height == 0 || region.depth == 0
region.width = 0;
ASSERT_EQ_RESULT(urEnqueueMemBufferWriteRect(
queue, buffer, true, buffer_offset, host_offset, region,
Expand Down
Loading