make install issues

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)

make install issues

Postby Klausb » Sun Oct 08, 2017 6:36 am


I tried to install the shared and static library one after another and applied accidently 'sudo make install prefix=/usr/local/magma' a second time' applying "sudo" a second time causes an error and the installation fails.

The problem is, the error stays, I can't repeat the installation.

Code: Select all
sudo make install prefix=/usr/local/magma
[sudo] Passwort für klaus:
g++ -O3 -fPIC -fopenmp -DNDEBUG -DADD_ -Wall -Wshadow -DMAGMA_WITH_MKL -std=c++11 -DHAVE_CUBLAS -DMIN_CUDA_ARCH=300 -I/usr/local/cuda-9.0/include -I/opt/intel/mkl/include -I./include -I./control -I./magmablas -I./sparse/include -I./sparse/control -c -o sparse/blas/magma_z_blaswrapper.o sparse/blas/magma_z_blaswrapper.cpp
nvcc -O3                  -DNDEBUG -DADD_ -Xcompiler "-fPIC -Wall -Wno-unused-function"  -gencode arch=compute_30,code=sm_30 -gencode arch=compute_30,code=compute_30 -I/usr/local/cuda-9.0/include -I/opt/intel/mkl/include -I./include -I./control -I./magmablas -I./sparse/include -I./sparse/control -c -o sparse/blas/zbajac_csr.o sparse/blas/
/bin/sh: 1: nvcc: not found
Makefile:585: die Regel für Ziel „sparse/blas/zbajac_csr.o“ scheiterte
make: *** [sparse/blas/zbajac_csr.o] Fehler 127

How can I completely remove/uninstall magma to be able to start the installation from scratch?

Posts: 21
Joined: Thu Oct 05, 2017 3:04 pm

Re: make install issues

Postby mgates3 » Sat Oct 14, 2017 3:33 am

The error is confusing, because it looks like it can't find CUDA's nvcc compiler, which would prevent compiling MAGMA at all. Perhaps CUDA is not in your path, or not in root's path (once you sudo).

If you installed into a separate directory like /usr/local/magma, to uninstall simply remove that directory. If you install into /usr/local, then things will get spread around in /usr/local/lib and /usr/local/include, which will make uninstalling a little more annoying. Basically:

Code: Select all
    rm /usr/local/include/magma*
    rm /usr/local/lib/libmagma*
    rm /usr/local/lib/libblas_fix.a   # may not exist
    rm /usr/local/lib/pkgconfig/magma.pc

Generally, if you do "make", everything should be compiled, both static and shared libraries. This shouldn't be done as root. Then doing "make install" will just copy files. Only the install may need to be done as root (using sudo).

Posts: 791
Joined: Fri Jan 06, 2012 2:13 pm

Return to User discussion

Who is online

Users browsing this forum: No registered users and 1 guest