diff --git a/hipamd/src/hip_graph_internal.hpp b/hipamd/src/hip_graph_internal.hpp index 4e0cce378c..ba7bc8d84f 100644 --- a/hipamd/src/hip_graph_internal.hpp +++ b/hipamd/src/hip_graph_internal.hpp @@ -639,6 +639,12 @@ struct Graph { LogError("Failed to reserve Virtual Address"); } + // Set Access to read write for all devices. + for (size_t dev_idx = 0; dev_idx < g_devices.size(); ++dev_idx) { + amd::Device* device = g_devices[dev_idx]->devices()[0]; + device->SetMemAccess(ptr, size, amd::Device::VmmAccess::kReadWrite); + } + return ptr; }