From 1cf4b2a0936e92a3bb1cf93362095be28c6902f4 Mon Sep 17 00:00:00 2001 From: jsteube Date: Thu, 29 Sep 2016 08:54:07 +0200 Subject: [PATCH] Fix a bug on CPU-only systems --- src/opencl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/opencl.c b/src/opencl.c index bf1c2a7e3..a3a30e815 100644 --- a/src/opencl.c +++ b/src/opencl.c @@ -1514,6 +1514,8 @@ int opencl_ctx_init (opencl_ctx_t *opencl_ctx, const user_options_t *user_option device_types_filter = CL_DEVICE_TYPE_CPU; } } + + opencl_ctx->device_types_filter = device_types_filter; } opencl_ctx->platforms_cnt = platforms_cnt;