Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Compilation failure #820

Open
FrancescoCavarretta opened this issue May 16, 2022 · 1 comment
Open

Compilation failure #820

FrancescoCavarretta opened this issue May 16, 2022 · 1 comment

Comments

@FrancescoCavarretta
Copy link

FrancescoCavarretta commented May 16, 2022

Describe the issue
coreneuron with GPU support does not compile successfully.

To Reproduce

module load profile/archive
module load profile/base
module load profile/advanced
module load pgi/19.10--binary gnu/8.4.0 cuda/10.1
module load spectrum_mpi/10.3.1--binary boost/1.72.0--spectrum_mpi--10.3.1--binary
module load cmake/3.20.0

export PGI_LOCALRC=/m100_work/Pra18_4575_0/software/gpu/pgi/localr
export OMPI_CXX=pgc++
export OMPI_CC=pgcc
export CC=mpicc
export CXX=mpicxx
export CUDA_FLAGS="-Xcompiler -mno-float128"
export CXX_FLAGS="-mno-float128"

rm -rf nrn
git clone https://github.com/neuronsimulator/nrn.git
mkdir -p nrn/build && cd nrn/build
git checkout 6f4ae452d771521ddaa357bb2ed8eb33c3f4a2d0

cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/install \
        -DNRN_ENABLE_INTERVIEWS=OFF \
        -DNRN_ENABLE_RX3D=OFF \
        -DNRN_ENABLE_CORENEURON=ON \
        -DPYTHON_EXECUTABLE=`which python3` \
        -DCORENRN_ENABLE_MPI=ON \
        -DCORENRN_ENABLE_OPENMP=OFF \
        -DCORENRN_ENABLE_GPU=ON \
        -DNRN_ENABLE_BINARY_SPECIAL=ON \
        -DNRN_ENABLE_SHARED=OFF \
        -DNRN_ENABLE_INTERNAL_READLINE=ON
        -DPYTHON_INCLUDE_DIR=$(python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())")  \
        -DPYTHON_LIBRARY=$(python3 -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))") \

make -j8
make install

Expected behavior

Logs

/m100/prod/opt/compilers/gnu/8.4.0/none/include/c++/8.4.0/bits/std_abs.h(102): error: identifier "__ieee128" is undefined

[ 14%] Linking CXX static library ../../../lib/libscopmath.a
[ 86%] Built target nrniv_lib
Scanning dependencies of target nrniv
[ 86%] Built target scopmath
5 errors detected in the compilation of "/tmp/tmpxft_00198ff2_00000000-8_nrnran123.compute_52.cpp1.ii".
[ 86%] Built target nrniv
CMake Error at cudacoreneuron_generated_nrnran123.cu.o.RelWithDebInfo.cmake:276 (message):
  Error generating file
  /m100/home/userexternal/fcavarre/nrn/build/external/coreneuron/coreneuron/CMakeFiles/cudacoreneuron.dir/utils/randoms/./cudacoreneuron_generated_nrnran123.cu.o


make[2]: *** [external/coreneuron/coreneuron/CMakeFiles/cudacoreneuron.dir/build.make:495: external/coreneuron/coreneuron/CMakeFiles/cudacoreneuron.dir/utils/randoms/cudacoreneuron_generated_nrnran123.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1177: external/coreneuron/coreneuron/CMakeFiles/cudacoreneuron.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Building python module with: /usr/bin/python3
[ 86%] Built target hoc_module
make: *** [Makefile:156: all] Error 2
[  0%] Performing build step for 'mod2c'
[100%] Built target mod2c_core
[  0%] Performing install step for 'mod2c'
[100%] Built target mod2c_core
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /m100/home/userexternal/fcavarre/nrn/build/share/nrnunits.lib
-- Up-to-date: /m100/home/userexternal/fcavarre/nrn/build/bin/mod2c_core
[  0%] Completed 'mod2c'
[  1%] Built target mod2c
[  1%] Built target link_units
[  2%] Built target scopmath
[  3%] Built target kin_deriv_header
[  3%] Building NVCC (Device) object external/coreneuron/coreneuron/CMakeFiles/cudacoreneuron.dir/utils/randoms/cudacoreneuron_generated_nrnran123.cu.o
/m100/prod/opt/compilers/gnu/8.4.0/none/include/c++/8.4.0/type_traits(335): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/m100/prod/opt/compilers/gnu/8.4.0/none/include/c++/8.4.0/bits/std_abs.h(101): error: identifier "__ieee128" is undefined

/m100/prod/opt/compilers/gnu/8.4.0/none/include/c++/8.4.0/bits/std_abs.h(102): error: identifier "__ieee128" is undefined

5 errors detected in the compilation of "/tmp/tmpxft_001990c4_00000000-8_nrnran123.compute_52.cpp1.ii".
CMake Error at cudacoreneuron_generated_nrnran123.cu.o.RelWithDebInfo.cmake:276 (message):
  Error generating file
  /m100/home/userexternal/fcavarre/nrn/build/external/coreneuron/coreneuron/CMakeFiles/cudacoreneuron.dir/utils/randoms/./cudacoreneuron_generated_nrnran123.cu.o


make[2]: *** [external/coreneuron/coreneuron/CMakeFiles/cudacoreneuron.dir/build.make:495: external/coreneuron/coreneuron/CMakeFiles/cudacoreneuron.dir/utils/randoms/cudacoreneuron_generated_nrnran123.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1177: external/coreneuron/coreneuron/CMakeFiles/cudacoreneuron.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

System (please complete the following information)
CINECA Marconi100

Additional context
Add any other context about the problem here.

@pramodk
Copy link
Collaborator

pramodk commented May 19, 2022

Just for the record, following here as well HumanBrainProject/olfactory-bulb-3d#20 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants