From 9f2f52db5c083f5e65535639100f9feb47a9936a Mon Sep 17 00:00:00 2001
From: akashk4 <akashk4@illinois.edu>
Date: Sat, 18 Jan 2020 14:11:06 -0600
Subject: [PATCH] Remove unneeded code in visc-rt.cpp

---
 hpvm/projects/visc-rt/visc-rt.cpp | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/hpvm/projects/visc-rt/visc-rt.cpp b/hpvm/projects/visc-rt/visc-rt.cpp
index e4fddca19e..2f3fc6282a 100644
--- a/hpvm/projects/visc-rt/visc-rt.cpp
+++ b/hpvm/projects/visc-rt/visc-rt.cpp
@@ -1513,7 +1513,6 @@ static char* LoadProgSource(const char* Filename, size_t* szFinalLength)
   pFileStream = fopen(Filename, "rb");
   if(pFileStream == 0)
   {
-    cout << "HERE NULL\n";
     return NULL;
   }
 
@@ -1544,8 +1543,6 @@ static char* LoadProgSource(const char* Filename, size_t* szFinalLength)
 
 void* llvm_visc_ocl_launch(const char* FileName, const char* KernelName) {
   pthread_mutex_lock(&ocl_mtx);
-  KernelName = "mysgemmNT"; 
-  FileName = "/home/akashk4/hpvm-reorg-9/hpvm/hpvm/llvm/tools/hpvm/test/parboil/benchmarks/sgemm/src/visc/kernel.cl";
   DEBUG(cout << "Launch OCL Kernel\n");
   // Initialize OpenCL
 
@@ -1571,16 +1568,11 @@ void* llvm_visc_ocl_launch(const char* FileName, const char* KernelName) {
 
   cl_int binaryStatus;
   //pthread_mutex_lock(&ocl_mtx);
- // Context->clProgram = clCreateProgramWithBinary(Context->clOCLContext, 1, &clDevices[0],
-                        //                &kernelLength,
-                      //                  (const unsigned char **)&programSource,
-                    //                    &binaryStatus, &errcode);
   Context->clProgram = clCreateProgramWithSource(Context->clOCLContext, 1, (const char **)&programSource, NULL, &errcode);
   //pthread_mutex_unlock(&ocl_mtx);
   checkErr(errcode, CL_SUCCESS, "Failure to create program from binary");
 
   DEBUG(cout << "Building kernel - " << KernelName << " from file " << FileName << flush << "\n");
-  //errcode = clBuildProgram(Context->clProgram, 0, NULL, NULL, NULL, NULL);
   errcode = clBuildProgram(Context->clProgram, 1, &clDevices[0], "", NULL, NULL);
   // If build fails, get build log from device
   if(errcode != CL_SUCCESS) {
-- 
GitLab