vlfeat / matconvnet

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

Duplicate function names for matlab Parallel Computing Toolbox #1048

Open itschner opened 7 years ago

itschner commented 7 years ago

Running Matlab 2015A, adding matconvnet to the path gives warnings about duplicate function names upon startup. With Parallel Computing Toolbox installed and the path set for matconvnet, the "parpool" command fails to open a parallel pool. Removing matconvnet from the path and then running parpool fixes this issue. There are two functions ("labindex" and "numlabs") which have same name as those in the toolbox; if these functions are renamed I believe matconvnet would be compatible with parallel computing toolbox. This fix would be wonderful for those of us trying to speed the creation and pre-processing of datasets using Matlab's PCT.

glenn-jocher commented 6 years ago

Same issue on 2016B. labindex and numlabs must be renamed to avoid compatibility issues with Parallel Computing Toolbox. Warning messages as follows:

Warning: Function labindex has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict. > In path (line 109) In addpath (line 88) In vl_setupnn (line 12) In vl_compilenn (line 504)

Warning: Function numlabs has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict. > In path (line 109) In addpath (line 88) In vl_setupnn (line 12) In vl_compilenn (line 504)

CielAl commented 4 years ago

If I remember correctly these two are just workarounds when the parallel toolbox is not installed?

CielAl commented 4 years ago

So if you already have the parallel toolbox, I guess you may simply remove the "[matconvnet]/matlab/compatibility" folder from the path.