SWDEV-438503 - Enable unified memory test

Change-Id: I7bfc8600521d78d8c73ab626f9846cd268651279
Этот коммит содержится в:
taosang2
2023-12-21 10:46:59 -05:00
коммит произвёл Rakesh Roy
родитель 95167b9d96
Коммит 22485fc93f
2 изменённых файлов: 39 добавлений и 8 удалений
+1 -1
Просмотреть файл
@@ -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));