Skip to content

Commit 8259982

Browse files
Add C++ sycl::kernel type binding
1 parent 7c58961 commit 8259982

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

oneapi-rs-sys/include/types.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ using Platform = sycl::platform;
1616
using Queue = sycl::queue;
1717
using Event = sycl::event;
1818
using Context = sycl::context;
19+
using Kernel = sycl::kernel;
1920
using SourceKernelBundle = sycl::kernel_bundle<sycl::bundle_state::ext_oneapi_source>;
2021
using ExecutableKernelBundle = sycl::kernel_bundle<sycl::bundle_state::executable>;
2122
} // namespace sycl_shims

oneapi-rs-sys/src/queue-sys.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ pub mod ffi {
2525
type Context = crate::types::ffi::Context;
2626
#[namespace = "sycl_shims"]
2727
type Event = crate::types::ffi::Event;
28+
#[namespace = "sycl_shims"]
29+
type Kernel = crate::types::ffi::Kernel;
2830

2931
fn new_queue() -> UniquePtr<Queue>;
3032
fn new_queue_immediate() -> UniquePtr<Queue>;

oneapi-rs-sys/src/types-sys.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ pub mod ffi {
3838
type Queue;
3939
type Event;
4040
type Context;
41+
type Kernel;
4142
type SourceKernelBundle;
4243
type ExecutableKernelBundle;
4344
}

0 commit comments

Comments
 (0)