Skip to content
Snippets Groups Projects
Commit 9d987de1 authored by Yifan Zhao's avatar Yifan Zhao
Browse files

Merge remote-tracking branch 'origin/approx_hpvm_reorg' into onnx_frontend

parents 125b738c 79caffec
No related branches found
No related tags found
No related merge requests found
hpvm/test/dnn_benchmarks/model_params/**/*.bin filter=lfs diff=lfs merge=lfs -text
#!/bin/bash
# First get hands on gdown -- google drive downloader
wget https://raw.githubusercontent.com/circulosmeos/gdown.pl/master/gdown.pl -O gdown.pl
chmod +x ./gdown.pl
# Download the zip file from google drive
./gdown.pl 'https://drive.google.com/file/d/1V_yd9sKcZQ7zhnO5YhRpOsaBPLEEvM9u' model_params.zip
unzip model_params.zip # should give a "model_params" folder
# All our benchmarks also know to look for parameters in <build_dir>/model_params.
# Cleanup:
rm gdown.pl model_params.zip
\ No newline at end of file
...@@ -32,7 +32,6 @@ HPVM_RT=hpvm-rt/hpvm-rt.bc ...@@ -32,7 +32,6 @@ HPVM_RT=hpvm-rt/hpvm-rt.bc
TARGET=all TARGET=all
TARGET_INPUT=all TARGET_INPUT=all
FLAGGED=false FLAGGED=false
DOWNLOAD_WEIGHTS=false
# Get flags # Get flags
while getopts 'hmj:t:' opt; do while getopts 'hmj:t:' opt; do
...@@ -84,7 +83,6 @@ if $FLAGGED; then ...@@ -84,7 +83,6 @@ if $FLAGGED; then
echo Automated: $AUTOMATE echo Automated: $AUTOMATE
echo Threads: $NUM_THREADS echo Threads: $NUM_THREADS
echo Targets: $TARGET echo Targets: $TARGET
echo Download Weights: $DOWNLOAD_WEIGHTS
echo echo
else else
echo "No Flags found. Using command line prompts." echo "No Flags found. Using command line prompts."
...@@ -124,22 +122,11 @@ else ...@@ -124,22 +122,11 @@ else
TARGET=$TARGET_INPUT TARGET=$TARGET_INPUT
fi fi
echo echo
read_yn "Download weights necessary to run DNN benchmarks?" LOAD_WEIGHTS
if [[ $LOAD_WEIGHTS == "" ]]; then
echo "No input given. Weights will not be downloaded."
elif [[ $LOAD_WEIGHTS == "n" ]]; then
echo "Weights will not be downloaded."
else
DOWNLOAD_WEIGHTS=$LOAD_WEIGHTS
fi
echo
echo "Running with the following options:" echo "Running with the following options:"
echo Automated: $AUTOMATE echo Automated: $AUTOMATE
echo Threads: $NUM_THREADS echo Threads: $NUM_THREADS
echo Targets: $TARGET echo Targets: $TARGET
echo Download Weights: $DOWNLOAD_WEIGHTS
echo echo
fi fi
...@@ -252,15 +239,6 @@ echo make -j$NUM_THREADS ...@@ -252,15 +239,6 @@ echo make -j$NUM_THREADS
make -j$NUM_THREADS make -j$NUM_THREADS
#make install #make install
if [ $DOWNLOAD_WEIGHTS == "y" ]; then
echo
echo "Downloading weights for DNN benchmarks..."
echo
../scripts/download_weights.sh
else
echo "Skipping weight download"
fi
if [ -f $BUILD_DIR/tools/hpvm/projects/$HPVM_RT ]; then if [ -f $BUILD_DIR/tools/hpvm/projects/$HPVM_RT ]; then
true true
else else
......
...@@ -11,7 +11,7 @@ set(CMAKE_CXX_COMPILER "${LLVM_BIN_DIR}/clang++") ...@@ -11,7 +11,7 @@ set(CMAKE_CXX_COMPILER "${LLVM_BIN_DIR}/clang++")
# Configure config.h which tells the benchmarks where's the build directory. # Configure config.h which tells the benchmarks where's the build directory.
# We can also use the one in tensor_runtime, but we're avoiding that trying to # We can also use the one in tensor_runtime, but we're avoiding that trying to
# decouple things. # decouple things.
set(MODEL_PARAMS_DIR "${CMAKE_BINARY_DIR}/model_params/") set(MODEL_PARAMS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/model_params/")
configure_file( configure_file(
"include/config.h.in" "include/config.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/include/config.h" "${CMAKE_CURRENT_BINARY_DIR}/include/config.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment