运行 岩浆图书馆
Running Magma library
我正在尝试 运行 来源给出的示例之一。用于我 GPU 上的 MAGMA 库 (http://icl.cs.utk.edu/magma/)。我通过 arch 用户存储库安装了 MAGMA,在正确设置路径后我可以很好地构建它:
make all [±master ●]
gcc -Wall -DADD_ -I/opt/magma/include -I/opt/cuda/include -c -o example_v1.o example_v1.c
gcc -Wall -o example_v1 example_v1.o -L/opt/magma/lib -L/opt/cuda/lib64 -L/usr/local/openblas/lib -llapack -lmagma -lcublas -lcudart -lopenblas
gcc -Wall -DADD_ -I/opt/magma/include -I/opt/cuda/include -c -o example_v2.o example_v2.c
gcc -Wall -o example_v2 example_v2.o -L/opt/magma/lib -L/opt/cuda/lib64 -L/usr/local/openblas/lib -llapack -lmagma -lcublas -lcudart -lopenblas
gfortran -I/opt/magma/include -Dmagma_devptr_t="integer(kind=8)" -c -o example_f.o example_f.F90
gcc -Wall -DADD_ -I/opt/magma/include -I/opt/cuda/include -DCUBLAS_GFORTRAN -c -o fortran.o /opt/cuda/src/fortran.c
gfortran -Wall -o example_f example_f.o fortran.o -L/opt/magma/lib -L/opt/cuda/lib64 -L/usr/local/openblas/lib -llapack -lmagma -lcublas -lcudart -lopenblas
但是当我 运行 它时,我得到:
./example_v2 [±master ●●]
./example_v2: error while loading shared libraries: libmagma.so: cannot open shared object file: No such file or directory
这是整个 makefile:http://pastebin.com/dhrszsP4
如何 运行 MAGMA 示例?
添加后
if [ -n "/opt/magma/lib" ] ; then
export LD_LIBRARY_PATH="/opt/magma/lib:$LD_LIBRARY_PATH"
fi
我的 .zshrc 成功了。
我正在尝试 运行 来源给出的示例之一。用于我 GPU 上的 MAGMA 库 (http://icl.cs.utk.edu/magma/)。我通过 arch 用户存储库安装了 MAGMA,在正确设置路径后我可以很好地构建它:
make all [±master ●]
gcc -Wall -DADD_ -I/opt/magma/include -I/opt/cuda/include -c -o example_v1.o example_v1.c
gcc -Wall -o example_v1 example_v1.o -L/opt/magma/lib -L/opt/cuda/lib64 -L/usr/local/openblas/lib -llapack -lmagma -lcublas -lcudart -lopenblas
gcc -Wall -DADD_ -I/opt/magma/include -I/opt/cuda/include -c -o example_v2.o example_v2.c
gcc -Wall -o example_v2 example_v2.o -L/opt/magma/lib -L/opt/cuda/lib64 -L/usr/local/openblas/lib -llapack -lmagma -lcublas -lcudart -lopenblas
gfortran -I/opt/magma/include -Dmagma_devptr_t="integer(kind=8)" -c -o example_f.o example_f.F90
gcc -Wall -DADD_ -I/opt/magma/include -I/opt/cuda/include -DCUBLAS_GFORTRAN -c -o fortran.o /opt/cuda/src/fortran.c
gfortran -Wall -o example_f example_f.o fortran.o -L/opt/magma/lib -L/opt/cuda/lib64 -L/usr/local/openblas/lib -llapack -lmagma -lcublas -lcudart -lopenblas
但是当我 运行 它时,我得到:
./example_v2 [±master ●●]
./example_v2: error while loading shared libraries: libmagma.so: cannot open shared object file: No such file or directory
这是整个 makefile:http://pastebin.com/dhrszsP4
如何 运行 MAGMA 示例?
添加后
if [ -n "/opt/magma/lib" ] ; then
export LD_LIBRARY_PATH="/opt/magma/lib:$LD_LIBRARY_PATH"
fi
我的 .zshrc 成功了。