From b89d2c0e110e273832fc5907961267c78f676e5e Mon Sep 17 00:00:00 2001
From: Hashim Sharif <hsharif3@miranda.cs.illinois.edu>
Date: Mon, 5 Jul 2021 16:36:10 -0500
Subject: [PATCH] Adding instructions for compiling mini-era benchmark for
 NVDLA

---
 .../benchmarks/miniera-hpvm/src/README.md     | 27 +++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 hpvm/test/dnn_benchmarks/hpvm-c/benchmarks/miniera-hpvm/src/README.md

diff --git a/hpvm/test/dnn_benchmarks/hpvm-c/benchmarks/miniera-hpvm/src/README.md b/hpvm/test/dnn_benchmarks/hpvm-c/benchmarks/miniera-hpvm/src/README.md
new file mode 100644
index 0000000000..e316e68215
--- /dev/null
+++ b/hpvm/test/dnn_benchmarks/hpvm-c/benchmarks/miniera-hpvm/src/README.md
@@ -0,0 +1,27 @@
+
+# Environment setup 
+
+Add path to `libprotobuf.so` and `libnvdla_compiler.so` in LD_LIBRARY_PATH
+
+
+
+# Compilation Command 
+
+Compilation script : `miniera-hpvm/src/compile_benchmark.sh`
+
+Command:
+
+```
+python3 /home/hsharif3/Gitlab/hpvm_release_nvdla/hpvm/build/tools/hpvm/tools/hpvm-clang/main.py -t nvdla --conf-file data/tuner_confs.txt -DMODEL_PARAMS_DIR=${PATH_TO_MODELPARAMS} -fno-exceptions miniera-hpvm.cpp miniera-hpvm
+
+```
+
+
+
+# Frontend/Source changes required
+
+* Weights must be FP16!
+
+* Weights for FC layers need to be tranposed 
+
+* Modify paths to readTrainedWeights to pass constant file path -- use MODEL_PARAMS_STR as part of string 
-- 
GitLab