Skip to content

Commit 78b35c7

Browse files
committed
Print more in cmake.
1 parent 8cd0e02 commit 78b35c7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CMakeLists.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,9 @@ if(ENABLE_ROCM)
801801
endif()
802802
message("Project HIP_FLAGS: ${CMAKE_HIP_FLAGS}")
803803
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()
804807
endif(ENABLE_ROCM)
805808

806809
if(USE_NVTX_API AND QMC_CUDA2HIP)
@@ -882,8 +885,11 @@ if(${COMPILER} MATCHES "Clang" AND QMC_CUDA2HIP AND ENABLE_OFFLOAD)
882885
else()
883886
set(QMC_OFFLOAD_MEM_ASSOCIATED_DEFAULT OFF)
884887
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"
886889
${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()
887893

888894
#-------------------------------------------------------------------
889895
# set up VTune ittnotify library

docs/installation.rst

+2
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,8 @@ the path to the source directory.
356356

357357
QMC_OFFLOAD_MEM_ASSOCIATED ON/OFF. ON by default only when using both OpenMP offload and HIP
358358
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.
359361
QMC_DISABLE_HIP_HOST_REGISTER ON/OFF(default). If ON, make all the use of hipHostRegister/Unregister
360362
as no-op, namely disabling all the use of pinned memory.
361363

0 commit comments

Comments
 (0)