<div>I recently installed cp2k with cuda on linux. I think the following generally applies to any platform.</div><div>1. CUDA_PATH environment variable must be set after installing cuda and before compiling cp2k. This is root directory of cuda installation; eg. /usr/local/cuda-12.3<br /></div><div>2. The arch file that should be used is local_cuda, not local. ARCH=local_cuda VERSION=psmp</div><div>3. If elpa is going to be installed, libtool-bin should be installed before compiling. Elpa will be installed by default unless otherwise specified.<br /></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Monday, February 26, 2024 at 8:14:59 AM UTC Alex wrote:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I am trying to install CP2K with CUDA (12.3) on my windows 11 machine.<div>I followed the instructions on <a href="https://www.cp2k.org/howto:compile_on_windows" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://www.cp2k.org/howto:compile_on_windows&source=gmail&ust=1709812812644000&usg=AOvVaw0tTkuM-Bg2xoFskhUfJ9jj">https://www.cp2k.org/howto:<span></span>compile_on_windows</a> for a parallel CP2K binary including building the toolchain </div><div> ./install_cp2k_toolchain.sh --install-all --with-gcc=system --with-mpich=system --with-sirius=no<br></div><div>After that I did as explained at <a href="https://www.cp2k.org/howto:compile_with_cuda" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://www.cp2k.org/howto:compile_with_cuda&source=gmail&ust=1709812812644000&usg=AOvVaw1L8twzz2T2nRpppKZYf4fh">https://www.cp2k.org/howto:<span></span>compile_with_cuda</a> (adding the 3 lines to the ARCH file)</div><div>When I did this ld could not locate lcudar, lcublas, lcufft, and lnvrtc.</div><div> I then added:</div>sudo ln -s /usr/local/cuda/lib64/<span></span>libcudart.so /usr/lib/libcudart.so<div>and
similarly for the other 3 libraries. That took care of that problem but
then I received a long list of issues that I do not understand, see
attached log file.</div><div><br></div><div>Could you please help me
proceed further. I am new at installing those big codes and
understanding and fixing these problems are very new to me</div><div>Thank you</div>
</blockquote></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "cp2k" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:cp2k+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/c1398720-ad7a-486b-af2a-934d9525d317n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/c1398720-ad7a-486b-af2a-934d9525d317n%40googlegroups.com</a>.<br />