Skip to content

Commit 707373b

Browse files
authored
Merge pull request #43 from purdue-aalp/fix_cuda_version
fix cuda version
2 parents 047eca8 + 70942ee commit 707373b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/cuda/mlperf_inference/inference_mlperf_bert.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/sh
22

33
ORIGINAL_FOLDER=$PWD
4-
BASE_MLPERF_DIR=$GPUAPPS_ROOT/bin/$CUDA_VERSION/release/mlperf_inference/
4+
short_version=$(echo "$CUDA_VERSION" | cut -d '.' -f1,2)
5+
echo $short_version
6+
BASE_MLPERF_DIR=$GPUAPPS_ROOT/bin/$short_version/release/mlperf_inference/
57
cd $BASE_MLPERF_DIR
68
. ./mlc/bin/activate
79
export MLC_SCRIPT_EXTRA_CMD="--adr.python.name=mlperf" &&

src/cuda/mlperf_inference/inference_mlperf_bert_test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/sh
22

33
ORIGINAL_FOLDER=$PWD
4-
BASE_MLPERF_DIR=$GPUAPPS_ROOT/bin/$CUDA_VERSION/release/mlperf_inference/
4+
short_version=$(echo "$CUDA_VERSION" | cut -d '.' -f1,2)
5+
echo $short_version
6+
BASE_MLPERF_DIR=$GPUAPPS_ROOT/bin/$short_version/release/mlperf_inference/
57
cd $BASE_MLPERF_DIR
68
. ./mlc/bin/activate
79
export MLC_SCRIPT_EXTRA_CMD="--adr.python.name=mlperf" &&

0 commit comments

Comments
 (0)