exapde / Exasim

Exasim: Generating Discontinuous Galerkin Codes For Extreme Scalable Simulations
MIT License
65 stars 19 forks source link

GPU compilation error and Possible solution: Applications/Poisson/MuiltipleEquations/pdeapp.jl #9

Open edk261 opened 3 years ago

edk261 commented 3 years ago
Error:
In file included from gpuApp.cu:4:
gpuFlux.cu:1:10: fatal error: gpuFlux1.cpp: No such file or directory
 #include "gpuFlux1.cpp"
          ^~~~~~~~~~~~~~
compilation terminated.
ERROR: LoadError: failed process: Process(`nvcc -D_FORCE_INLINES -O3 -c --compiler-options "'-fPIC'" gpuApp.cu`, ProcessExited(1)) [1]

Suggested Solution @exapde After the line https://github.com/exapde/Exasim/blob/377427ffdf6ebd19d7fe68b0c9bd8df1e41abcb3/Version0.3/Julia/Gencode/gencodeelemface.jl#L111 I included the following line by replacing cpp by cu for proper compilation strgpu = replace(strgpu, "cpp" => "cu");

And it worked. But not sure how it affects the other examples. Any other examples for multiple equation models?

exapde commented 3 years ago

Thank you very much for catching the errors and providing the fixes.

exapde commented 3 years ago

At this point, there is only one example with multiple equation models. At some time later, we will add new examples with multiple equation models.