File tree Expand file tree Collapse file tree 2 files changed +10
-13
lines changed Expand file tree Collapse file tree 2 files changed +10
-13
lines changed Original file line number Diff line number Diff line change 16
16
17
17
__SYCL_INLINE namespace cl {
18
18
namespace sycl {
19
+ namespace detail {
20
+ cl_ulong getDeviceFunctionPointerImpl (device &D, program &P,
21
+ const char *FuncName);
22
+ }
19
23
namespace intel {
20
24
21
25
// This is a preview extension implementation, intended to provide early access
@@ -28,11 +32,6 @@ namespace intel {
28
32
29
33
using device_func_ptr_holder_t = cl_ulong;
30
34
31
- namespace detail {
32
- device_func_ptr_holder_t getDeviceFunctionPointerImpl (device &D, program &P,
33
- const char *FuncName);
34
- }
35
-
36
35
// / \brief this function performs a cast from device_func_ptr_holder_t type
37
36
// / to the provided function pointer type.
38
37
template <
Original file line number Diff line number Diff line change 12
12
13
13
__SYCL_INLINE namespace cl {
14
14
namespace sycl {
15
- namespace intel {
16
15
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 ;
20
19
// FIXME: return value must be checked here, but since we cannot yet check
21
20
// if corresponding extension is supported, let's silently ignore it here.
22
21
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 ()),
25
24
FuncName, &FPtr);
26
25
return FPtr;
27
26
}
28
27
29
28
} // namespace detail
30
- } // namespace intel
31
29
} // namespace sycl
32
- } // namespace cl
30
+ } // namespace cl
You can’t perform that action at this time.
0 commit comments