Closed zhichen3 closed 1 year ago
I also tried setting network.use_tables = 0
. But it still doesn't seem to work.
can you update to the latest versions of AMReX, Castro, and Microphysics and try again?
also, what is the name of the inputs file you are using?
I'll try again, I'm using inputs_He/inputs.He.1000Hz
I can reproduce this.
If I turn off the rate tables, it hangs on
reading extern runtime parameters ...
So I think that's actually where the problem lies.
note: the problem is still there all the way back for version 22.06 (haven't tried earlier)
The problem seems to be in eos_init()
If I add prints in Castro_setup.cpp
, I get past read_params()
, extern_init()
, init_prob_parameters()
, network_init()
this issue is the broadcast of the helmeos table:
Commenting out:
amrex::ParallelDescriptor::Bcast(&f[0][0][0], 9 * imax * jmax);
amrex::ParallelDescriptor::Bcast(&dpdf[0][0][0], 4 * imax * jmax);
amrex::ParallelDescriptor::Bcast(&ef[0][0][0], 4 * imax * jmax);
amrex::ParallelDescriptor::Bcast(&xf[0][0][0], 4 * imax * jmax);
and doing the read on all procs makes things work.
Going to close this issue and open one in Microphysics to handle a proper fix.
Trying to run some problems using GPU in perlmutter.
However, the output file says that I'm stuck at initializing rate table, and stops due to time limit. The content in the output file is something like:
Then I tried to run
cuda-memcheck
with the executable. I see a warning/error message saying:========= Program hit CUDA_ERROR_INVALID_VALUE (error 1) due to "invalid argument" on CUDA API call to cuPointerGetAttribute.
But, it is actually doing calculations because I see that it is initializing grids and other stuff.Then I tried to test
cuda-memcheck
on the Sedov problem executable, and have the same error message ofCUDA_ERROR_INVALID_VALUE
. But, I was able to just run the executable and run things nicely according to the output file.