GPURuntime: Drop timing functionality (some leftover II)
authorTobias Grosser <tobias@grosser.es>
Mon, 25 Jul 2016 08:03:08 +0000 (08:03 +0000)
committerTobias Grosser <tobias@grosser.es>
Mon, 25 Jul 2016 08:03:08 +0000 (08:03 +0000)
llvm-svn: 276617

polly/tools/GPURuntime/GPUJIT.c
polly/tools/GPURuntime/GPUJIT.h

index 3c701a4..e957c2f 100644 (file)
@@ -52,10 +52,6 @@ struct PollyGPUDevicePtrT {
   CUdeviceptr Cuda;
 };
 
-struct PollyGPUEventT {
-  cudaEvent_t Cuda;
-};
-
 /* Dynamic library handles for the CUDA and CUDA runtime library. */
 static void *HandleCuda;
 static void *HandleCudaRT;
@@ -120,22 +116,6 @@ typedef CUresult CUDAAPI CuDeviceGetNameFcnTy(char *, int, CUdevice);
 static CuDeviceGetNameFcnTy *CuDeviceGetNameFcnPtr;
 
 /* Type-defines of function pointer ot CUDA runtime APIs. */
-typedef cudaError_t CUDARTAPI CudaEventCreateFcnTy(cudaEvent_t *);
-static CudaEventCreateFcnTy *CudaEventCreateFcnPtr;
-
-typedef cudaError_t CUDARTAPI CudaEventRecordFcnTy(cudaEvent_t, cudaStream_t);
-static CudaEventRecordFcnTy *CudaEventRecordFcnPtr;
-
-typedef cudaError_t CUDARTAPI CudaEventSynchronizeFcnTy(cudaEvent_t);
-static CudaEventSynchronizeFcnTy *CudaEventSynchronizeFcnPtr;
-
-typedef cudaError_t CUDARTAPI CudaEventElapsedTimeFcnTy(float *, cudaEvent_t,
-                                                        cudaEvent_t);
-static CudaEventElapsedTimeFcnTy *CudaEventElapsedTimeFcnPtr;
-
-typedef cudaError_t CUDARTAPI CudaEventDestroyFcnTy(cudaEvent_t);
-static CudaEventDestroyFcnTy *CudaEventDestroyFcnPtr;
-
 typedef cudaError_t CUDARTAPI CudaThreadSynchronizeFcnTy(void);
 static CudaThreadSynchronizeFcnTy *CudaThreadSynchronizeFcnPtr;
 
@@ -233,21 +213,6 @@ static int initialDeviceAPIs() {
       (CuDeviceGetNameFcnTy *)getAPIHandle(HandleCuda, "cuDeviceGetName");
 
   /* Get function pointer to CUDA Runtime APIs. */
-  CudaEventCreateFcnPtr =
-      (CudaEventCreateFcnTy *)getAPIHandle(HandleCudaRT, "cudaEventCreate");
-
-  CudaEventRecordFcnPtr =
-      (CudaEventRecordFcnTy *)getAPIHandle(HandleCudaRT, "cudaEventRecord");
-
-  CudaEventSynchronizeFcnPtr = (CudaEventSynchronizeFcnTy *)getAPIHandle(
-      HandleCudaRT, "cudaEventSynchronize");
-
-  CudaEventElapsedTimeFcnPtr = (CudaEventElapsedTimeFcnTy *)getAPIHandle(
-      HandleCudaRT, "cudaEventElapsedTime");
-
-  CudaEventDestroyFcnPtr =
-      (CudaEventDestroyFcnTy *)getAPIHandle(HandleCudaRT, "cudaEventDestroy");
-
   CudaThreadSynchronizeFcnPtr = (CudaThreadSynchronizeFcnTy *)getAPIHandle(
       HandleCudaRT, "cudaThreadSynchronize");
 
index fb7e8e1..0114acd 100644 (file)
@@ -73,7 +73,6 @@ typedef struct PollyGPUModuleT PollyGPUModule;
 typedef struct PollyGPUFunctionT PollyGPUFunction;
 typedef struct PollyGPUDeviceT PollyGPUDevice;
 typedef struct PollyGPUDevicePtrT PollyGPUDevicePtr;
-typedef struct PollyGPUEventT PollyGPUEvent;
 
 void polly_initDevice(PollyGPUContext **Context, PollyGPUDevice **Device);
 void polly_getPTXModule(void *PTXBuffer, PollyGPUModule **Module);