Skip to content

Commit 1f57a43

Browse files
sycl::program is deprecated and was removed from open source SYCL
intel/llvm#4461 It can be turned back on if `__SYCL_INTERNAL_API` preprocessor variable is set loading sycl headers
1 parent 7110541 commit 1f57a43

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dpctl-capi/source/dpctl_sycl_program_interface.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
///
2525
//===----------------------------------------------------------------------===//
2626

27+
#ifndef __SYCL_INTERNAL_API
28+
// make sure that sycl::program is defined and implemented
29+
#define __SYCL_INTERNAL_API
30+
#endif
31+
2732
#include "dpctl_sycl_program_interface.h"
2833
#include "Config/dpctl_config.h"
2934
#include "Support/CBindingWrapping.h"

0 commit comments

Comments
 (0)