SWDEV-438503 - Enable unified memory test

Change-Id: I7bfc8600521d78d8c73ab626f9846cd268651279


[ROCm/hip-tests commit: 22485fc93f]
This commit is contained in:
taosang2
2023-12-21 10:46:59 -05:00
committed by Rakesh Roy
parent 0c242e09cb
commit b543624e2c
2 changed files with 39 additions and 8 deletions
@@ -98,7 +98,7 @@ TEST_CASE("test_svm_byte_granularity") {
unsigned int** error_counts = (unsigned int**)malloc(sizeof(void*) * num_devices);
for(unsigned int i=0; i < num_devices; i++) {
// hipHostMallocNonCoherent means CL_MEM_SVM_FINE_GRAIN_BUFFER + CL_MEM_SVM_ATOMICS
// hipHostMallocCoherent means CL_MEM_SVM_FINE_GRAIN_BUFFER + CL_MEM_SVM_ATOMICS
// We need atomic inc among different GPUs
HIP_CHECK(hipHostMalloc(&error_counts[i], sizeof(unsigned int) * num_elements,
hipHostMallocCoherent));