Git Product home page Git Product logo

Comments (8)

willyd avatar willyd commented on June 8, 2024

Hi @gucan-long . You need a caffe branch that has both my changes to support Windows and those of BLVC to support multi-gpu. In git lingo you need to fork either BLVC's or my caffe repository and apply the changes from the other repository:

One way of doing this would be:

# first clone your own caffe fork
git clone https://github.com/gucan-long/caffe.git caffe
cd caffe
# update to BLVC upstream
git remote add upstream https://github.com/BLVC/caffe.git
git fetch upstream
git checkout master
git merge upstream/master 
# add willyd's work as another remote
git remote add willyd https://github.com/willyd/caffe.git
git fetch willyd
# branch off BLVC master
git checkout -b multigpu
# merge in the changes from willyd's branch
git merge willyd/visualstudio
# resolve any conflicts
git add <resolved files>
git commit
git push origin

Then change the GIT_REPOSITORY to your own repo and the GIT_TAG to multigpu. Please note that I could be wrong in the above git commands. I did not test them, but you get the idea. You can refer to github's documentation to know how to sync a fork.

Let me know if you succeed or not.

from caffe-builder.

gclong avatar gclong commented on June 8, 2024

Hi @willyd , thank you very much for your detailed reply.

I tried as you suggested, but failed. The problem lies in the new added file of caffe/src/caffe/util/signal_handler.cpp. In which the signal-related functions (e.g. sigfillset()) lack supports in Windows. If possible, could you please have a look at it and kindly give some further suggestions?

Many thanks!

from caffe-builder.

willyd avatar willyd commented on June 8, 2024

Yeah I briefly mentioned a possible solution in the PR comments for Windows but did not have time to integrate this change in my fork.

from caffe-builder.

gclong avatar gclong commented on June 8, 2024

Hi @willyd thanks for your reply. By "a possible solution in the PR comments", could you please give me a url of it? Maybe I could have a try.

from caffe-builder.

willyd avatar willyd commented on June 8, 2024

Here is the PR link. My "potential solution" is very brief though: BVLC/caffe#2253.

from caffe-builder.

happynear avatar happynear commented on June 8, 2024

@willyd
You may refer to my modification https://github.com/happynear/caffe-windows/blob/master/src/caffe/util/signal_handler.cpp .
There is no SIGHUP in windows. However, I like the "snapshot whenever I want" feature. So I use SIGBREAK to replace SIGHUP.

from caffe-builder.

willyd avatar willyd commented on June 8, 2024

@gclong My fork now was the latest changes integrated. See branc msvc

from caffe-builder.

gclong avatar gclong commented on June 8, 2024

Hi @willyd . That is great! Thank you so much!

from caffe-builder.

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.