caffe icon indicating copy to clipboard operation
caffe copied to clipboard

"make distribute" for Exporting Code to a Different Machine

Open forest342003 opened this issue 12 years ago • 2 comments

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 avatar Jul 16 '14 01:07 forest342003

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.

forest342003 avatar Jul 17 '14 19:07 forest342003

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?

fninsiima avatar May 04 '16 06:05 fninsiima