From 4ea051ce307b8eabb4d520220efa2d49b8308c1f Mon Sep 17 00:00:00 2001
From: akashk4 <akashk4@illinois.edu>
Date: Tue, 31 Dec 2019 02:18:01 -0600
Subject: [PATCH] Add Makefile.config

---
 .../benchmarks/hpvm-cava/Makefile.config      | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 llvm/tools/hpvm/test/parboil/benchmarks/hpvm-cava/Makefile.config

diff --git a/llvm/tools/hpvm/test/parboil/benchmarks/hpvm-cava/Makefile.config b/llvm/tools/hpvm/test/parboil/benchmarks/hpvm-cava/Makefile.config
new file mode 100644
index 0000000000..4572477e97
--- /dev/null
+++ b/llvm/tools/hpvm/test/parboil/benchmarks/hpvm-cava/Makefile.config
@@ -0,0 +1,28 @@
+CUDA_PATH=/usr/local/cuda 
+CUDA_LIB_PATH=/usr/local/cuda/lib64
+#OPENCL_PATH=/opt/intelFPGA_pro/18.0/hld/host/linux64
+#OPENCL_LIB_PATH=$(OPENCL_PATH)/lib
+OPENCL_PATH=/opt/intel/opencl-sdk/
+OPENCL_LIB_PATH=$(OPENCL_PATH)/lib64
+
+#LLVM_SRC_ROOT=/home/kotsifa2/HPVM/Gitlab/hpvm/llvm
+# NOTE: You may need to configure this based on your root path.
+VISC_SRC_ROOT=$(LLVM_SRC_ROOT)
+
+VISC_BUILD_DIR =$(VISC_SRC_ROOT)/../build
+CC = $(VISC_BUILD_DIR)/bin/clang
+PLATFORM_CFLAGS = -I$(LLVM_SRC_ROOT)/include -I$(VISC_BUILD_DIR)/include
+
+CXX = $(VISC_BUILD_DIR)/bin/clang++
+PLATFORM_CXXFLAGS = -I$(LLVM_SRC_ROOT)/include -I$(VISC_BUILD_DIR)/include
+
+LINKER = $(VISC_BUILD_DIR)/bin/clang++
+PLATFORM_LDFLAGS = -lm -lpthread -lrt -lOpenCL -L$(OPENCL_LIB_PATH)
+
+LLVM_LIB_PATH = $(VISC_BUILD_DIR)/lib
+LLVM_BIN_PATH = $(VISC_BUILD_DIR)/bin
+
+OPT = $(LLVM_BIN_PATH)/opt
+LLVM_LINK = $(LLVM_BIN_PATH)/llvm-link
+LLVM_AS = $(LLVM_BIN_PATH)/llvm-as
+LIT = $(LLVM_BIN_PATH)/llvm-lit
-- 
GitLab