P4 to Git Change 1476496 by gandryey@gera-w8 on 2017/10/30 17:36:16

SWDEV-79445 - Fix a crash on rocm systems
	- Allow the persistent direct map only if persistent_host_ptr_ is available. On Rocm setup without amdgpu-pro OCL will use system memory instead of persistent

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.hpp#11 edit
This commit is contained in:
foreman
2017-10-30 17:44:53 -04:00
parent c2105d8f16
commit bea710d2e5
+1 -2
Vedi File
@@ -85,8 +85,7 @@ class Memory : public device::Memory {
size_t version() const { return version_; }
bool IsPersistentDirectMap() const {
return ((owner() != nullptr) && (owner()->getMemFlags() & CL_MEM_USE_PERSISTENT_MEM_AMD)); }
bool IsPersistentDirectMap() const { return (persistent_host_ptr_ != nullptr); }
void* PersistentHostPtr() const { return persistent_host_ptr_; }