From 70114fa9190de1419d85d114182f5619426c3113 Mon Sep 17 00:00:00 2001
From: Hashim Sharif <hsharif3@tyler.cs.illinois.edu>
Date: Fri, 14 Dec 2018 01:21:18 -0600
Subject: [PATCH] Adding script to installing the runtime

---
 llvm/projects/hpvm-tensor-rt/bin/install_runtime.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 llvm/projects/hpvm-tensor-rt/bin/install_runtime.sh

diff --git a/llvm/projects/hpvm-tensor-rt/bin/install_runtime.sh b/llvm/projects/hpvm-tensor-rt/bin/install_runtime.sh
new file mode 100644
index 0000000000..52a64a589f
--- /dev/null
+++ b/llvm/projects/hpvm-tensor-rt/bin/install_runtime.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+export HPVM_TENSOR_RT_HOME=/home/hsharif3/Gitlab/hpvm/llvm/projects/hpvm-tensor-rt/
+export PATH=/home/hsharif3/Gitlab/hpvm/build/bin/:$PATH
+
+cp ${HPVM_TENSOR_RT_HOME}/tensor_runtime/include/tensor_runtime.h  ${HPVM_TENSOR_RT_HOME}/tensor_runtime/include/tensor_runtime.cc
+clang++ -emit-llvm -c ${HPVM_TENSOR_RT_HOME}/tensor_runtime/include/tensor_runtime.cc -o ${HPVM_TENSOR_RT_HOME}/lib/tensor_runtime.bc
+llvm-dis --version
+llvm-dis ${HPVM_TENSOR_RT_HOME}/lib/tensor_runtime.bc
+cp ${HPVM_TENSOR_RT_HOME}/build/libtensor_runtime.a  ${HPVM_TENSOR_RT_HOME}/lib/libtensor_runtime.a  
+
-- 
GitLab