File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ namespace detail {
20
20
21
21
class AccessorBaseHost ;
22
22
23
- #ifndef __SYCL_DEVICE_ONLY__
24
- __SYCL_EXPORT void associateWithHandler (handler &, AccessorBaseHost *,
25
- access::target);
26
- #else
23
+ #ifdef __SYCL_DEVICE_ONLY__
27
24
// In device compilation accessor isn't inherited from AccessorBaseHost, so
28
25
// can't detect by it. Since we don't expect it to be ever called in device
29
26
// execution, just use blind void *.
30
27
inline void associateWithHandler (handler &, void *, access::target) {}
28
+ #else
29
+ __SYCL_EXPORT void associateWithHandler (handler &, AccessorBaseHost *,
30
+ access::target);
31
31
#endif
32
32
} // namespace detail
33
33
} // namespace sycl
Original file line number Diff line number Diff line change @@ -495,14 +495,14 @@ class __SYCL_EXPORT handler {
495
495
496
496
bool is_host () { return MIsHost; }
497
497
498
- #ifndef __SYCL_DEVICE_ONLY__
499
- void associateWithHandler (detail::AccessorBaseHost *AccBase,
500
- access::target AccTarget);
501
- #else
498
+ #ifdef __SYCL_DEVICE_ONLY__
502
499
// In device compilation accessor isn't inherited from AccessorBaseHost, so
503
500
// can't detect by it. Since we don't expect it to be ever called in device
504
501
// execution, just use blind void *.
505
502
void associateWithHandler (void *AccBase, access::target AccTarget);
503
+ #else
504
+ void associateWithHandler (detail::AccessorBaseHost *AccBase,
505
+ access::target AccTarget);
506
506
#endif
507
507
508
508
// Recursively calls itself until arguments pack is fully processed.
You can’t perform that action at this time.
0 commit comments