vlfeat / matconvnet

MatConvNet: CNNs for MATLAB
Other
1.4k stars 752 forks source link

Compilation throws error: cannot find -lmwgpu #1178

Open dksakkos opened 6 years ago

dksakkos commented 6 years ago

OS: Ubuntu 16.04 64bit Matlab version: 2017a MatConvNet version: 1.0-beta9

After following the installation steps listed on http://www.vlfeat.org/matconvnet/install, I run the following command to compile it with GPU:

vl_compilenn('enableGpu', true,'cudaRoot', '/usr/local/cuda-8.0')

It runs for 5-6 seconds then it produces the following error:

In vl_compilenn>mex_link (line 394) In parallel_function (line 476) In vl_compilenn (line 350) Error using vl_compilenn>mex_link (line 394) /usr/bin/ld: cannot find -lmwgpu collect2: error: ld returned 1 exit status

Error in vl_compilenn (line 350) parfor i = 1:numel(mex_src)

I also tried with Matlab 2018b, same error. My paths seem to be correct, and I am unable to locate file mwgpu. Google isn't of much help either.

Any suggestions? Thanks in advance!

tkkcc commented 5 years ago

@dksakkos Hi, same error here, have you made it out?

tkkcc commented 5 years ago

@dksakkos Hi, I make it out. mwgpu is provided by matlab's parallel computing toolbox add-on. Also create an aur package