vedaldi / practical-cnn

A VGG practical on convolutional neural networks
154 stars 75 forks source link

Failed in Gpu mode #13

Closed JingyunLiang closed 8 years ago

JingyunLiang commented 8 years ago

When I use [setup('useGpu',true)] to compile, Matlab 2014a displayed

[vl_compilenn: CUDA: MEX config file: '/usr/local/MATLAB/R2014a/toolbox/practical-cnn-2015a/matconvnet/matlab/src/config/mex_CUDA_glnxa64.xml' Building with 'g++'. MEX completed successfully. Building with 'g++'. MEX completed successfully. Building with 'g++'. MEX completed successfully. Building with 'g++'. MEX completed successfully. Building with 'nvcc'. MEX completed successfully. Building with 'nvcc'. MEX completed successfully. Building with 'nvcc'. MEX completed successfully. Building with 'nvcc'. MEX completed successfully. Building with 'nvcc'. MEX completed successfully. Building with 'nvcc'. MEX completed successfully. Building with 'nvcc'. MEX completed successfully. _Warning: GPU support does not seem to be compiled in MatConvNet. Trying to compile it now _]

When I use the Gpu mode in exercise4.m, it displayed

[Error using gpuArray An unexpected error occurred during CUDA execution. The CUDA error was: Unknown error code

Error in exercise4 (line 50) imdb.images.data = gpuArray(imdb.images.data) ;]

I really don't what's wrong with it. When I use matconvnet-master from Github, the Gpu mode is OK.

Can you help me with the problem? Thank you!