Skip to content

Commit 86e86f9

Browse files
Georgi Mirazchiyskikbenzie
authored andcommitted
Change the type of PointerRangeSize which was causing a stack corruption
1 parent 278b603 commit 86e86f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/adapters/hip/enqueue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ urEnqueueUSMAdvise(ur_queue_handle_t hQueue, const void *pMem, size_t size,
15661566
#if HIP_VERSION_MAJOR >= 5
15671567
// NOTE: The hipPointerGetAttribute API is marked as beta, meaning, while this
15681568
// is feature complete, it is still open to changes and outstanding issues.
1569-
unsigned int PointerRangeSize = 0;
1569+
size_t PointerRangeSize = 0;
15701570
UR_CHECK_ERROR(hipPointerGetAttribute(
15711571
&PointerRangeSize, HIP_POINTER_ATTRIBUTE_RANGE_SIZE,
15721572
static_cast<hipDeviceptr_t>(HIPDevicePtr)));

0 commit comments

Comments
 (0)