Propogate DEVICE_ID for functions working with RemoteContext (#3109)
* Propogate DEVICE_ID for functions working with RemoteContext * More fixes for RemoteContext * Fixed tests compilation with VariableState
This commit is contained in:
@@ -13,17 +13,34 @@
|
||||
/**
|
||||
* @brief Definitions required by Khronos headers
|
||||
*/
|
||||
#define CL_HPP_ENABLE_EXCEPTIONS
|
||||
#define CL_HPP_MINIMUM_OPENCL_VERSION 120
|
||||
#define CL_HPP_TARGET_OPENCL_VERSION 120
|
||||
|
||||
#if defined __GNUC__
|
||||
#ifndef CL_HPP_ENABLE_EXCEPTIONS
|
||||
# define CL_HPP_ENABLE_EXCEPTIONS
|
||||
#endif
|
||||
|
||||
#ifdef CL_HPP_MINIMUM_OPENCL_VERSION
|
||||
# if CL_HPP_MINIMUM_OPENCL_VERSION <= 120
|
||||
# error "CL_HPP_MINIMUM_OPENCL_VERSION must be >= 120"
|
||||
# endif
|
||||
#else
|
||||
# define CL_HPP_MINIMUM_OPENCL_VERSION 120
|
||||
#endif
|
||||
|
||||
#ifdef CL_HPP_TARGET_OPENCL_VERSION
|
||||
# if CL_HPP_TARGET_OPENCL_VERSION <= 120
|
||||
# error "CL_HPP_TARGET_OPENCL_VERSION must be >= 120"
|
||||
# endif
|
||||
#else
|
||||
# define CL_HPP_TARGET_OPENCL_VERSION 120
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC system_header
|
||||
#endif
|
||||
|
||||
#include <CL/cl2.hpp>
|
||||
|
||||
#if defined __GNUC__
|
||||
#ifdef __GNUC__
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user