From fa4b7108d99c020e43bd674ab5a79367372631c6 Mon Sep 17 00:00:00 2001
From: Hashim Sharif <hsharif3@tyler.cs.illinois.edu>
Date: Fri, 27 Mar 2020 03:36:21 -0500
Subject: [PATCH] Adding missing API call declarations

---
 .../hpvm-tensor-rt/tensor_runtime/include/approx_api.h      | 6 ++++++
 .../hpvm-tensor-rt/tensor_runtime/include/tensor_runtime.h  | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/llvm/projects/hpvm-tensor-rt/tensor_runtime/include/approx_api.h b/llvm/projects/hpvm-tensor-rt/tensor_runtime/include/approx_api.h
index ed1c373f65..61936f3c2e 100644
--- a/llvm/projects/hpvm-tensor-rt/tensor_runtime/include/approx_api.h
+++ b/llvm/projects/hpvm-tensor-rt/tensor_runtime/include/approx_api.h
@@ -38,6 +38,12 @@ extern "C"{
 			   int conv_mode, int conv_groups,
 			   int row, int col, int start);
 
+  void* tensorConvPerfSim(void* input_ptr, void* filter_ptr,
+			  int vertical_pad, int horizontal_pad,
+			  int vertical_stride, int horizontal_stride,
+			  int conv_mode, int conv_groups, int row, int col);
+
+  
   void* tensorConvPerfCudaHalf(void* input_ptr, void* filter_ptr,
 			       int vertical_pad, int horizontal_pad,
 			       int vertical_stride, int horizontal_stride,
diff --git a/llvm/projects/hpvm-tensor-rt/tensor_runtime/include/tensor_runtime.h b/llvm/projects/hpvm-tensor-rt/tensor_runtime/include/tensor_runtime.h
index c035050442..eb7f85756d 100644
--- a/llvm/projects/hpvm-tensor-rt/tensor_runtime/include/tensor_runtime.h
+++ b/llvm/projects/hpvm-tensor-rt/tensor_runtime/include/tensor_runtime.h
@@ -234,7 +234,7 @@ extern "C"{
   void* quantizeTensorPromise(void* input_ptr, float min, float max);
   void* addPromiseError(void* x_ptr, int error_scale);
   void readSkipTensors(int* skip_tensor_ids, int op_count);
-
+  void convertToFP32(struct Tensor* tensor);
 
 }
 
-- 
GitLab