Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use_thread check #54

Closed
vgenty opened this issue Jul 27, 2016 · 6 comments
Closed

use_thread check #54

vgenty opened this issue Jul 27, 2016 · 6 comments
Assignees
Labels

Comments

@vgenty
Copy link
Member

vgenty commented Jul 27, 2016

Should we have a check between use_thread: in caffe's prototxt and UseThread: in the ProcessDriver configuration? I can set use_thread: false in my root_data_layer configuration, but my filler will still use threading as we not making a check. Users may forget to set both.

@drinkingkazu
Copy link

Yeah this is terrible. We must fix it. I guess a natural place is to take out from prototxt. I'll take a look.

@drinkingkazu drinkingkazu self-assigned this Jul 27, 2016
@drinkingkazu drinkingkazu added bug and removed question labels Jul 27, 2016
@drinkingkazu
Copy link

I changed apcaffe_cleanup branch of caffe repository (our fork). One needs to pull & re-build caffe.

@drinkingkazu
Copy link

@vgenty I believe this is confirmed to be fixed. If you agree would you close it?

@vgenty
Copy link
Member Author

vgenty commented Jul 28, 2016

I await your push to https://github.com/LArbys/caffe which resolves out of scope filler in src/caffe/layers/root_data_layer.cpp

src/caffe/layers/root_data_layer.cpp: In member function 'virtual void caffe::ROOTDataLayer<Dtype>::LoadROOTFileData()':
src/caffe/layers/root_data_layer.cpp:36:14: error: 'filler' was not declared in this scope
     }else if(filler.thread_config()){
              ^
src/caffe/layers/root_data_layer.cpp:37:13: error: redeclaration of 'auto& filler'
       auto& filler = ::larcv::ThreadFillerFactory::get_filler(name);
             ^
src/caffe/layers/root_data_layer.cpp:36:14: error: '<typeprefixerror>filler' previously declared here
     }else if(filler.thread_config()){
              ^
src/caffe/layers/root_data_layer.cpp:56:8: error: 'filler' was not declared in this scope
     if(filler.thread_config()) {
        ^
src/caffe/layers/root_data_layer.cpp:57:13: error: redeclaration of 'auto& filler'
       auto& filler = ::larcv::ThreadFillerFactory::get_filler(name);
             ^
src/caffe/layers/root_data_layer.cpp:56:8: error: '<typeprefixerror>filler' previously declared here
     if(filler.thread_config()) {
        ^
make: *** [.build_debug/src/caffe/layers/root_data_layer.o] Error 1
make: *** Waiting for unfinished jobs....

make: *** wait: No child processes.  Stop.

@drinkingkazu
Copy link

yep sorry just forgot about it. Here: LArbys/caffe@0550386

@vgenty
Copy link
Member Author

vgenty commented Jul 28, 2016

thanks, i confirmed it builds OK

@vgenty vgenty closed this as completed Jul 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants