Skip to content

Commit 2839344

Browse files
committed
[CUDA] Change bool to unsigned int
Seeing an error on Windows about corrupted stack memory around the `IsManaged` variable which goes away if I change its type to `unsigned int`.
1 parent ea00936 commit 2839344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/adapters/cuda/usm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ ur_result_t USMFreeImpl(ur_context_handle_t Context, void *Pointer) {
9999
ur_result_t Result = UR_RESULT_SUCCESS;
100100
try {
101101
ScopedContext Active(Context);
102-
bool IsManaged;
102+
unsigned int IsManaged;
103103
unsigned int Type;
104104
void *AttributeValues[2] = {&IsManaged, &Type};
105105
CUpointer_attribute Attributes[2] = {CU_POINTER_ATTRIBUTE_IS_MANAGED,

0 commit comments

Comments
 (0)