Skip to content

Commit f577094

Browse files
author
Alexander Batashev
committed
Fix build error
Signed-off-by: Alexander Batashev <[email protected]>
1 parent a5eda04 commit f577094

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

sycl/include/CL/sycl/intel/function_pointer.hpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616

1717
__SYCL_INLINE namespace cl {
1818
namespace sycl {
19+
namespace detail {
20+
cl_ulong getDeviceFunctionPointerImpl(device &D, program &P,
21+
const char *FuncName);
22+
}
1923
namespace intel {
2024

2125
// This is a preview extension implementation, intended to provide early access
@@ -28,11 +32,6 @@ namespace intel {
2832

2933
using device_func_ptr_holder_t = cl_ulong;
3034

31-
namespace detail {
32-
device_func_ptr_holder_t getDeviceFunctionPointerImpl(device &D, program &P,
33-
const char *FuncName);
34-
}
35-
3635
/// \brief this function performs a cast from device_func_ptr_holder_t type
3736
/// to the provided function pointer type.
3837
template <

sycl/source/function_pointer.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,19 @@
1212

1313
__SYCL_INLINE namespace cl {
1414
namespace sycl {
15-
namespace intel {
1615
namespace detail {
17-
device_func_ptr_holder_t getDeviceFunctionPointerImpl(device &D, program &P,
18-
const char *FuncName) {
19-
device_func_ptr_holder_t FPtr = 0;
16+
intel::device_func_ptr_holder_t
17+
getDeviceFunctionPointerImpl(device &D, program &P, const char *FuncName) {
18+
intel::device_func_ptr_holder_t FPtr = 0;
2019
// FIXME: return value must be checked here, but since we cannot yet check
2120
// if corresponding extension is supported, let's silently ignore it here.
2221
PI_CALL(piextGetDeviceFunctionPointer)(
23-
sycl::detail::pi::cast<pi_device>(sycl::detail::getSyclObjImpl(D)->getHandleRef()),
24-
sycl::detail::pi::cast<pi_program>(sycl::detail::getSyclObjImpl(P)->getHandleRef()),
22+
detail::pi::cast<pi_device>(detail::getSyclObjImpl(D)->getHandleRef()),
23+
detail::pi::cast<pi_program>(detail::getSyclObjImpl(P)->getHandleRef()),
2524
FuncName, &FPtr);
2625
return FPtr;
2726
}
2827

2928
} // namespace detail
30-
} // namespace intel
3129
} // namespace sycl
32-
} // namespace cl
30+
} // namespace cl

0 commit comments

Comments
 (0)