Make host memory allocations coherent by default.

Associated change is to optimize event recording so it uses
agent-scope releaes (since it was only using system-scope release
to support non-coherent host mem).

Flags and environment variables exist to obtain previous behavior
if desired.  Options are documented in new performance guide.


[ROCm/clr commit: 6576201ec2]
Этот коммит содержится в:
Ben Sander committed 2017-07-26 19:20:34 -05:00
1 родитель 7fab0b5ecc
Коммит 235b60165f
7 files changed
+96 -44

No files matched your search

+1 -1
Просмотреть файл
@@ -293,7 +293,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;
}