Hip installation magma 2.6.1 - Yuxi

已查看 34 次
跳至第一个未读帖子

BigBrother KK

未读,
2021年11月3日 00:17:552021/11/3
收件人 MAGMA User
Dear Magma team,


I'm using the following make.inc examples.
make.inc-examples/make.inc.hip-gcc-openblas
then I do make lib. But I have the following error.
Could you tell what else I'm missing?


hipcc -O3 -fPIC -fopenmp -DNDEBUG -DADD_ -Wall -std=c++11 -I/opt/rocm/hip/include -D__HIP_PLATFORM_HCC__  -I/opt/rocm/hip/include -I./include -I./testing -I./control -c -o interface_cuda/alloc.o interface_cuda/alloc.cpp
interface_cuda/alloc.cpp:19:10: fatal error: 'cuda_runtime.h' file not found
#include <cuda_runtime.h>
         ^~~~~~~~~~~~~~~~
1 error generated when compiling for gfx908.
Makefile:859: recipe for target 'interface_cuda/alloc.o' failed
make: *** [interface_cuda/alloc.o] Error 1

Best,
Yuxi

Stanimire Tomov

未读,
2021年11月3日 02:27:052021/11/3
收件人 BigBrother KK、MAGMA User
Hello,

This is indeed a problem (I just reproduced it).
This version of magma added hip and several ways to install magma.
Installing with the makefiles from the tarball uses a file called Makefile.gen that 
is generated for cuda, so the makefiles now give wrong results (trying to compile for cuda).

The easiest way to fix this is if you can take magma directly from the repo:


and try installing with the make.inc file that you mentioned.

If you have to use the tarball, another way is to use cmake.
We will fix this issue with the next release.

Thanks,
Stan

--
You received this message because you are subscribed to the Google Groups "MAGMA User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to magma-user+...@icl.utk.edu.
To view this discussion on the web visit https://groups.google.com/a/icl.utk.edu/d/msgid/magma-user/e35a585f-c4aa-48dc-8654-1206739b2a18n%40icl.utk.edu.

BigBrother KK

未读,
2021年11月3日 03:01:022021/11/3
收件人 Stanimire Tomov、MAGMA User
Dear Stanimire,

Thank you for your email.
Your solution works fine with me.
Looking forward to the next release :-)

Best,
Yuxi

回复全部
回复作者
转发
0 个新帖子