Exasim icon indicating copy to clipboard operation
Exasim copied to clipboard

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

Open edk261 opened this issue 3 years ago • 2 comments

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?

edk261 avatar Mar 06 '21 18:03 edk261

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

exapde avatar Mar 15 '21 14:03 exapde

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.

exapde avatar Mar 20 '21 01:03 exapde