Code: Select all
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Jun_13_19:16:58_PDT_2023
Cuda compilation tools, release 12.2, V12.2.91
Build cuda_12.2.r12.2/compiler.32965470_0
Code: Select all
./configure --prefix=/opt/hdf5_gpu --enable-fortran
The reason I am compiling a different copy of hdf with the cuda tools is that when I attempted to recompile the gpu version of Vasp with the oneapi version, there was an error in compilation due to a mod file. As mod files tend to be compiler specific, I then recompiled HDF5 with the cuda tools and installed it in /opt/hdf5_gpu. This occurred without problem. I then compiled the gpu version of Vasp 6.4.2. I have included the makefiles used for the compilation in the attachments, but in short, I simply changed the path to the gpu cuda compiled version installation location (/opt/hdf5_gpu). The compilation of vasp fails, however, wit the error
Code: Select all
mpif90 -acc -gpu=cc60,cc70,cc80,cuda12.2 -Mfree -Mbackslash -Mlarge_arrays -tp host -fast -I/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/extras/qd/include/qd -I/opt/fftw3/include -I/opt/hdf5_gpu/include -c vhdf5_base.f90
NVFORTRAN-F-0004-Corrupt or Old Module file /opt/hdf5_gpu/include/hdf5.mod (vhdf5_base.F: 9)
NVFORTRAN/x86-64 Linux 23.9-0: compilation aborted
make[2]: *** [makefile:167: vhdf5_base.o] Error 2
make[2]: Leaving directory '/data/Software/Vasp/vasp.6.4.2_gpu/build/std'
cp: cannot stat 'vasp': No such file or directory
make[1]: *** [makefile:129: all] Error 1
make[1]: Leaving directory '/data/Software/Vasp/vasp.6.4.2_gpu/build/std'
make: *** [makefile:17: std] Error 2