AMReX-Astro/Microphysics

NSE table does not compile with CUDA

Closed this issue · 3 comments

When compiling we get:

make: *** Waiting for unfinished jobs....
/ccs/home/zingale/Microphysics/nse_tabular/nse_table.H(246): error: identifier "nse_table_size::logrho_min" is undefined in device code

/ccs/home/zingale/Microphysics/nse_tabular/nse_table.H(246): error: identifier "nse_table_size::logrho_max" is undefined in device code

/ccs/home/zingale/Microphysics/nse_tabular/nse_table.H(248): error: identifier "nse_table_size::logT_min" is undefined in device code

/ccs/home/zingale/Microphysics/nse_tabular/nse_table.H(248): error: identifier "nse_table_size::logT_max" is undefined in device code

/ccs/home/zingale/Microphysics/nse_tabular/nse_table.H(250): error: identifier "nse_table_size::ye_min" is undefined in device code

/ccs/home/zingale/Microphysics/nse_tabular/nse_table.H(250): error: identifier "nse_table_size::ye_max" is undefined in device code

reproduce on groot in Microphysics/unit_test/burn_cell_sdc/

make USE_NSE_TABLE=TRUE USE_CUDA=TRUE -j 20

we compile fine with ROCm

this is fixed in #1395
it seems to be a compiler bug