From 83a5290160e567fcf8a27975cf01df20f5e005a9 Mon Sep 17 00:00:00 2001
From: Hashim Sharif <hsharif3@miranda.cs.illinois.edu>
Date: Sun, 21 Mar 2021 19:09:21 -0500
Subject: [PATCH] Adding necessary OpenMP link fag to Cmake (CPU tensor Rt)

---
 hpvm/projects/hpvm-tensor-rt/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hpvm/projects/hpvm-tensor-rt/CMakeLists.txt b/hpvm/projects/hpvm-tensor-rt/CMakeLists.txt
index 67a00791b0..602c9327b9 100644
--- a/hpvm/projects/hpvm-tensor-rt/CMakeLists.txt
+++ b/hpvm/projects/hpvm-tensor-rt/CMakeLists.txt
@@ -104,7 +104,7 @@ add_dependencies(tensor_runtime_online tensor_runtime)
 
 # Adding rule for the debugging source
 add_executable(unit_tests dnn_sources/src/unit_tests.cc)
-target_link_libraries(unit_tests  tensor_runtime_online ${GPU_PROFILER_LIB} ${SOC_SIMULATOR_LIB})
+target_link_libraries(unit_tests  tensor_runtime_online ${GPU_PROFILER_LIB} ${SOC_SIMULATOR_LIB}  ${OpenMP_CXX_FLAGS})
 
 # -- Compile tensor_runtime.ll if possible
 if(INDEP_BUILD)
-- 
GitLab