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 0000000000000000000000000000000000000000..52a64a589fd8456354ceb82646783cd7b8540b97 --- /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 +