projects
/
pocl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5e50bc
)
[PATCH 35/90] CUDA: don't leak the epoch_event
author
Giuseppe Bilotta
<giuseppe.bilotta@gmail.com>
Wed, 3 Feb 2021 19:32:31 +0000
(20:32 +0100)
committer
Andreas Beckmann
<anbe@debian.org>
Fri, 7 Jan 2022 23:55:22 +0000
(23:55 +0000)
Gbp-Pq: Name 0035-CUDA-don-t-leak-the-epoch_event.patch
lib/CL/devices/cuda/pocl-cuda.c
patch
|
blob
|
history
diff --git
a/lib/CL/devices/cuda/pocl-cuda.c
b/lib/CL/devices/cuda/pocl-cuda.c
index f126873c3c728472b7e3e21b248c7b66249e6f79..1d8d4cef5d765dae3707561aeaebbf70f42930d6 100644
(file)
--- a/
lib/CL/devices/cuda/pocl-cuda.c
+++ b/
lib/CL/devices/cuda/pocl-cuda.c
@@
-525,8
+525,10
@@
pocl_cuda_uninit (unsigned j, cl_device_id device)
{
pocl_cuda_device_data_t *data = device->data;
- if (device->available)
+ if (device->available) {
+ cuEventDestroy (data->epoch_event);
cuCtxDestroy (data->context);
+ }
POCL_MEM_FREE (data);
device->data = NULL;