Code Monkey home page Code Monkey logo

Comments (8)

mrcharlie90 avatar mrcharlie90 commented on August 10, 2024 1

I have built caffe with CPU too and gave me no problems. Have you tried to re-install Caffe with CUDNN? What GPU do you have?
I saw the same error in the past, but I don't remember how I solved it. Did you check bash_profile/bashrc paths? I think there's something wrong there. Another thing, try to compile by setting
CUSTOM_CXX := clang++ -std=c++11
into your Makefile.config file.

from deepcut.

farshidfarhat avatar farshidfarhat commented on August 10, 2024 1

When I comment the following part of src/caffe/layers/softmax_loss_vec_layer.cpp, there is no error :-)

/*
template
void SoftmaxWithLossVecLayer::Forward_gpu(const vector<Blob>& bottom,
const vector<Blob
>& top)
{
//LOG(FATAL) << "Cannot use GPU in CPU-only Caffe: check mode.";
Forward_cpu(bottom, top);
}

template
void SoftmaxWithLossVecLayer::Backward_gpu(const vector<Blob>& top,
const vector& propagate_down,
const vector<Blob
>& bottom)
{
//LOG(FATAL) << "Cannot use GPU in CPU-only Caffe: check mode.";
Backward_cpu(top, propagate_down, bottom);
}
*/

from deepcut.

minhtriet avatar minhtriet commented on August 10, 2024 1

And it leads to your issue, somehow... Namely, it is the error in syncedmem.cpp.

from deepcut.

eldar avatar eldar commented on August 10, 2024 1

Hey, I updated the deepcut-cnn repo with the fix CPU-only build, and tested it. So closing this one.

from deepcut.

minhtriet avatar minhtriet commented on August 10, 2024

Thanks for your answer.

I checked the bashrc, in fact I have another application that used Caffe, and I make Caffe on that app successfully, using the same Makefile.config that I used to make Caffe in this application.

Enabling GPU build gives me out of memory error, and using CPU build gives me the redefinition error.

I am using Ubuntu 14.04, Graphic card: GeForce GTX 980.

from deepcut.

mrcharlie90 avatar mrcharlie90 commented on August 10, 2024

Why are you installing another copy of caffe with the same configuration?
I installed it only once on my machine and I used that for all my applications. Probably this is the problem. Have you tried with the -std=c++11 in the Makeconfig.file?

from deepcut.

minhtriet avatar minhtriet commented on August 10, 2024

Seems like Deepcut required Caffe to be placed exactly in external/caffe, how did you config it to point to your Caffe installation?
I did try with the -std+c+11 in the Makeconfig.file

from deepcut.

farshidfarhat avatar farshidfarhat commented on August 10, 2024

I have the same issue. Actually I have successfully installed the main version of BVLC/Caffe with make all pycaffe matcaffe. But the current necessary version (external/caffe) gives me the following error. I set:

CXXFLAGS += -std=c++11
CPU_ONLY := 1
BLAS := mkl

The error log is:
CXX src/caffe/layers/softmax_loss_vec_layer.cpp
src/caffe/layers/softmax_loss_vec_layer.cpp:254:1: error: redefinition of ‘void caffe::SoftmaxWithLossVecLayer::Forward_gpu(const std::vectorcaffe::Blob<Dtype_>&, const std::vectorcaffe::Blob<Dtype_>&)’
src/caffe/layers/softmax_loss_vec_layer.cpp:237:6: error: ‘virtual void caffe::SoftmaxWithLossVecLayer::Forward_gpu(const std::vectorcaffe::Blob<Dtype_>&, const std::vectorcaffe::Blob<Dtype_>&)’ previously declared here
src/caffe/layers/softmax_loss_vec_layer.cpp:254:1: error: redefinition of ‘void caffe::SoftmaxWithLossVecLayer::Backward_gpu(const std::vectorcaffe::Blob<Dtype_>&, const std::vector&, const std::vectorcaffe::Blob<Dtype_>&)’
src/caffe/layers/softmax_loss_vec_layer.cpp:245:6: error: ‘virtual void caffe::SoftmaxWithLossVecLayer::Backward_gpu(const std::vectorcaffe::Blob<Dtype_>&, const std::vector&, const std::vectorcaffe::Blob<Dtype_>&)’ previously declared here
make: *** [.build_release/src/caffe/layers/softmax_loss_vec_layer.o] Error 1

from deepcut.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.