File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -498,11 +498,11 @@ function(MFC_SETUP_TARGET)
498
498
# GH-200 Unified Memory Support
499
499
if (MFC_Unified )
500
500
target_compile_options (${ARGS_TARGET}
501
- PRIVATE -gpu=mem:unified -cuda
501
+ PRIVATE -gpu=mem:unified:managedalloc -cuda
502
502
)
503
503
# "This option must appear in both the compile and link lines" -- NVHPC Docs
504
504
target_link_options (${ARGS_TARGET}
505
- PRIVATE -gpu=mem:unified -cuda
505
+ PRIVATE -gpu=mem:unified:managedalloc -cuda
506
506
)
507
507
endif ()
508
508
Original file line number Diff line number Diff line change 27
27
% endif
28
28
29
29
# NVHPC and CUDA env vars
30
- export NV_ACC_USE_MALLOC=0 # use cudaMallocManaged instead of malloc ( compiled using -gpu=mem:unified )
30
+ export NV_ACC_USE_MALLOC=0 # use cudaMallocManaged instead of malloc ( compiled using -gpu=mem:unified:managedalloc )
31
31
export NVCOMPILER_ACC_NO_MEMHINTS=1 # disable implicit compiler hints
32
32
# export CUDA_BUFFER_PAGE_IN_THRESHOLD_MS=0.001 # workaround for copying to/from unpopulated buffers on GH
33
33
You can’t perform that action at this time.
0 commit comments