@mlxd sysadmin provided access to system gcc/g++ 11.2 compilers.
Now there is an error:
“unsupported GNU version! gcc versions later than 10 are
not supported!”
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/rh/gcc-toolset-11/root/usr/libexec/gcc/ppc64le-redhat-linux/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: ppc64le-redhat-linux
Configured with: …/configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/opt/rh/gcc-toolset-11/r oot/usr --mandir=/opt/rh/gcc-toolset-11/root/usr/share/man --infodir=/opt/rh/gcc-toolset-11/root/usr/share/info --with- bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-ta rgets=powerpcle-linux --disable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enab le-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugi n --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-11.2.1-20210728/obj-ppc64le-redhat-linux/isl-install --e nable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-secureplt --with-long-do uble-128 --with-cpu-32=power8 --with-tune-32=power8 --with-cpu-64=power8 --with-tune-64=power8 --build=ppc64le-redhat-l inux
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.1 20210728 (Red Hat 11.2.1-1) (GCC)
g++ --version
g++ (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1)
Copyright © 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
nvcc --version
nvcc: NVIDIA ® Cuda compiler driver
Copyright © 2005-2021 NVIDIA Corporation
Built on Sun_Feb_14_21:13:23_PST_2021
Cuda compilation tools, release 11.2, V11.2.152
Build cuda_11.2.r11.2/compiler.29618528_0
C=gcc CXX=g++ cmake -BBuild -DENABLE_CLANG_TIDY=off -DENABLE_WARNINGS=off -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DCUQUANTUM_SDK=/p/home/aplobo/cuquantum-linux-ppc64le-22.07.1.14-archive ░█░░░▀█▀░█▀▀░█░█░▀█▀░█▀█░▀█▀░█▀█░█▀▀░░░░█▀▀░█▀█░█░█
░█░░░░█░░█░█░█▀█░░█░░█░█░░█░░█░█░█░█░░░░█░█░█▀▀░█░█
░▀▀▀░▀▀▀░▀▀▀░▀░▀░░▀░░▀░▀░▀▀▀░▀░▀░▀▀▀░▀░░▀▀▀░▀░░░▀▀▀
– The CXX compiler identification is GNU 11.2.1
– The C compiler identification is GNU 11.2.1
CMake Error at /p/home/aplobo/.local/lib/python3.6/site-packages/cmake/data/share/cmake-3.24/Modules/CMakeDetermineCompilerId.cmake:739 (message):
Compiling the CUDA compiler identification source file
“CMakeCUDACompilerId.cu” failed.
Compiler: /usr/local/cuda/bin/nvcc
Build flags:
Id flags: --keep;–keep-dir;tmp -v
The output was:
1
#$ NVVM_BRANCH=nvvm
#$ SPACE=
#$ CUDART=cudart
#$ HERE=/usr/local/cuda/bin
#$ THERE=/usr/local/cuda/bin
#$ TARGET_SIZE=
#$ TARGET_DIR=
#$ TARGET_DIR=targets/ppc64le-linux
#$ TOP=/usr/local/cuda/bin/…
#$ NVVMIR_LIBRARY_DIR=/usr/local/cuda/bin/…/nvvm/libdevice
#$
LD_LIBRARY_PATH=/usr/local/cuda/bin/…/lib:/opt/rh/gcc-toolset-11/root/usr/lib64:/opt/rh/gcc-toolset-11/root/usr/lib/ :/opt/rh/gcc-toolset-11/root/usr/mkl/lib/:/usr/local/cuda/lib64:/p/app/openmpi/ppc64le/el8/nvhpc/22.2/openmpi-4.1.2/lib :/p/app/compiler/ppc64le/el8/nvidia/hpc_sdk/Linux_ppc64le/22.2/comm_libs/nvshmem/lib:/p/app/compiler/ppc64le/el8/nvidia /hpc_sdk/Linux_ppc64le/22.2/comm_libs/nccl/lib:/p/app/compiler/ppc64le/el8/nvidia/hpc_sdk/Linux_ppc64le/22.2/comm_libs/ openmpi4/openmpi-4.0.5/lib:/p/app/compiler/ppc64le/el8/nvidia/hpc_sdk/Linux_ppc64le/22.2/math_libs/lib64:/p/app/compile r/ppc64le/el8/nvidia/hpc_sdk/Linux_ppc64le/22.2/compilers/lib:/p/app/compiler/ppc64le/el8/nvidia/hpc_sdk/Linux_ppc64le/ 22.2/cuda/lib64:/opt/ibm/lsf/10.1/linux3.10-glibc2.17-ppc64le/lib
#$
PATH=/usr/local/cuda/bin/…/nvvm/bin:/usr/local/cuda/bin:/opt/rh/gcc-toolset-11/root/usr/bin/:/p/home/aplobo/minicond a3/envs/py38/bin:/p/home/aplobo/miniconda3/condabin:/p/home/aplobo/.local/bin:/p/home/aplobo/bin:/opt/ibm/lsf/10.1/linu x3.10-glibc2.17-ppc64le/etc:/opt/ibm/lsf/10.1/linux3.10-glibc2.17-ppc64le/bin:/usr/local/cuda/bin:/p/app/openmpi/ppc64l e/el8/nvhpc/22.2/openmpi-4.1.2/bin:/p/app/compiler/ppc64le/el8/nvidia/hpc_sdk/Linux_ppc64le/22.2/comm_libs/nvshmem/bin: /p/app/compiler/ppc64le/el8/nvidia/hpc_sdk/Linux_ppc64le/22.2/comm_libs/nccl/bin:/p/app/compiler/ppc64le/el8/nvidia/hpc _sdk/Linux_ppc64le/22.2/comm_libs/openmpi4/openmpi-4.0.5/bin:/p/app/compiler/ppc64le/el8/nvidia/hpc_sdk/Linux_ppc64le/2 2.2/profilers/bin:/p/app/compiler/ppc64le/el8/nvidia/hpc_sdk/Linux_ppc64le/22.2/compilers/bin:/p/app/compiler/ppc64le/e l8/nvidia/hpc_sdk/Linux_ppc64le/22.2/cuda/bin:/usr/cta/unsupported/BC:/usr/share/Modules/bin:/usr/brl/bin:/usr/krb5/bin :/usr/brl/bin:/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/bin:/usr/local/sbin
#$ INCLUDES="-I/usr/local/cuda/bin/…/targets/ppc64le-linux/include"
#$ LIBRARIES= “-L/usr/local/cuda/bin/…/targets/ppc64le-linux/lib/stubs”
“-L/usr/local/cuda/bin/…/targets/ppc64le-linux/lib”
#$ CUDAFE_FLAGS=
#$ PTXAS_FLAGS=
#$ rm tmp/a_dlink.reg.c
#$ gcc -D__CUDA_ARCH__=520 -E -x c++ -DCUDA_DOUBLE_MATH_FUNCTIONS
-D__CUDACC__ -D__NVCC__
“-I/usr/local/cuda/bin/…/targets/ppc64le-linux/include”
-D__CUDACC_VER_MAJOR__=11 -D__CUDACC_VER_MINOR__=2
-D__CUDACC_VER_BUILD__=152 -D__CUDA_API_VER_MAJOR__=11
-D__CUDA_API_VER_MINOR__=2 -include “cuda_runtime.h”
“CMakeCUDACompilerId.cu” -o “tmp/CMakeCUDACompilerId.cpp1.ii”
In file included from
/usr/local/cuda/bin/…/targets/ppc64le-linux/include/cuda_runtime.h:83,
from <command-line>:
/usr/local/cuda/bin/…/targets/ppc64le-linux/include/crt/host_config.h:139:2:
error: #error – unsupported GNU version! gcc versions later than 10 are
not supported! The nvcc flag ‘-allow-unsupported-compiler’ can be used to
override this version check; however, using an unsupported host compiler
may cause compilation failure or incorrect run time execution. Use at your
own risk.
139 | #error -- unsupported GNU version! gcc versions later than 10 are not supported! The nvcc flag '-allow-unsupp orted-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compi lation failure or incorrect run time execution. Use at your own risk.
| ^~~~~
–error 0x1 –
Call Stack (most recent call first):
/p/home/aplobo/.local/lib/python3.6/site-packages/cmake/data/share/cmake-3.24/Modules/CMakeDetermineCompilerId.cmake: 6 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/p/home/aplobo/.local/lib/python3.6/site-packages/cmake/data/share/cmake-3.24/Modules/CMakeDetermineCompilerId.cmake: 48 (__determine_compiler_id_test)
/p/home/aplobo/.local/lib/python3.6/site-packages/cmake/data/share/cmake-3.24/Modules/CMakeDetermineCUDACompiler.cmake:307 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:12 (project)
– Configuring incomplete, errors occurred!
See also “/p/home/aplobo/pennylane-lightning-gpu/Build/CMakeFiles/CMakeOutput.log”.
See also “/p/home/aplobo/pennylane-lightning-gpu/Build/CMakeFiles/CMakeError.log”.