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)
498498 # GH-200 Unified Memory Support
499499 if (MFC_Unified)
500500 target_compile_options (${ARGS_TARGET}
501- PRIVATE -gpu=mem:unified -cuda
501+ PRIVATE -gpu=mem:unified:managedalloc -cuda
502502 )
503503 # "This option must appear in both the compile and link lines" -- NVHPC Docs
504504 target_link_options (${ARGS_TARGET}
505- PRIVATE -gpu=mem:unified -cuda
505+ PRIVATE -gpu=mem:unified:managedalloc -cuda
506506 )
507507 endif ()
508508
Original file line number Diff line number Diff line change 2727% endif
2828
2929# 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 )
3131export NVCOMPILER_ACC_NO_MEMHINTS=1 # disable implicit compiler hints
3232# export CUDA_BUFFER_PAGE_IN_THRESHOLD_MS=0.001 # workaround for copying to/from unpopulated buffers on GH
3333
You can’t perform that action at this time.
0 commit comments