Merge pull request #116 from bensander/enable_coh_host

Make host memory allocations coherent by default.
Этот коммит содержится в:
Maneesh Gupta
2017-07-27 10:45:32 +05:30
коммит произвёл GitHub
родитель 4f93b99f23 8b8e97ff28
Коммит 526fcb1223
7 изменённых файлов: 96 добавлений и 44 удалений
+1 -1
Просмотреть файл
@@ -289,7 +289,7 @@ hipError_t hipHostMalloc(void** ptr, size_t sizeBytes, unsigned int flags)
amFlags = amHostNonCoherent;
} else {
// depends on env variables:
amFlags = HIP_COHERENT_HOST_ALLOC ? amHostCoherent : amHostNonCoherent;
amFlags = HIP_HOST_COHERENT ? amHostCoherent : amHostNonCoherent;
}