Dear colleagues,<div><br></div><div>I am trying building CP2K with HIP:</div><div><br></div><div>After building the toolchain</div><div><br></div><div>./install_cp2k_toolchain.sh --with-mpich --with-elpa=no --with-cosma=no --enable-hip --gpu-ver=Mi50<br></div><div><br></div><div>I do the make</div><div><br></div><div>make -j 8 ARCH=local_hip VERSION=psmp<br></div><div><br></div><div>and it fails with</div><div><b><br></b></div><div><b>/mnt/storage/home/vvsteg/repos/cp2k/cp2k-2022.1/src/dbm/dbm_shard.h:10:10: </b><b>fatal error: </b><b>'omp.h' file not found</b><br></div><div><br></div><div>I have been able to overcome this error disabling 2 types of GPU acceleration options:<br>-D__NO_OFFLOAD_GRID -D__NO_OFFLOAD_DBM<br></div><div><br></div><div>As far as I understand, the problem is connected with the fact that hipcc (clang) does not see omp.h</div><div><br></div><div>Please let me know if it is possible to make a full HIP build without switching off those 2 GPU acceleration options?</div><div><br></div><div>Building for CUDA (--enable-cuda) does not show such a problem.</div><div><br></div><div>Best regards,</div><div>Vladimir</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/a7ae5e56-42fa-4c8c-b974-8bfc4cf82107n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/a7ae5e56-42fa-4c8c-b974-8bfc4cf82107n%40googlegroups.com</a>.<br />