File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -801,6 +801,9 @@ if(ENABLE_ROCM)
801
801
endif ()
802
802
message ("Project HIP_FLAGS: ${CMAKE_HIP_FLAGS} " )
803
803
option (QMC_DISABLE_HIP_HOST_REGISTER "Disable hipHostRegister for pinning host memory" OFF )
804
+ if (QMC_DISABLE_HIP_HOST_REGISTER)
805
+ message (STATUS "Use of hipHostRegister disabled" )
806
+ endif ()
804
807
endif (ENABLE_ROCM)
805
808
806
809
if (USE_NVTX_API AND QMC_CUDA2HIP)
@@ -882,8 +885,11 @@ if(${COMPILER} MATCHES "Clang" AND QMC_CUDA2HIP AND ENABLE_OFFLOAD)
882
885
else ()
883
886
set (QMC_OFFLOAD_MEM_ASSOCIATED_DEFAULT OFF )
884
887
endif ()
885
- cmake_dependent_option(QMC_OFFLOAD_MEM_ASSOCIATED "Manage OpenMP memory allocations via the vendor runtime "
888
+ cmake_dependent_option(QMC_OFFLOAD_MEM_ASSOCIATED "Use omp_target_associate_ptr instead of direct OpenMP offload maps in dual-space allocators "
886
889
${QMC_OFFLOAD_MEM_ASSOCIATED_DEFAULT} "ENABLE_OFFLOAD;ENABLE_CUDA;NOT ENABLE_SYCL" OFF )
890
+ if (QMC_OFFLOAD_MEM_ASSOCIATED)
891
+ message (STATUS "Use omp_target_associate_ptr instead of direct OpenMP offload maps in dual-space allocators" )
892
+ endif ()
887
893
888
894
#-------------------------------------------------------------------
889
895
# set up VTune ittnotify library
Original file line number Diff line number Diff line change @@ -356,6 +356,8 @@ the path to the source directory.
356
356
357
357
QMC_OFFLOAD_MEM_ASSOCIATED ON/OFF. ON by default only when using both OpenMP offload and HIP
358
358
programming models and the host compiler is Clang based.
359
+ Use omp_target_associate_ptr instead of direct OpenMP offload maps in dual-space allocators.
360
+ Allocate device memory using vendor runtimes instead of the OpenMP runtime.
359
361
QMC_DISABLE_HIP_HOST_REGISTER ON/OFF(default). If ON, make all the use of hipHostRegister/Unregister
360
362
as no-op, namely disabling all the use of pinned memory.
361
363
You can’t perform that action at this time.
0 commit comments