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

"make distribute" for Exporting Code to a Different Machine #706

Closed
forest342003 opened this issue Jul 16, 2014 · 2 comments
Closed

"make distribute" for Exporting Code to a Different Machine #706

forest342003 opened this issue Jul 16, 2014 · 2 comments

Comments

@forest342003
Copy link

Hello,
I have installed CAFFE on Mac 10.9.3 and I wish to run experiments on Amazon EC2.
I used "make distribute" and copied the resulting distribute directory to the EC2 machine.

I have a shell file called "train.sh" with the following code in the examples/cifar10 directory:

#!/usr/bin/env sh

TOOLS=../../distribute/bin
$TOOLS/train_net.bin

When I run:

./train.sh

I get the following:

../../distribute/bin/train_net.bin: 1: ../../distribute/bin/train_net.bin: ?????: not found
../../distribute/bin/train_net.bin: 2: ../../distribute/bin/train_net.bin: ?__stubs__TEXT2?: not found
../../distribute/bin/train_net.bin: 3: ../../distribute/bin/train_net.bin: :2?: not found
../../distribute/bin/train_net.bin: 4: ../../distribute/bin/train_net.bin:?__stub_helper__TEXTl?: not found
../../distribute/bin/train_net.bin: 5: ../../distribute/bin/train_net.bin: ?: not found
../../distribute/bin/train_net.bin: 6: ../../distribute/bin/train_net.bin: l?: not found
../../distribute/bin/train_net.bin: 7: ../../distribute/bin/train_net.bin: ?__gcc_except_tab__TEXT?: not found
../../distribute/bin/train_net.bin: 8: ../../distribute/bin/train_net.bin: ??: not found
../../distribute/bin/train_net.bin: 27: ../../distribute/bin/train_net.bin: Syntax error: word unexpected (expecting ")")

When running "cat /proc/version" on the EC2 server I get:

Linux version 3.8.0-35-generic (buildd@roseapple) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) ) #50-Ubuntu SMP Tue Dec 3 01:24:59 UTC 2013

Does anyone know how I can run CAFFE on the EC2 server?
Are there environment variables that I need to set?

Thank you very much!

@forest342003
Copy link
Author

Ah, so it's become obvious that I have to recompile everything on that machine. Doh!
I am able to get it to work now.

@fninsiima
Copy link

I want to distribute to other machines
But i dont know how
There is no makefile config in the distribute folder
How should i compile?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants