fixes the error with OpenCL depreciation warnings (#1394)

albatross
Dean Lee 2020-04-20 05:04:33 +08:00 committed by GitHub
parent e171a7a047
commit 25ab2521ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#include <stdbool.h>
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#ifdef __APPLE__
#include <OpenCL/cl.h>
#else

View File

@ -1,6 +1,7 @@
#ifndef IONBUF_H
#define IONBUF_H
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#ifdef __APPLE__
#include <OpenCL/cl.h>
#else

View File

@ -8,6 +8,7 @@
#include <sys/mman.h>
#include <sys/types.h>
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#ifdef __APPLE__
#include <OpenCL/cl.h>
#else

View File

@ -1,6 +1,7 @@
#ifndef COMMONMODEL_H
#define COMMONMODEL_H
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#include <CL/cl.h>
#include "common/mat.h"

View File

@ -4,6 +4,7 @@
#include <inttypes.h>
#include <stdbool.h>
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#ifdef __APPLE__
#include <OpenCL/cl.h>
#else