Skip to content

Commit 9fe4e25

Browse files
author
diptorupd
committed
Adjusted include path for ze_api.h
Now that Level zero is being checkout out, the location of the .h file has changed and is controlled via include directory path.
1 parent 5c2e62d commit 9fe4e25

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dpctl-capi/source/dpctl_sycl_program_interface.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#ifdef DPCTL_ENABLE_LO_PROGRAM_CREATION
3434
#include "../helper/include/dpctl_dynamic_lib_helper.h"
35-
#include <level_zero/zet_api.h> /* Level Zero headers */
35+
#include <zet_api.h> /* Level Zero headers */
3636
// Note: include ze_api.h before level_zero.hpp. Make sure clang-format does
3737
// not reorder the includes.
3838
#include <CL/sycl/backend/level_zero.hpp>
@@ -47,6 +47,9 @@ namespace
4747
#ifdef __linux__
4848
static const char *zeLoaderName = "libze_loader.so";
4949
static const int libLoadFlags = RTLD_NOLOAD | RTLD_NOW | RTLD_LOCAL;
50+
#elif defined(_WIN64)
51+
static const char *zeLoaderName = "ze_loader.dll";
52+
static const int libLoadFlags = 0;
5053
#else
5154
#error "Level Zero program compilation is unavailable for this platform"
5255
#endif

0 commit comments

Comments
 (0)