Skip to content

Commit

Permalink
Turn off managed memory for GPU tests (Exawind#620)
Browse files Browse the repository at this point in the history
* Turn off managed memory for GPU tests.

* Abort on out of GPU memory for tests.
  • Loading branch information
jrood-nrel authored May 9, 2022
1 parent 9e008bb commit 89d7ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ macro(setup_test)
file(MAKE_DIRECTORY ${CURRENT_TEST_BINARY_DIR})
file(GLOB TEST_FILES "${CURRENT_TEST_SOURCE_DIR}/*")
file(COPY ${TEST_FILES} DESTINATION "${CURRENT_TEST_BINARY_DIR}/")
set(RUNTIME_OPTIONS "time.max_step=10 amr.plot_file=plt time.plot_interval=10")
set(RUNTIME_OPTIONS "time.max_step=10 amr.plot_file=plt time.plot_interval=10 amrex.the_arena_is_managed=0 amrex.abort_on_out_of_gpu_memory=1")
if(AMR_WIND_ENABLE_FPE_TRAP_FOR_TESTS)
set(RUNTIME_OPTIONS "${RUNTIME_OPTIONS} amrex.signal_handling=1 amrex.fpe_trap_invalid=1 amrex.fpe_trap_zero=1 amrex.fpe_trap_overflow=1")
else()
Expand Down

0 comments on commit 89d7ec0

Please sign in to comment.