Skip to content

Commit

Permalink
Change fcompare tolerance for gpu (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
marchdf authored Jan 13, 2025
1 parent 4a6e42e commit 22dadf1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ macro(setup_test)
file(COPY ${TEST_FILES} DESTINATION "${CURRENT_TEST_BINARY_DIR}/")
set(TEST_NP 2)
set(MPI_COMMANDS "${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} ${TEST_NP} ${MPIEXEC_PREFLAGS}")
if(AMReX_CUDA OR AMReX_HIP OR AMReX_SYCL)
set(FCOMPARE_TOLERANCE "-r 1e-10 --abs_tol 1.0e-12")
endif()
if(EXAWIND_SAVE_GOLDS AND (NOT "${TEST_NAME}" MATCHES "^nalu-nalu"))
file(MAKE_DIRECTORY ${SAVED_GOLDS_DIRECTORY}/${TEST_NAME})
set(SAVE_GOLDS_COMMAND "&& cp -R ${PLOT_TEST} ${SAVED_GOLDS_DIRECTORY}/${TEST_NAME}/")
Expand Down

0 comments on commit 22dadf1

Please sign in to comment.