[ocl-icd] 01/03: Fix "clSVMFree never called in OpenCL ICD" (Closes: #787941) The patch is backported from upstream

Vincent Danjean vdanjean at debian.org
Fri Dec 18 00:54:42 UTC 2015


This is an automated email from the git hooks/post-receive script.

vdanjean pushed a commit to annotated tag debian/2.2.3-1+deb8u1
in repository ocl-icd.

commit 0f0ee865a59895452446f81ebe72012c4491cedd
Author: Vincent Danjean <Vincent.Danjean at ens-lyon.org>
Date:   Thu Jun 11 21:39:59 2015 +0200

    Fix "clSVMFree never called in OpenCL ICD" (Closes: #787941) The patch is backported from upstream
    
    Backport from upstream
---
 debian/changelog                                   |  7 +++++
 ...the-function-when-the-return-type-is-void.patch | 30 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 38 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 8b93568..2c6af93 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ocl-icd (2.2.3-1+deb8u1) jessie-proposed-updates; urgency=medium
+
+  * Fix "clSVMFree never called in OpenCL ICD" (Closes: #787941)
+    The patch is backported from upstream
+
+ -- Vincent Danjean <vdanjean at debian.org>  Thu, 11 Jun 2015 16:25:49 +0200
+
 ocl-icd (2.2.3-1) unstable; urgency=medium
 
   * New upstream release
diff --git a/debian/patches/0001-BUG-call-the-function-when-the-return-type-is-void.patch b/debian/patches/0001-BUG-call-the-function-when-the-return-type-is-void.patch
new file mode 100644
index 0000000..016a448
--- /dev/null
+++ b/debian/patches/0001-BUG-call-the-function-when-the-return-type-is-void.patch
@@ -0,0 +1,30 @@
+From a224b6edd654ac741af3ea7ca5eb282198e3f5c6 Mon Sep 17 00:00:00 2001
+From: Vincent Danjean <Vincent.Danjean at ens-lyon.org>
+Date: Sat, 6 Jun 2015 18:05:23 +0200
+Subject: [PATCH] [BUG] call the function when the return type is void
+
+Before this patch, clSVMFree was never called...
+---
+ icd_generator.rb | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+--- a/icd_generator.rb
++++ b/icd_generator.rb
+@@ -574,12 +574,13 @@
+       error_handler.call
+       ocl_icd_loader_gen_source += "  }\n"
+       if return_type != "void" then
+-        ocl_icd_loader_gen_source += "  RETURN(((struct _#{fps[0]} *)#{fps[1]})->dispatch->#{func_name}("
+-        ocl_icd_loader_gen_source += ps.join(", ")
+-        ocl_icd_loader_gen_source += "));\n"
++        return_debug="RETURN"
+       else
+-        ocl_icd_loader_gen_source += "  return;"
++        return_debug="return"
+       end
++      ocl_icd_loader_gen_source += "  #{return_debug}(((struct _#{fps[0]} *)#{fps[1]})->dispatch->#{func_name}("
++      ocl_icd_loader_gen_source += ps.join(", ")
++      ocl_icd_loader_gen_source += "));\n"
+       ocl_icd_loader_gen_source += "}\n\n"
+     }
+     ocl_icd_loader_gen_source += "#pragma GCC visibility push(hidden)\n\n"
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..8a471e5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-BUG-call-the-function-when-the-return-type-is-void.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/ocl-icd.git



More information about the Pkg-opencl-commits mailing list