Closed W-Wuxian closed 3 weeks ago
Please do not use omptasks. These are incompatible with gpu.
This is not a bug. As said above omptasks has nothing to do with the GPU implementation, please read the documentation on GPU compilation.
Hi, please review the attached makelog2.log as a result of the following configuration:
conda activate smilei_env
module load nvhpc-hpcx-cuda12/ phdf5/nvhpc/
export GPU_COMPILER=nvcc
export SMILEICXX=nvc++
export BUILD_DIR=/opt/apps/libsoft/smilei/nvhpc/5.1
export PYTHONEXE=/opt/apps/miniconda3/env/root/envs/smilei_gpu_env/bin/python
export HDF5_ROOT_DIR=/opt/apps/fileformat/phdf5/nvhpc/1.14.3
export CXXFLAGS="-O3 -march=cascadelake -mtune=cascadelake -noswitcherror -w -v -tp=cascadelake -gpu=cc50 -acc=gpu -std=c++14 -lcurand -cudalib=curand -Minfo=accel -D__GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1"
export GPU_COMPILER_FLAGS="-O3 --std c++14 -arch=sm_50 -v --expt-relaxed-constexpr"
export LDFLAGS="-acc=gpu -gpu=cc50 -v -std=c++14 -cudalib=curand -lcudart -lcurand -lacccuda"
export SMILEICXX_DEPS=g++
make -j 12 config="verbose noopenmp gpu_nvidia" 2>&1 | tee makelog2.log
I still get the same errors as previously.
Description
I got unexpected compiler errors while building Smilei 5.1 for omptask + GPU support. Where is my NVIDIA-SMI version report:
555.42.06 Driver Version: 555.42.06 CUDA Version: 12.5
I attached the makefile error log (makelog.log)make -j 12 machine="MyMachineFile" config="verbose omptasks gpu_nvidia" 2>&1 | tee makelog.log
but most errors or warnings are like the following:With config="verbose omptasks" make step ends without failure.
Steps to reproduce the problem
Loading modules
Loaded modules:
1) phdf5/nvhpc/24.7/1.14.3 2) hpcx 3) nvhpc-hpcx-cuda12/nvhpc-hpcx-cuda12
Setting variables:
Compilation configuration
make -j 12 machine="MyMachineFile" config="verbose omptasks gpu_nvidia" 2>&1 | tee makelog.log
Parameters
Smilei version: 5.1
scripts/compile_tools/machine/MyMachineFile
Options pour NVCC (Compilateur CUDA)
GPU_COMPILER_FLAGS += -O3 --std c++14 -arch=sm_50 -v GPU_COMPILER_FLAGS += --expt-relaxed-constexpr
LDFLAGS += -acc=gpu -gpu=cc50 -v -std=c++14 -cudalib=curand -lcudart -lcurand -lacccuda
mpic++ -show
:h5cc --version
):python --version
) :Python 3.12.4
-noswitcherror