Closed ruohai0925 closed 1 month ago
The above errors still appear even if I compile and build the hypre with -DHYPRE_ENABLE_UNIFIED_MEMORY=ON and add the amrex.the_arena_is_managed = 1
in the inputs file.
Does it work if you use double precision?
I can reproduce the failure. It might be that the particular problem is simply too hard in single precision. The relative tolerance in the setup is hard wired to 1.e-10. I changed them all to 1.e-4. Then if I run with prob_type=1
(i.e., Poisson), it seems to work. If I run with prob_type=2 n_cell=32
, it runs for a number of iterations and the residual blows up.
If you make the problem type 2 easier by make it more diagonal dominant,
index 97c928a88d..f3d7bb697d 100644
--- a/Tests/LinearSolvers/ABecLaplacian_C/MyTest.H
+++ b/Tests/LinearSolvers/ABecLaplacian_C/MyTest.H
@@ -75,7 +75,7 @@ private:
amrex::Vector<amrex::MultiFab> acoef;
amrex::Vector<amrex::MultiFab> bcoef;
- amrex::Real ascalar = 1.e-3;
+ amrex::Real ascalar = 1.e-1;
amrex::Real bscalar = 1.0;
};
it also works. So I don't think there is a real issue here.
@ruohai0925 - Closing this issue due to lack of activity. Please re-open it if there is still a problem.
Hi, I plan to run the hypre gpu example of amrex-tutorials/ExampleCodes/LinearSolvers/ABecLaplacian_C. I use the latest AMReX, amrex-tutorials, and hypre. Here are my detailed steps, followed by some questions.
export HYPRE_DIR=/home/zengx372/Codes/hypre/src/hypre_gpu_wounifiedmemory
The compiling error is:
It seems that there are some mismatches of the datatype in the above output.
The build works as![image](https://github.com/AMReX-Codes/amrex/assets/30739800/8206728e-1fa2-4883-b3ff-c12d6c8c4f1c)
But when I run the example with:
./ABecLaplacian_C inputs.hypre
It shows the error:
And here is the Backtrace file:
Can someone help to give me some suggestions? I will be happy to provide info if needed.