NVRTC compilation error (Linux)¶
If the solver exits with an error message that looks similiar to the following (The error message may appear slightly different based on model setup and configured UDFs):
Error: compilation of CUDA UDF ZonalAnalysisParticleCalc_Zonal Analysis_n failed with NVRTC error "NVRTC_ERROR_COMPILATION", printing log:
ZonalAnalysisParticleCalc_Zonal Analysis_n(21): error: identifier "__longlong_as_double" is undefined
ZonalAnalysisParticleCalc_Zonal Analysis_n(21): error: identifier "__double_as_longlong" is undefined
ZonalAnalysisParticleCalc_Zonal Analysis_n(21): error: identifier "atomicCAS" is undefined
ZonalAnalysisParticleCalc_Zonal Analysis_n(24): error: identifier "__longlong_as_double" is undefined
ZonalAnalysisParticleCalc_Zonal Analysis_n(47): error: identifier "__int_as_float" is undefined
ZonalAnalysisParticleCalc_Zonal Analysis_n(57): error: identifier "__float_as_int" is undefined
ZonalAnalysisParticleCalc_Zonal Analysis_n(57): error: identifier "atomicCAS" is undefined
ZonalAnalysisParticleCalc_Zonal Analysis_n(70): error: identifier "__longlong_as_double" is undefined
ZonalAnalysisParticleCalc_Zonal Analysis_n(80): error: identifier "__double_as_longlong" is undefined
ZonalAnalysisParticleCalc_Zonal Analysis_n(80): error: identifier "atomicCAS" is undefined
Check the environment is properly setup. The cause of this error message is that the LD_LIBRARY_PATH
variable has not been properly setup.
Fix (option 1)¶
Use the mstar.sh
file to load in the M-Star environment with the command source mstar.sh
.
Fix (option 2)¶
Alternatively you can setup LD_LIBRARY_PATH yourself by running export LD_LIBRARY_PATH=/path/to/mstarinstall/lib
prior to running the solver.