"initialization_openacc" error #809
Replies: 4 comments 3 replies
-
Hi,
Note that nvhpc 24.5 works just fine, this is the version I am using currently.
Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Hi, The compilation can be finished with warnings, the fact you do not have an executable means there is an error somewhere. I would do a "make clean" then try to compile again with the following changes: For GPU_COMPILER_FLAGS you should change "-O3 --std=c++14 -gpu=cc70 --expt-relaxed-constexpr" to You are also probably missing the |
Beta Was this translation helpful? Give feedback.
-
the "nvc++-Error-Unknown switch" are solved by specifying Can you add verbose to your make command and export the output in a file, ie: |
Beta Was this translation helpful? Give feedback.
-
My guess is your openmpi module is not compiled with nvc++ and / or your gcc is too old.
and
furthemore: to remove the nvc++-Error-Unknown switch messages, use:
Finally can you show the output of the compilation with this in sequential once you made sure the openmpi and hdf5 modules are compiled with nvc++, and that g++ is not something like 4.8.5 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I was trying to compile the code on a HPC (to run simulations using gpu) and I kept encountering the same error message:
"src/Smilei.cpp", line 88: error: identifier "initialization_openacc" is undefined
initialization_openacc();
^
1 error detected in the compilation of "src/Smilei.cpp".
Below are the command lines I used for compilation:
conda activate smilei_env ##environment for python 3.9 and other python modules
module load compiler/nvhpc/24.5
module load openmpi
module load cuda
export SMILEICXX=mpicxx
export HDF5_ROOT_DIR=$CONDA_PREFIX
export PYTHONEXE=$(which python)
export CXXFLAGS="-O3 -march=native -I$CONDA_PREFIX/include/python3.9"
export GPU_COMPILER=nvc++
export GPU_COMPILER_FLAGS="-acc -gpu=cc70"
make config=gpu_nvidia -j4
which mpicxx gives:
/util/opt/nvidia-hpc-sdk/2024.245/Linux_x86_64/24.5/comm_libs/mpi/bin/mpicxx
and mpicxx --version gives:
nvc++ 24.5-1 64-bit target on x86-64 Linux -tp icelake-server
NVIDIA Compilers and Tools
Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
Any help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions