Skip to content

Commit ea04bc6

Browse files
committed
svm: finish all queues in svm_pointer_passing
a runtime might access the svm allocations after the clSVMFree calls otherwise.
1 parent 2ea4d16 commit ea04bc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test_conformance/SVM/test_pointer_passing.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ REGISTER_TEST(svm_pointer_passing)
127127
return -1;
128128
}
129129
}
130-
}
131130

132-
error = clFinish(cmdq);
133-
test_error(error, "clFinish failed");
131+
error = clFinish(cmdq);
132+
test_error(error, "clFinish failed");
133+
}
134134
}
135135

136136

0 commit comments

Comments
 (0)