Hi folks,<br /><br />Hope everything is fine at your site.<br /><br />I am trying to perform the compilation on an ubuntu 22.04.<br /><br />I compiled the code many times, there is only one library i didnt manage to make it work and it was libtorch.<br /><br />I tried a few different way:<br /><br />1. following the instructions using the static download - here we have a problem. the static download doesnt have the cuda.h headers since it is prebuilt for cpu-only use. Because of that compilation fails in:<br /><br />/src/torch_c_api.cpp:10:10: fatal error: 'torch/csrc/api/include/torch/cuda.h' file not found<br /><br />2. Then i tried to modified the version of the prebuilt with one gpu-compatible. It also fails with the same error.<br /><br />Thus, i was thinking there might me some linking problems or headers addresses.<br /><br />So i tried 3. compile libtorch from scratch. Although i managed to do the compilation, i couldnt find a way to correct point for all the headers.<br /><br />The only way i manage to advance in the compilation was to manually edit each header it complains about not finding another header. Well... given the amount of header i need to edit i gave up?<br /><br />Since i have no experience with libtorch whatsoever, i am probably doing something wrong.<br /><br />Could someone please give me some directions on how to compile cp2k-2024-1 with libtorch?<br /><br />Thank you in advance!<br /><br /><br />
<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/c9e76926-047e-4e23-bea8-db8733e00ed0n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/c9e76926-047e-4e23-bea8-db8733e00ed0n%40googlegroups.com</a>.<br />