Skip to content

Commit 9207ba8

Browse files
authored
[SYCL] Fix the problem with exported symbol on Windows (#4200)
The function handler::getDelinearizedIndex() has got into sycl.dll because it is a static symbol of the exported class 'handler'. The function is unused, but must stay in library until ABI breaking changes are allowed. Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent 88cfe16 commit 9207ba8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

sycl/include/CL/sycl/handler.hpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,20 @@ class __SYCL_EXPORT handler {
568568
return true;
569569
}
570570

571+
// TODO: Delete these functions when ABI breaking changes are allowed.
572+
// Currently these functions are unused but they are static members of
573+
// the exported class 'handler' and has got into sycl library some time ago
574+
// and must stay there for a while.
575+
static id<1> getDelinearizedIndex(const range<1> Range, const size_t Index) {
576+
return detail::getDelinearizedId(Range, Index);
577+
}
578+
static id<2> getDelinearizedIndex(const range<2> Range, const size_t Index) {
579+
return detail::getDelinearizedId(Range, Index);
580+
}
581+
static id<3> getDelinearizedIndex(const range<3> Range, const size_t Index) {
582+
return detail::getDelinearizedId(Range, Index);
583+
}
584+
571585
/// Handles some special cases of the copy operation from one accessor
572586
/// to another accessor. Returns true if the copy is handled here.
573587
///

0 commit comments

Comments
 (0)