summaryrefslogtreecommitdiffstats
path: root/polly
diff options
context:
space:
mode:
Diffstat (limited to 'polly')
-rw-r--r--polly/tools/GPURuntime/GPUJIT.c24
-rw-r--r--polly/tools/GPURuntime/GPUJIT.h4
2 files changed, 0 insertions, 28 deletions
diff --git a/polly/tools/GPURuntime/GPUJIT.c b/polly/tools/GPURuntime/GPUJIT.c
index 3b3ef9d13ee..941d1f86879 100644
--- a/polly/tools/GPURuntime/GPUJIT.c
+++ b/polly/tools/GPURuntime/GPUJIT.c
@@ -339,30 +339,6 @@ void polly_launchKernel(PollyGPUFunction *Kernel, int GridWidth,
debug_print("CUDA kernel launched.\n");
}
-void polly_cleanupGPGPUResources(void *HostData, PollyGPUDevicePtr *DevData,
- PollyGPUModule *Module,
- PollyGPUFunction *Kernel) {
- dump_function();
-
- if (HostData) {
- free(HostData);
- HostData = 0;
- }
-
- if (DevData->Cuda) {
- CuMemFreeFcnPtr(DevData->Cuda);
- free(DevData);
- }
-
- if (Module->Cuda) {
- CuModuleUnloadFcnPtr(Module->Cuda);
- free(Module);
- }
- if (Kernel) {
- free(Kernel);
- }
-}
-
void polly_freeContext(PollyGPUContext *Context) {
if (Context->Cuda) {
diff --git a/polly/tools/GPURuntime/GPUJIT.h b/polly/tools/GPURuntime/GPUJIT.h
index 68fdc498d71..dd70aff78bc 100644
--- a/polly/tools/GPURuntime/GPUJIT.h
+++ b/polly/tools/GPURuntime/GPUJIT.h
@@ -62,7 +62,6 @@
* polly_setKernelParameters(Kernel, BlockWidth, BlockHeight, DevData);
* polly_launchKernel(Kernel, GridWidth, GridHeight);
* polly_copyFromDeviceToHost(HostData, DevData, MemSize);
- * polly_cleanupGPGPUResources(HostData, DevData, Module, Kernel);
* polly_freeContext(Context);
* }
*
@@ -85,8 +84,5 @@ void polly_setKernelParameters(PollyGPUFunction *Kernel, int BlockWidth,
int BlockHeight, PollyGPUDevicePtr *DevData);
void polly_launchKernel(PollyGPUFunction *Kernel, int GridWidth,
int GridHeight);
-void polly_cleanupGPGPUResources(void *HostData, PollyGPUDevicePtr *DevData,
- PollyGPUModule *Module,
- PollyGPUFunction *Kernel);
void free_Context(PollyGPUContext *Context);
#endif /* GPUJIT_H_ */
OpenPOWER on IntegriCloud