summaryrefslogtreecommitdiff
path: root/src/boring_parts.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/boring_parts.cc')
-rw-r--r--src/boring_parts.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/boring_parts.cc b/src/boring_parts.cc
index 3affae9..5e240c2 100644
--- a/src/boring_parts.cc
+++ b/src/boring_parts.cc
@@ -18,11 +18,14 @@
int initLibs() {
// FIXME : unused
+#ifdef HAS_OPENCL
RETURN_IF_FAIL( initOpenCL() );
+#endif /*HAS_OPENCL*/
return 0;
}
+#ifdef HAS_OPENCL
int initOpenCL() {
cl_uint id, numPlatforms, numDevices;
char pbuf[100];
@@ -98,4 +101,5 @@ int initOpenCL() {
return 0;
}
+#endif /*HAS_OPENCL*/