[QE-users] QE-GPU Installation on i9/RTX4070 setup
Taswar Iqbal
taswar_iqbal492 at yahoo.com
Wed Feb 5 12:31:20 CET 2025
Hello Richard Philips well you have mentioned too much details so may be you already know more than me, as I am also just a beginner. But what I learnt is there are two ways to configure correctly. 1: install module in your system, call for nvhpcopenmpi module and configure with normal cuda flags i.e —with-cuda= and —with-cuda-cc=…2. Find correct paths of mpi and compiler libraries and along with cuda flags also give mpif90=path/to/your/mpif90 and cc=nvcc(optional)Here is example command that worked for me.
./configure --with-cuda=$CUDA_HOME --with-cuda-cc=86 --with-cuda-runtime=12.4 --enable-parallel --with-cuda-cc=86 MPIF90=/opt/nvidia/hpc_sdk/Linux_x86_64/24.5/comm_libs/12.4/openmpi4/openmpi-4.1.5/bin/mpif90
Sent from Yahoo Mail for iPhone
On Wednesday, February 5, 2025, 8:10 PM, R T Phillips via users <users at lists.quantum-espresso.org> wrote:
I have been trying to compile Quantum Espresso for use on this system:
Intel i9-14900 (24 core)
Linux Mint 22.1 Cinnamon version 6.4.6
Nvidia GeForce RTX 4070
with:
nvhpc_2024_2411_Linux_x86_64_cuda_12.6
The prerequisite gcc has been tested before installing nvhpc as
specified in $1.1 of the nvidia hpc-sdk installation guide
(https://docs.nvidia.com/hpc-sdk/archive/20.9/pdf/hpc209install.pdf).
The hpc-sdk specification is now said to include cuda and openmpi, so I
have used only the one installation step at the top level of the nvhpc
distribution (adding independent cuda or openmpi installations now seems
to create havoc, though these may have been required in earlier versions
of the hpc-sdk).
After installation of the nvhpc, nvaccelinfo produces the following
output. Does this demonstrate that a "proper parallel environment" can
be detected, as mentioned in the QE Guide?
"CUDA Driver Version: 12040
NVRM version: NVIDIA UNIX x86_64 Kernel Module 550.120
Fri Sep 13 10:10:01 UTC 2024
Device Number: 0
Device Name: NVIDIA GeForce RTX 4070
Device Revision Number: 8.9
Global Memory Size: 12584878080
Number of Multiprocessors: 46
Concurrent Copy and Execution: Yes
Total Constant Memory: 65536
Total Shared Memory per Block: 49152
Registers per Block: 65536
Warp Size: 32
Maximum Threads per Block: 1024
Maximum Block Dimensions: 1024, 1024, 64
Maximum Grid Dimensions: 2147483647 x 65535 x 65535
Maximum Memory Pitch: 2147483647B
Texture Alignment: 512B
Clock Rate: 2520 MHz
Execution Timeout: Yes
Integrated Device: No
Can Map Host Memory: Yes
Compute Mode: default
Concurrent Kernels: Yes
ECC Enabled: No
Memory Clock Rate: 10501 MHz
Memory Bus Width: 192 bits
L2 Cache Size: 37748736 bytes
Max Threads Per SMP: 1536
Async Engines: 2
Unified Addressing: Yes
Managed Memory: Yes
Concurrent Managed Memory: Yes
Preemption Supported: Yes
Cooperative Launch: Yes
Unified Memory: No
Memory Models Flags: -gpu=mem:separate, -gpu=mem:managed
Default Target: cc89 "
After the installation of nvhpc, I have tried both the default
.configure, and also a bash script of QE-7.3.1 (see attached), setting
the environment variables specified in $2.4 of the QE Users' Guide, and
nvhpc.
Both produce config.log files which reveal problems in finding various
components - the Guide warns that this might occur. I have trawled many
websites for a solution but have not resolved this problem. I have
tried some variants of the above, which have led to apparently
successful configuration runs, but 'make' subsequently fails.
It is pretty obvious that I am completely inexpert at this, and would
greatly appreciate advice if anyone can spot what I am doing incorrectly.
Richard Phillips, Cavendish Lab. UK
_______________________________________________________________________________
The Quantum ESPRESSO Foundation stands in solidarity with all civilians worldwide who are victims of terrorism, military aggression, and indiscriminate warfare.
--------------------------------------------------------------------------------
Quantum ESPRESSO is supported by MaX (www.max-centre.eu)
users mailing list users at lists.quantum-espresso.org
https://lists.quantum-espresso.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quantum-espresso.org/pipermail/users/attachments/20250205/b9eebbc4/attachment.html>
More information about the users
mailing list