Compilation error during the SIRIUS build for GPU

171 views
Skip to first unread message

Dobromir A Kalchevski

unread,
Jan 16, 2025, 5:27:50 PM1/16/25
to cp2k
Hello,

I am trying to compile cp2k 2025.1 for GPU and during the sirius build I get the errors, attached in the log file. The sirius version is the one that cp2k downloads - 7.6.1.

I use the command
./install_cp2k_toolchain.sh --mpi-mode=mpich --with-mpich --with-gcc --enable-cuda --gpu-ver=H100 --with-cusolvermp

My uname -a is: Linux samara 6.12.8-1530.native #1 SMP PREEMPT Fri Jan  3 14:35:55 PST 2025 x86_64 GNU/Linux

My GCC version is 14.1.0
My nvidia driver version is 560
My CUDA version is 12.6.3
My video card is RTX 4080 Super

cp2k compiles fine for CPU only.

All previous dependencies compile fine.

For the purpose of searching the errors are of type:

Installing from scratch into /home/lsd/Downloads/cp2k-2025.1_mpich_gcc14_cuda/tools/toolchain/install/sirius-7.6.1
patching file src/potential/xc_functional_base.hpp
| ^~~~~~~~~
| float3

/usr/include/bits/mathcalls-narrow.h:39:8: error: ‘_Float32x’ does not
name a type; did you mean ‘float3’?
...
/usr/include/bits/iscanonical.h:51:24: error: ‘int iscanonical’
redeclared as different kind of entity

 51 | inline int iscanonical (_Float128 __val) { return __iscanonicalf128 (__val); }
    |                        ^~~~~~~~~
...
/usr/include/bits/iscanonical.h:49:12: note: previous declaration ‘int
iscanonical(long double)’

 49 | inline int iscanonical (long double __val) { return __iscanonicall (__val); }
    |            ^~~~~~~~~~~
...

--error 0x1 --

Best Regards,
Dobromir

  
sirius_error.txt

Dobromir A Kalchevski

unread,
Jan 16, 2025, 7:25:24 PM1/16/25
to cp2k
Hello,

I noticed that the package SpFFT gives the same kind of errors during compilation.

It is just SpFFT and SIRIUS.

Best Regards,
Dobromir

  

Dobromir A Kalchevski

unread,
Jan 17, 2025, 6:39:47 AM1/17/25
to cp2k
Hello,

I figured the errors out: I had not included the CUDA directories before the rest in PATH and LD_LIBRARY_PATH, but after them.

Victor Nazarychev

unread,
May 10, 2025, 9:40:34 AM5/10/25
to cp2k
Dear Dobromir and Cp2k users,

I am writing to ask you about the following question: I have two RTX 4080 GPUs in my computer, and one processor with 96 CPU cores. Can I run two separate calculations using 48 cores on each GPU? Will the calculations be as fast as if I were to run a single task on the processor using 48 CPU cores?

Thank you for your attention.

Best regards, 
Victor

пятница, 17 января 2025 г. в 14:39:47 UTC+3, Dobromir A Kalchevski:

Frederick Stein

unread,
May 10, 2025, 9:57:44 AM5/10/25
to cp2k
Dear Viktor,
In principal, that should be possible. Other people should be able to help you with it. But I would not recommend to run CP2K on RTX 4080 or consumer cards in general. Their floating point performance with 64-bit floating points (that's what we use in CP2K) is usually not better than on CPU. Due to data transfers, CP2K is practically slower on this kind of hardware and requires GPGPU cards such as the NVIDIA L series if you want to stick to the same microarchitecture.
HTH,
Frederick

Victor Nazarychev

unread,
May 10, 2025, 10:23:27 AM5/10/25
to cp...@googlegroups.com
Dear Frederick Stein,
Thank you for your reply. I have systems consisting of metal oxides
(Al2O3 and Fe2O3) mixed with polymer monomers, each containing
1000-1100 atoms. I've been conducting calculations using DFT with the
DZVP basis set and GHT potentials. On 48 processors, I can optimize
structures with periodic boundary conditions using GEO_OPT and PBE
functional in about 1-2 days with a cutoff energy of 400 Ry.
Initially, I thought using a GPU could allow me to run two independent
calculations simultaneously in about a day. However, after your
response, I'm unsure if the GPU will significantly speed up the
process.

Best regards,
Victor

сб, 10 мая 2025 г. в 16:57, Frederick Stein <f.s...@hzdr.de>:
> --
> You received this message because you are subscribed to a topic in the Google Groups "cp2k" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/cp2k/1aXH32_vFlk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to cp2k+uns...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/cp2k/7bbb073b-b2e9-4942-9189-52ed6e3dcfc4n%40googlegroups.com.

Albert Makhmudov

unread,
May 10, 2025, 10:36:38 AM5/10/25
to cp...@googlegroups.com
Dear Frederick,

Could you please share if possible what GPU option should one pick to compile CP2K with the NVIDIA L4 support, for instance?


Best,

Albert

On 10 May 2025, at 15:57, Frederick Stein <f.s...@hzdr.de> wrote:


--
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+uns...@googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages