clover: Avoid warnings from new OpenCL headers
* Avoid warnings from references to deprecated CL 1.0, 1.2, 2.0 and 2.1 APIs. * Avoid warnings from not defining CL_TARGET_OPENCL_VERSION. Reviewed-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
parent
ba8d21a8d3
commit
669d00ba4c
|
@ -23,7 +23,14 @@
|
|||
#ifndef API_DISPATCH_HPP
|
||||
#define API_DISPATCH_HPP
|
||||
|
||||
#define CL_TARGET_OPENCL_VERSION 220
|
||||
|
||||
#define CL_USE_DEPRECATED_OPENCL_1_0_APIS
|
||||
#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
|
||||
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
|
||||
#define CL_USE_DEPRECATED_OPENCL_2_0_APIS
|
||||
#define CL_USE_DEPRECATED_OPENCL_2_1_APIS
|
||||
|
||||
|
||||
#include "CL/cl.h"
|
||||
#include "CL/cl_ext.h"
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#ifndef CLOVER_CORE_ERROR_HPP
|
||||
#define CLOVER_CORE_ERROR_HPP
|
||||
|
||||
#define CL_TARGET_OPENCL_VERSION 220
|
||||
#include "CL/cl.h"
|
||||
|
||||
#include <stdexcept>
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include <functional>
|
||||
#include <vector>
|
||||
|
||||
#define CL_TARGET_OPENCL_VERSION 220
|
||||
#include "CL/cl.h"
|
||||
|
||||
#include "core/error.hpp"
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
#include "llvm/codegen.hpp"
|
||||
#include "llvm/metadata.hpp"
|
||||
|
||||
#define CL_TARGET_OPENCL_VERSION 220
|
||||
#include "CL/cl.h"
|
||||
|
||||
#include "pipe/p_state.h"
|
||||
|
|
Loading…
Reference in New Issue