Merge pull request #1817 from akohlmey/collected-small-fixes

Collected small bugfixes and updates
This commit is contained in:
Axel Kohlmeyer
2020-01-08 17:16:34 -05:00
committed by GitHub
19 changed files with 434 additions and 42 deletions

View File

@ -28,6 +28,14 @@
#include <vector>
#include <iostream>
/* We default to OpenCL 1.2 as target version for now as
* there are known issues with OpenCL 2.0 and later.
* This is also to silence warnings from generic OpenCL headers */
#if !defined(CL_TARGET_OPENCL_VERSION)
#define CL_TARGET_OPENCL_VERSION 120
#endif
#ifdef __APPLE__
#include <OpenCL/cl.h>
#include <OpenCL/cl_platform.h>

View File

@ -4,6 +4,14 @@
#include <cstdio>
#include <cassert>
/* We default to OpenCL 1.2 as target version for now as
* there are known issues with OpenCL 2.0 and later.
* This is also to silence warnings from generic OpenCL headers */
#if !defined(CL_TARGET_OPENCL_VERSION)
#define CL_TARGET_OPENCL_VERSION 120
#endif
#ifdef __APPLE__
#include <OpenCL/cl.h>
#else