Skip to content

Commit d97c40e

Browse files
author
DvirDukhan
authored
Merge branch 'master' into fix_script_api_for_1.2
2 parents 22b1df1 + 7a5d18d commit d97c40e

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed

.circleci/config.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ commands:
138138
- artifacts/*.tgz
139139
- artifacts/*.tar
140140
- store_artifacts:
141-
path: tests/logs
141+
path: tests/flow/logs
142142

143143
valgrind-general-steps:
144144
parameters:
@@ -194,7 +194,7 @@ commands:
194194
docker run --gpus all -v $HOME/tests:/build/tests/logs -it --rm redisai-gpu:latest-x64-bionic-test
195195
no_output_timeout: 40m
196196
- store_artifacts:
197-
path: tests/logs
197+
path: tests/flow/logs
198198

199199

200200

@@ -254,8 +254,6 @@ jobs:
254254
root: bin/
255255
paths:
256256
- artifacts/*
257-
- store_artifacts:
258-
path: test/logs
259257

260258
coverage:
261259
docker:

get_deps.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,17 @@ else
4747
fi
4848
fi
4949

50-
git submodule update --init --recursive || true
50+
#git submodule update --init --recursive || true
51+
52+
if [ -f ${HERE}/opt/readies/bin/platform ]; then
53+
OS=$(python3 $HERE/opt/readies/bin/platform --os)
54+
ARCH=$(python3 $HERE/opt/readies/bin/platform --arch)
55+
else
56+
OS=`uname -s | tr '[:upper:]' '[:lower:]'`
57+
uname -m|grep aarch64 || ARCH=x64
58+
uname -m|grep x86 || ARCH=arm64v8
59+
fi
5160

52-
OS=$(python3 $HERE/opt/readies/bin/platform --os)
53-
ARCH=$(python3 $HERE/opt/readies/bin/platform --arch)
5461

5562
# avoid wget warnings on macOS
5663
[[ $OS == macos ]] && export LC_ALL=en_US.UTF-8
@@ -235,7 +242,7 @@ if [[ $WITH_PT != 0 ]]; then
235242
LIBTORCH_ARCHIVE=libtorch-${PT_BUILD}-${PT_OS}-${PT_ARCH}-${PT_VERSION}.tar.gz
236243

237244
if [[ $PT_REPACK == 1 ]]; then
238-
PT_VERSION=$PT_VERSION GPU=$GPU $HERE/opt/build/libtorch/repack.sh
245+
PT_VERSION=$PT_VERSION GPU=$GPU OS=${OS} ARCH=${ARCH} $HERE/opt/build/libtorch/repack.sh
239246
else
240247
LIBTORCH_URL=https://s3.amazonaws.com/redismodules/pytorch/$LIBTORCH_ARCHIVE
241248

opt/build/libtorch/repack.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -e
66
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
77

88
ROOT=$HERE/../../..
9-
. $ROOT/opt/readies/shibumi/functions
9+
#. $ROOT/opt/readies/shibumi/functions
1010
ROOT=$(realpath $ROOT)
1111

1212
if [[ "$1" == "cpu" || $CPU == 1 ]]; then
@@ -24,8 +24,13 @@ else
2424
fi
2525
fi
2626

27-
OS=$(python3 $ROOT/opt/readies/bin/platform --os)
28-
ARCH=$(python3 $ROOT/opt/readies/bin/platform --arch)
27+
# set them internally or externally
28+
if [ -z ${OS} ]; then
29+
OS=$(python3 $ROOT/opt/readies/bin/platform --os)
30+
fi
31+
if [ -z ${ARCH} ]; then
32+
ARCH=$(python3 $ROOT/opt/readies/bin/platform --arch)
33+
fi
2934

3035
TARGET_DIR=$ROOT/deps/$OS-$ARCH-$DEVICE
3136

0 commit comments

Comments
 (0)