[CP2K-user] [CP2K:20280] Running cp2k on GPU
'Hemanth Haridas' via cp2k
cp2k at googlegroups.com
Thu Jun 6 18:31:37 UTC 2024
I am trying to run CP2K on a linux cluster with GPU support. I have
successfully complied the code with CUDA support. But the utilization of
GPU is zero, even though the program is running , meaning that the code is
running on cpu cores.
This is the script that I am using to run cp2k
#!/bin/bash
#SBATCH --job-name=LiCl ### Job Name
#SBATCH --output=cp2k.out ### File in which to store job
output
#SBATCH --error=cp2k.err ### File in which to store job
error messages
#SBATCH --time=3-00:00:00 ### Wall clock time limit in
Days-HH:MM:SS
#SBATCH --ntasks=64
#SBATCH --gres=gpu:1
#SBATCH --cpus-per-task=1
module load gcc cuda/11.8.0 openmpi/4.1.6-gpu intel-oneapi-mkl/2022.0.2
source /cp2k_plumed_gpu/cp2k-2024.1/tools/toolchain/install/setup
export* OMP_NUM_THREADS=*$SLURM_NTASKS
/cp2k_plumed_gpu/cp2k-2024.1/exe/local_cuda/cp2k.psmp -i colvars.inp -o
colvars.out
Are there any additional flags that I need to use to run the code on GPUs?
--
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/fe9701d4-0c6f-4b06-80ed-1294b9b35ac4n%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20240606/bf098aa3/attachment.htm>
More information about the CP2K-user
mailing list