From 890a50ffd29d40203f891a79cd2d7ab0257f3d98 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Fri, 7 Jun 2013 10:37:43 -0400 Subject: [PATCH] Minor tweaks. --- pyopencl/__init__.py | 2 ++ pyopencl/cache.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index 45af4881..2cd5be9b 100644 --- a/pyopencl/__init__.py +++ b/pyopencl/__init__.py @@ -461,6 +461,8 @@ def _add_functionality(): CommandQueue.__enter__ = command_queue_enter CommandQueue.__exit__ = command_queue_exit + # }}} + # {{{ _Program (the internal, non-caching version) def program_get_build_logs(self): diff --git a/pyopencl/cache.py b/pyopencl/cache.py index c5672306..979a5258 100644 --- a/pyopencl/cache.py +++ b/pyopencl/cache.py @@ -318,7 +318,7 @@ class _SourceInfo(Record): def _create_built_program_from_source_cached(ctx, src, options, devices, cache_dir): - from os.path import join # required in multiple places below + from os.path import join include_path = ["."] -- GitLab