NVRTC Compilation Error (Linux)

If the solver exits with an error message similiar to the following, verify that the environment is properly configured (the message may vary 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

The cause of this error message is that the LD_LIBRARY_PATH variable has not been properly configured.

Fix (Option 1)

Use the mstar.sh file to load in the M-Star environment with the command source mstar.sh.

Fix (Option 2)

Set up LD_LIBRARY_PATH yourself by running export LD_LIBRARY_PATH=/path/to/mstarinstall/lib prior to running the solver.