Giter Site home page Giter Site logo

Comments (8)

chipgarner avatar chipgarner commented on July 21, 2024

See the first line in cudnn_conv_layer.cpp:
#ifdef USE_CUDNN
You have USE_CUDNN defined. In VS go to the caffe project Properties, C/C++, Preprocessor and delete USE_CUDNN. You may need to delete it from one or more of the other projects, you will see if you hit a similar error in one of them.

from caffe-windows.

happynear avatar happynear commented on July 21, 2024

Yes, you should remove the preprocessor macro USE_CUDNN before compiling.

from caffe-windows.

Kwongpuikong avatar Kwongpuikong commented on July 21, 2024

I do delete the all the USE_CUDNN in those projects. What else do I miss?

from caffe-windows.

happynear avatar happynear commented on July 21, 2024

@Kwongpuikong ,
That's all. I think you have came across another question. Please post more message for us to diagnose.

from caffe-windows.

Kwongpuikong avatar Kwongpuikong commented on July 21, 2024

Cause I dont have a gpu, I delete all the USE_CUDNN in all projects. I can compile all the projects successfully. Yes, I can compile all the projects successfully.
The problem comes when I want to run the mnist example.
I set the solver_mode: CPU in lenet_solver.prototxt,
and modify the bat file like:
.\bin\caffe.exe train --solver=examples/mnist/lenet_solver.prototxt
It shows the problem [internal_thread.cpp:26] check failed:error == cudaSuccess(35 vs. 0)
I check the internal_thread.cpp, I think the CPU_ONLY is not defined.
Therefore, it checks my GPU which I do not have.
What can I do?
I am a beginner with caffe. Can you help me pls?

from caffe-windows.

happynear avatar happynear commented on July 21, 2024

@Kwongpuikong ,
Try to add CPU_ONLY macro. However, I haven't tested it. There may be some more bugs.

from caffe-windows.

flymer avatar flymer commented on July 21, 2024

Oooh thanks, solve it! I had actually removed USE_CUDNN and added CPU_ONLY but only in the caffe project, I also needed to do it in the caffelib.

Finally it works! Wonderful, I hope it can help others.

Thanks happynear for the port!

from caffe-windows.

happynear avatar happynear commented on July 21, 2024

@flymer, thanks for the test report. I will add instructions in the ReadMe page.

from caffe-windows.

Related Issues (20)

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.