From 7acb005704aa075de706e9cb05f7bdf510e8d6d4 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 13 Aug 2018 15:22:46 -0500 Subject: [PATCH] Various fixes for queue-with-properties constructor --- src/wrap_cl.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/wrap_cl.hpp b/src/wrap_cl.hpp index bcac5a38..a444b798 100644 --- a/src/wrap_cl.hpp +++ b/src/wrap_cl.hpp @@ -1242,7 +1242,6 @@ namespace pyopencl } int hex_plat_version = ctx.get_hex_platform_version(); - printf("plat version code: %d\n", hex_plat_version); bool props_given_as_numeric; cl_command_queue_properties num_props; @@ -1306,7 +1305,6 @@ namespace pyopencl "queue properties given as an iterable, " "which is only allowed when PyOpenCL was built " "against an OpenCL 2+ header"); -#endif if (hex_plat_version < 0x2000) { @@ -1315,7 +1313,7 @@ namespace pyopencl "which uses an OpenCL 2+-only interface, " "but the context's platform does not " "declare OpenCL 2 support. Proceeding " - "as asked, but the next think you see " + "as requested, but the next thing you see " "may be a crash." << std:: endl; } @@ -1335,6 +1333,7 @@ namespace pyopencl if (status_code != CL_SUCCESS) throw pyopencl::error("CommandQueue", status_code); } +#endif } ~command_queue() -- GitLab