Skip to content

Commit

Permalink
Using correct feature-test macro for "Extended enqueue functions"
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuan14 committed Dec 26, 2024
1 parent 5e10e5f commit a593c76
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/comm/SYCLHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ sycl_kernel_submit(
::sycl::range<dim> local_range,
::sycl::queue q,
ker_t ker) {
#if defined(__INTEL_LLVM_COMPILER_VERSION) && \
__INTEL_LLVM_COMPILER_VERSION >= 20250000
#if SYCL_EXT_ONEAPI_ENQUEUE_FUNCTIONS == 1
auto cgf = [&](::sycl::handler& cgh) {
ker.sycl_ker_config_convention(cgh);
::sycl::ext::oneapi::experimental::nd_launch<ker_t>(
Expand All @@ -113,8 +112,7 @@ sycl_kernel_submit(
::sycl::range<dim> local_range,
::sycl::queue q,
ker_t ker) {
#if defined(__INTEL_LLVM_COMPILER_VERSION) && \
__INTEL_LLVM_COMPILER_VERSION >= 20250000
#if SYCL_EXT_ONEAPI_ENQUEUE_FUNCTIONS == 1
auto cgf = [&](::sycl::handler& cgh) {
::sycl::ext::oneapi::experimental::nd_launch<ker_t>(
cgh, ::sycl::nd_range<dim>(global_range, local_range), ker);
Expand All @@ -138,8 +136,7 @@ sycl_kernel_submit(
int64_t local_range,
::sycl::queue q,
ker_t ker) {
#if defined(__INTEL_LLVM_COMPILER_VERSION) && \
__INTEL_LLVM_COMPILER_VERSION >= 20250000
#if SYCL_EXT_ONEAPI_ENQUEUE_FUNCTIONS == 1
auto cgf = [&](::sycl::handler& cgh) {
ker.sycl_ker_config_convention(cgh);
::sycl::ext::oneapi::experimental::nd_launch<ker_t>(
Expand Down Expand Up @@ -170,8 +167,7 @@ sycl_kernel_submit(
int64_t local_range,
::sycl::queue q,
ker_t ker) {
#if defined(__INTEL_LLVM_COMPILER_VERSION) && \
__INTEL_LLVM_COMPILER_VERSION >= 20250000
#if SYCL_EXT_ONEAPI_ENQUEUE_FUNCTIONS == 1
auto cgf = [&](::sycl::handler& cgh) {
::sycl::ext::oneapi::experimental::nd_launch<ker_t>(
cgh,
Expand Down

0 comments on commit a593c76

Please sign in to comment.