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/