File: 0006-fix-backend-rework-passing-profile-arg-to-opencl.patch

package info (click to toggle)
compyle 0.8.1-11
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,100 kB
  • sloc: python: 12,337; makefile: 21
file content (25 lines) | stat: -rw-r--r-- 870 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Navaneet Villodi <11260095+nauaneed@users.noreply.github.com>
Subject: fix(backend): rework passing profile arg to opencl
Origin: https://github.com/nauaneed/compyle/commit/82a128c5dc4072dfb38ee59d4a2782e0e6c542d3
Bug-Debian: https://bugs.debian.org/1104368

---
 compyle/opencl.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/compyle/opencl.py
+++ b/compyle/opencl.py
@@ -29,10 +29,10 @@
 def get_queue():
     global _queue
     if _queue is None:
-        properties = None
+        kwargs = dict()
         if get_config().profile:
-            properties = cl.command_queue_properties.PROFILING_ENABLE
-        _queue = cl.CommandQueue(get_context(), properties=properties)
+            kwargs['properties'] = cl.command_queue_properties.PROFILING_ENABLE
+        _queue = cl.CommandQueue(get_context(), **kwargs)
     return _queue