[polly] r276617 - GPURuntime: Drop timing functionality (some leftover II)
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 25 01:03:08 PDT 2016
Author: grosser
Date: Mon Jul 25 03:03:08 2016
New Revision: 276617
URL: http://llvm.org/viewvc/llvm-project?rev=276617&view=rev
Log:
GPURuntime: Drop timing functionality (some leftover II)
Modified:
polly/trunk/tools/GPURuntime/GPUJIT.c
polly/trunk/tools/GPURuntime/GPUJIT.h
Modified: polly/trunk/tools/GPURuntime/GPUJIT.c
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/tools/GPURuntime/GPUJIT.c?rev=276617&r1=276616&r2=276617&view=diff
==============================================================================
--- polly/trunk/tools/GPURuntime/GPUJIT.c (original)
+++ polly/trunk/tools/GPURuntime/GPUJIT.c Mon Jul 25 03:03:08 2016
@@ -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 CuDeviceGetName
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");
Modified: polly/trunk/tools/GPURuntime/GPUJIT.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/tools/GPURuntime/GPUJIT.h?rev=276617&r1=276616&r2=276617&view=diff
==============================================================================
--- polly/trunk/tools/GPURuntime/GPUJIT.h (original)
+++ polly/trunk/tools/GPURuntime/GPUJIT.h Mon Jul 25 03:03:08 2016
@@ -73,7 +73,6 @@ typedef struct PollyGPUModuleT PollyGPUM
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);
More information about the llvm-commits
mailing list