Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hpvm-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
hpvm-release
Commits
79caffec
Commit
79caffec
authored
4 years ago
by
Yifan Zhao
Browse files
Options
Downloads
Patches
Plain Diff
Removed weight downloading mechanism and fixed model_weight prefix
parent
fc6812ae
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
hpvm/scripts/download_weights.sh
+0
-10
0 additions, 10 deletions
hpvm/scripts/download_weights.sh
hpvm/scripts/llvm_installer.sh
+0
-22
0 additions, 22 deletions
hpvm/scripts/llvm_installer.sh
hpvm/test/dnn_benchmarks/CMakeLists.txt
+1
-1
1 addition, 1 deletion
hpvm/test/dnn_benchmarks/CMakeLists.txt
with
1 addition
and
33 deletions
hpvm/scripts/download_weights.sh
deleted
100755 → 0
+
0
−
10
View file @
fc6812ae
#!/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
This diff is collapsed.
Click to expand it.
hpvm/scripts/llvm_installer.sh
+
0
−
22
View file @
79caffec
...
...
@@ -32,7 +32,6 @@ HPVM_RT=hpvm-rt/hpvm-rt.bc
TARGET
=
all
TARGET_INPUT
=
all
FLAGGED
=
false
DOWNLOAD_WEIGHTS
=
false
# Get flags
while
getopts
'hmj:t:'
opt
;
do
...
...
@@ -84,7 +83,6 @@ if $FLAGGED; then
echo
Automated:
$AUTOMATE
echo
Threads:
$NUM_THREADS
echo
Targets:
$TARGET
echo
Download Weights:
$DOWNLOAD_WEIGHTS
echo
else
echo
"No Flags found. Using command line prompts."
...
...
@@ -124,22 +122,11 @@ else
TARGET
=
$TARGET_INPUT
fi
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
Automated:
$AUTOMATE
echo
Threads:
$NUM_THREADS
echo
Targets:
$TARGET
echo
Download Weights:
$DOWNLOAD_WEIGHTS
echo
fi
...
...
@@ -252,15 +239,6 @@ echo make -j$NUM_THREADS
make
-j
$NUM_THREADS
#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
true
else
...
...
This diff is collapsed.
Click to expand it.
hpvm/test/dnn_benchmarks/CMakeLists.txt
+
1
−
1
View file @
79caffec
...
...
@@ -11,7 +11,7 @@ set(CMAKE_CXX_COMPILER "${LLVM_BIN_DIR}/clang++")
# 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
# decouple things.
set
(
MODEL_PARAMS_DIR
"
${
CMAKE_
BINARY
_DIR
}
/model_params/"
)
set
(
MODEL_PARAMS_DIR
"
${
CMAKE_
CURRENT_SOURCE
_DIR
}
/model_params/"
)
configure_file
(
"include/config.h.in"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/include/config.h"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment