I did not set any of those settings by hand, they were set automatically during the configuration/generation step, I suppose. Regards, Roland
Wolfgang Bangerth schrieb am Donnerstag, 16. Juni 2022 um 10:14:10 UTC+2: > On 6/16/22 01:49, 'develo...@googlemail.com' via deal.II User Group wrote: > > ** > > > > Thanks for the idea! I tested it, and got the following output: > > //opt/petsc/bin/kokkos_launch_compiler /opt/petsc/bin/nvcc_wrapper > > /opt/intel/oneapi/mpi/2021.6.0/bin/mpicxx > > /opt/intel/oneapi/mpi/2021.6.0/bin/mpicxx -DBOOST_NO_AUTO_PTR -fPIC > > -march=native -mavx2 -fPIC -Wall -Wextra -Wmissing-braces > -Woverloaded-virtual > > -Wpointer-arith -Wsign-compare -Wsuggest-override -Wswitch -Wsynth > > -Wwrite-strings -Wno-placement-new -Wno-deprecated-declarations > > -Wno-literal-suffix -Wno-psabi -Wno-class-memaccess -fopenmp-simd > > -DKOKKOS_DEPENDENCE -fPIC -march=native -mavx2 -Wno-parentheses > > -Wno-unused-local-typedefs > > > -expt-extended-lambda;-Wext-lambda-captures-this;-lineinfo;-arch=sm_60;-Xcompiler;-fopenmp > > > > -MD -MT > > > cmake/scripts/CMakeFiles/expand_instantiations_exe.dir/expand_instantiations.cc.o > > > > -MF > CMakeFiles/expand_instantiations_exe.dir/expand_instantiations.cc.o.d -o > > CMakeFiles/expand_instantiations_exe.dir/expand_instantiations.cc.o -c > > > /home/local/Downloads/git-files/dealii/cmake/scripts/expand_instantiations.cc > > nvcc fatal : No input files specified; use option --help for more > information > > /bin/sh: 1: -Wext-lambda-captures-this: not found > > /bin/sh: 1: -lineinfo: not found > > /bin/sh: 1: -arch=sm_60: not found > > /bin/sh: 1: -Xcompiler: not found > > /bin/sh: 1: -fopenmp: not found > > make[2]: *** > > [cmake/scripts/CMakeFiles/expand_instantiations_exe.dir/build.make:76: > > > cmake/scripts/CMakeFiles/expand_instantiations_exe.dir/expand_instantiations.cc.o] > > > > Error 127/ > > Are there other flags which might help? > > The underlying issue here is that you are trying to compile a tool that is > supposed to be run during compile time on the host (namely, the > 'expand_instantiations' program) with the *target* compiler (namely, > nvcc). > The error messages indicate that that doesn't work, and indeed it > shouldn't > work because the executable is not meant to be executed on the GPU but on > the CPU. > > The bigger question is *why* that happens. I don't really know the answer > because I've never tried to compile for GPUs, so others might have to help > out > with that, but I wonder how it comes that you are trying to compile with > /opt/petsc/bin/kokkos_launch_compiler. Did you set the CXX environment > variable to that, or passed this as a flag to cmake? > > Best > W. > > -- > ------------------------------------------------------------------------ > Wolfgang Bangerth email: bang...@colostate.edu > www: http://www.math.colostate.edu/~bangerth/ > > -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/313e44cd-de0a-4c6a-9642-a6c912248c92n%40googlegroups.com.