|
39 | 39 | #endif |
40 | 40 | #include <sstream> |
41 | 41 |
|
42 | | -#ifdef DPCTL_ENABLE_L0_PROGRAM |
| 42 | +#ifdef DPCTL_ENABLE_L0_PROGRAM_CREATION |
43 | 43 | // Note: include ze_api.h before level_zero.hpp. Make sure clang-format does |
44 | 44 | // not reorder the includes. |
45 | 45 | // clang-format off |
@@ -332,7 +332,7 @@ _GetKernel_ocl_impl(const kernel_bundle<bundle_state::executable> &kb, |
332 | 332 | } |
333 | 333 | } |
334 | 334 |
|
335 | | -#ifdef DPCTL_ENABLE_L0_PROGRAM |
| 335 | +#ifdef DPCTL_ENABLE_L0_PROGRAM_CREATION |
336 | 336 |
|
337 | 337 | #ifdef __linux__ |
338 | 338 | static const char *zeLoaderName = DPCTL_LIBZE_LOADER_FILENAME; |
@@ -579,7 +579,7 @@ bool _HasKernel_ze_impl(const kernel_bundle<bundle_state::executable> &kb, |
579 | 579 | return false; |
580 | 580 | } |
581 | 581 |
|
582 | | -#endif /* #ifdef DPCTL_ENABLE_L0_PROGRAM */ |
| 582 | +#endif /* #ifdef DPCTL_ENABLE_L0_PROGRAM_CREATION */ |
583 | 583 |
|
584 | 584 | } /* end of anonymous namespace */ |
585 | 585 |
|
@@ -619,7 +619,7 @@ DPCTLKernelBundle_CreateFromSpirv(__dpctl_keep const DPCTLSyclContextRef CtxRef, |
619 | 619 | length, CompileOpts); |
620 | 620 | break; |
621 | 621 | case backend::ext_oneapi_level_zero: |
622 | | -#ifdef DPCTL_ENABLE_L0_PROGRAM |
| 622 | +#ifdef DPCTL_ENABLE_L0_PROGRAM_CREATION |
623 | 623 | KBRef = _CreateKernelBundleWithIL_ze_impl(*SyclCtx, *SyclDev, IL, |
624 | 624 | length, CompileOpts); |
625 | 625 | break; |
@@ -701,7 +701,7 @@ DPCTLKernelBundle_GetKernel(__dpctl_keep DPCTLSyclKernelBundleRef KBRef, |
701 | 701 | case sycl::backend::opencl: |
702 | 702 | return _GetKernel_ocl_impl(*SyclKB, KernelName); |
703 | 703 | case sycl::backend::ext_oneapi_level_zero: |
704 | | -#ifdef DPCTL_ENABLE_L0_PROGRAM |
| 704 | +#ifdef DPCTL_ENABLE_L0_PROGRAM_CREATION |
705 | 705 | return _GetKernel_ze_impl(*SyclKB, KernelName); |
706 | 706 | #endif |
707 | 707 | default: |
@@ -731,7 +731,7 @@ bool DPCTLKernelBundle_HasKernel(__dpctl_keep DPCTLSyclKernelBundleRef KBRef, |
731 | 731 | case sycl::backend::opencl: |
732 | 732 | return _HasKernel_ocl_impl(*SyclKB, KernelName); |
733 | 733 | case sycl::backend::ext_oneapi_level_zero: |
734 | | -#ifdef DPCTL_ENABLE_L0_PROGRAM |
| 734 | +#ifdef DPCTL_ENABLE_L0_PROGRAM_CREATION |
735 | 735 | return _HasKernel_ze_impl(*SyclKB, KernelName); |
736 | 736 | #endif |
737 | 737 | default: |
|
0 commit comments