Skip to content

Commit 4900bec

Browse files
committed
[OpenCL] Update header to include new enums from cl_khr_command_buffer
1 parent 6fbb1c0 commit 4900bec

File tree

6 files changed

+19
-4
lines changed

6 files changed

+19
-4
lines changed

opencl/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ set(OCL_LOADER_REPO
2020

2121
# Repo tags/hashes
2222

23-
set(OCL_HEADERS_TAG 542d7a8f65ecfd88b38de35d8b10aa67b36b33b2)
24-
set(OCL_LOADER_TAG 804b6f040503c47148bee535230070da6b857ae4)
23+
set(OCL_HEADERS_TAG 60ba29d8117b5f81d6ab294fa62d9b6688d83f4e)
24+
set(OCL_LOADER_TAG ddf6c70230a79cdb8fcccfd3c775b09e6820f42e)
2525

2626
# OpenCL Headers
2727
if(NOT OpenCL_HEADERS)

sycl/include/sycl/detail/cl.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,10 @@
1414
#define CL_TARGET_OPENCL_VERSION 300
1515
#endif
1616

17+
// Include symbols for beta extensions
18+
#ifndef CL_ENABLE_BETA_EXTENSIONS
19+
#define CL_ENABLE_BETA_EXTENSIONS
20+
#endif
21+
1722
#include <CL/cl.h>
1823
#include <CL/cl_ext.h>

unified-runtime/source/adapters/opencl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if(UR_OPENCL_INCLUDE_DIR)
5757
else()
5858
FetchContent_Declare(OpenCL-Headers
5959
GIT_REPOSITORY "https://github.com/KhronosGroup/OpenCL-Headers.git"
60-
GIT_TAG 542d7a8f65ecfd88b38de35d8b10aa67b36b33b2
60+
GIT_TAG 60ba29d8117b5f81d6ab294fa62d9b6688d83f4e
6161
)
6262
FetchContent_MakeAvailable(OpenCL-Headers)
6363
FetchContent_GetProperties(OpenCL-Headers

unified-runtime/source/adapters/opencl/command_buffer.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
//===----------------------------------------------------------------------===//
1010

1111
#include "common.hpp"
12-
#include <CL/cl_ext.h>
1312
#include <ur/ur.hpp>
1413

1514
/// Handle to a kernel command.

unified-runtime/source/adapters/opencl/common.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
//===-----------------------------------------------------------------===//
88
#pragma once
99

10+
// Include symbols for beta extensions
11+
#ifndef CL_ENABLE_BETA_EXTENSIONS
12+
#define CL_ENABLE_BETA_EXTENSIONS
13+
#endif
14+
1015
#include <CL/cl.h>
1116
#include <CL/cl_ext.h>
1217
#include <climits>

unified-runtime/test/conformance/exp_command_buffer/native-command/append_native_opencl.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66

77
#include "common.h"
8+
9+
// Include symbols for beta extensions
10+
#ifndef CL_ENABLE_BETA_EXTENSIONS
11+
#define CL_ENABLE_BETA_EXTENSIONS
12+
#endif
13+
814
#include <CL/cl_ext.h>
915

1016
// Test using using OpenCL cl_khr_command_buffer to add commands to a native

0 commit comments

Comments
 (0)