[arrayfire] 54/284: Style changes in opencl header

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun Feb 7 18:59:18 UTC 2016


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

ghisvail-guest pushed a commit to branch debian/experimental
in repository arrayfire.

commit 964b1ead31ed4353fa114dde3a0237de0fec9313
Author: pradeep <pradeep at arrayfire.com>
Date:   Fri Dec 4 14:34:32 2015 -0500

    Style changes in opencl header
---
 include/af/opencl.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/af/opencl.h b/include/af/opencl.h
index 0aa8981..6a81142 100644
--- a/include/af/opencl.h
+++ b/include/af/opencl.h
@@ -216,7 +216,9 @@ static inline void pushDevice(cl_device_id dev, cl_context ctx, cl_command_queue
     af_err err = afcl_push_device_context(dev, ctx, que);
     if (err!=AF_SUCCESS) throw af::exception("Failed to push user provided device/context to ArrayFire pool");
 }
+#endif
 
+#if AF_API_VERSION >= 33
 /**
    Set active device using cl_context and cl_device_id
 
@@ -228,7 +230,9 @@ static inline void setDevice(cl_device_id dev, cl_context ctx)
     af_err err = afcl_set_device_context(dev, ctx);
     if (err!=AF_SUCCESS) throw af::exception("Failed to set device based on cl_device_id & cl_context");
 }
+#endif
 
+#if AF_API_VERSION >= 33
 /**
    Remove the user provided device control constructs from the ArrayFire device manager pool
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list