Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OpenCL] Define CL_TARGET_OPENCL_VERSION #454

Merged
merged 1 commit into from
Jan 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[OpenCL] Define CL_TARGET_OPENCL_VERSION
  • Loading branch information
dmed256 committed Jan 6, 2021
commit d26d563f0d8ae47b0af6331ab7feb5a79768e875
5 changes: 5 additions & 0 deletions src/occa/internal/modes/opencl/polyfill.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

#if OCCA_OPENCL_ENABLED

// Remove warnings due to CL_TARGET_OPENCL_VERSION not being set
# ifndef CL_TARGET_OPENCL_VERSION
# define CL_TARGET_OPENCL_VERSION 220
# endif

# if (OCCA_OS & OCCA_LINUX_OS)
# include <CL/cl.h>
# include <CL/cl_gl.h>
Expand Down