"examples/pytorch/translation/run_translation.py" did not exist on "b9720dd6f296ae222961a26cf43477cfc8d24d80"
build.sh 584 Bytes
Newer Older
longpanda's avatar
longpanda committed
1
2
3
4
#!/bin/bash

CUR="$PWD"

5
LIBFUSE_DIR=$CUR/LIBFUSE
longpanda's avatar
longpanda committed
6
7
8
9
10
11
12
13

if uname -a | egrep -q 'x86_64|amd64'; then
    name=vtoy_fuse_iso_64
else
    name=vtoy_fuse_iso_32
    opt=-lrt
fi

longpanda's avatar
longpanda committed
14
15
16
17
#
# use mini-native-x86_64 UCLIBC to build for x86_64
#

longpanda's avatar
longpanda committed
18
19
20
export C_INCLUDE_PATH=$LIBFUSE_DIR/include

rm -f $name
longpanda's avatar
longpanda committed
21
gcc -static -O2 -D_FILE_OFFSET_BITS=64  vtoy_fuse_iso.c -o $name $LIBFUSE_DIR/lib/libfuse.a  -lpthread -ldl $opt
longpanda's avatar
longpanda committed
22
23
24
25
26
27
28
29
30

if [ -e $name ]; then
   echo -e "\n############### SUCCESS $name ##################\n"
else
    echo -e "\n############### FAILED $name ##################\n"
fi

strip --strip-all $name