You are not logged in.
Pages: 1
Matlab R2018b, try to compile matconvnet latest(1.0-beta25) with cuda cupport
Follow official guide, run this in matlab
vl_compilenn('enableGpu', true, 'cudaRoot', '/opt/cuda','cudaMethod','nvcc','verbose', 1)stop at
/home/bilabila/bin/MATLAB/bin/mex -DENABLE_GPU -DENABLE_DOUBLE -O -DNDEBUG -largeArrayDims LDFLAGS='$LDFLAGS -Wl,-rpath -Wl,"/opt/cuda/lib64" ' LDOPTIMFLAGS='$LDOPTIMFLAGS ' LINKLIBS=' $LINKLIBS' -lmwblas -lrt -L"/opt/cuda/lib64" -lmwgpu -lcudart -lcublas -ljpeg "matlab/mex/.build/vl_nnconv.o" -output "matlab/mex/vl_nnconv.mexa64" matlab/mex/.build/bits/data.o matlab/mex/.build/bits/datamex.o matlab/mex/.build/bits/nnconv.o matlab/mex/.build/bits/nnbias.o matlab/mex/.build/bits/nnfullyconnected.o matlab/mex/.build/bits/nnsubsample.o matlab/mex/.build/bits/nnpooling.o matlab/mex/.build/bits/nnnormalize.o matlab/mex/.build/bits/nnnormalizelp.o matlab/mex/.build/bits/nnbnorm.o matlab/mex/.build/bits/nnbilinearsampler.o matlab/mex/.build/bits/nnroipooling.o matlab/mex/.build/bits/impl/im2row_cpu.o matlab/mex/.build/bits/impl/copy_cpu.o matlab/mex/.build/bits/impl/tinythread.o matlab/mex/.build/bits/impl/imread_libjpeg.o matlab/mex/.build/bits/imread.o matlab/mex/.build/bits/impl/im2row_gpu.o matlab/mex/.build/bits/impl/copy_gpu.o matlab/mex/.build/bits/datacu.o
Building with 'gcc'.
Warning: You are using gcc version '4.9.4'. The version of gcc is not supported. The version currently supported with MEX is '6.3.x'. For a list of currently supported compilers see: https://www.mathworks.com/support/compilers/current_release.
/usr/bin/ld: cannot find -lmwgpu
collect2: error: ld returned 1 exit status
make: *** [Makefile:292: matlab/mex/vl_nnconv.mexa64] Error 255The problem is where is mwgpu, I seached my machine and google but found little
Offline
From reading the warning, did you try to use the '6.3.x' version?
Offline
Hello,
The reason it's failing to build:
/usr/bin/ld: cannot find -lmwgpuFind out what provides mwgpu.
Cheers.
Offline
Pages: 1