Skip to content

Commit

Permalink
Fix ctests with HIP (#3982)
Browse files Browse the repository at this point in the history
As reported in Issue #3981, some ctests are currently broken with HIP. 

The proposed changes:
- [x] fix a bug or incorrect behavior in AMReX
- [ ] add new capabilities to AMReX
- [ ] changes answers in the test suite to more than roundoff level
- [ ] are likely to significantly affect the results of downstream AMReX
users
- [ ] include documentation in the code and/or rst files, if appropriate

---------

Co-authored-by: Weiqun Zhang <WeiqunZhang@lbl.gov>
  • Loading branch information
atmyers and WeiqunZhang committed Jun 10, 2024
1 parent f42aa8c commit 8255d75
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ else()
list(APPEND AMREX_TESTS_SUBDIRS FortranInterface)
endif ()

if (AMReX_CUDA)
if (NOT AMReX_GPU_BACKEND STREQUAL NONE)
list(APPEND AMREX_TESTS_SUBDIRS GPU)
endif ()

Expand Down
2 changes: 1 addition & 1 deletion Tests/LinearSolvers/NodeTensorLap/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if (NOT AMReX_CUDA)
if (AMReX_GPU_BACKEND STREQUAL NONE)
foreach(D IN LISTS AMReX_SPACEDIM)
if(D EQUAL 1)
continue()
Expand Down
2 changes: 1 addition & 1 deletion Tests/Particles/ParallelContext/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
foreach(D IN LISTS AMReX_SPACEDIM)
set(_sources main.cpp)
if (AMReX_CUDA)
if (NOT AMReX_GPU_BACKEND STREQUAL NONE)
set(_input_files inputs.rt.cuda )
else ()
set(_input_files inputs.rt )
Expand Down
2 changes: 1 addition & 1 deletion Tests/Particles/Redistribute/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
foreach(D IN LISTS AMReX_SPACEDIM)
set(_sources main.cpp)
if (AMReX_CUDA)
if (NOT AMReX_GPU_BACKEND STREQUAL NONE)
set(_input_files inputs.rt.cuda )
else ()
set(_input_files inputs.rt )
Expand Down
2 changes: 1 addition & 1 deletion Tests/Particles/RedistributeSOA/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
foreach(D IN LISTS AMReX_SPACEDIM)
set(_sources main.cpp)
if (AMReX_CUDA)
if (NOT AMReX_GPU_BACKEND STREQUAL NONE)
set(_input_files inputs.rt.cuda )
else ()
set(_input_files inputs.rt )
Expand Down

0 comments on commit 8255d75

Please sign in to comment.