Skip to content

Commit de4f26f

Browse files
carlobertollironlieb
authored andcommitted
[OpenMP] Prefault all synchornous copies on APUs.
On APUs, align memory size after which we prefault to the same value as the size after which we switch from asynchronous to synchronous memory copies. Prefault memory copy size can still be controlled with independent environment variable for performance profiling. Change-Id: I1549aeb4c5fadcfdf03490a115e230106e2b4381
1 parent 6483c48 commit de4f26f

File tree

1 file changed

+1
-1
lines changed
  • openmp/libomptarget/plugins-nextgen/amdgpu/src

1 file changed

+1
-1
lines changed

openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2480,7 +2480,7 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy {
24802480
OMPX_SyncCopyBack("LIBOMPTARGET_SYNC_COPY_BACK", true),
24812481
OMPX_APUPrefaultMemcopy("LIBOMPTARGET_APU_PREFAULT_MEMCOPY", "true"),
24822482
OMPX_APUPrefaultMemcopySize("LIBOMPTARGET_APU_PREFAULT_MEMCOPY_SIZE",
2483-
2 * 1024 * 1024), // 2MB
2483+
1 * 1024 * 1024), // 1MB
24842484
AMDGPUStreamManager(*this, Agent), AMDGPUEventManager(*this),
24852485
AMDGPUSignalManager(*this), Agent(Agent), HostDevice(HostDevice) {}
24862486

0 commit comments

Comments
 (0)