Skip to content

Commit c6b8d77

Browse files
committed
Fix type dependencies
1 parent 2bf9585 commit c6b8d77

File tree

3 files changed

+17
-18
lines changed

3 files changed

+17
-18
lines changed

sycl/include/sycl/ext/oneapi/experimental/work_group_memory.hpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ namespace sycl {
2020
inline namespace _V1 {
2121
class handler;
2222

23+
namespace ext::oneapi::experimental::detail {
24+
class dynamic_parameter_impl;
25+
}
26+
2327
namespace detail {
2428
template <typename T> struct is_unbounded_array : std::false_type {};
2529

@@ -30,12 +34,11 @@ inline constexpr bool is_unbounded_array_v = is_unbounded_array<T>::value;
3034

3135
class NDRDescT;
3236
class ArgDesc;
33-
class dynamic_parameter_impl;
3437

3538
void processArg(
36-
void *Ptr, const detail::kernel_param_kind_t &Kind, const int Size,
39+
void *Ptr, const kernel_param_kind_t &Kind, const int Size,
3740
const size_t Index, size_t &IndexShift, bool IsKernelCreatedFromSource,
38-
bool IsESIMD, detail::NDRDescT NDRDesc,
41+
bool IsESIMD, NDRDescT NDRDesc,
3942
std::vector<std::pair<
4043
ext::oneapi::experimental::detail::dynamic_parameter_impl *, int>>
4144
DynamicParameters,
@@ -52,10 +55,10 @@ class work_group_memory_impl {
5255
private:
5356
size_t buffer_size;
5457
friend class sycl::handler;
55-
friend void detail::processArg(
56-
void *Ptr, const detail::kernel_param_kind_t &Kind, const int Size,
58+
friend void processArg(
59+
void *Ptr, const kernel_param_kind_t &Kind, const int Size,
5760
const size_t Index, size_t &IndexShift, bool IsKernelCreatedFromSource,
58-
bool IsESIMD, detail::NDRDescT NDRDesc,
61+
bool IsESIMD, NDRDescT NDRDesc,
5962
std::vector<std::pair<
6063
ext::oneapi::experimental::detail::dynamic_parameter_impl *, int>>
6164
DynamicParameters,

sycl/include/sycl/stream.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ inline namespace _V1 {
4242
namespace detail {
4343

4444
void processArg(
45-
void *Ptr, const detail::kernel_param_kind_t &Kind, const int Size,
45+
void *Ptr, const kernel_param_kind_t &Kind, const int Size,
4646
const size_t Index, size_t &IndexShift, bool IsKernelCreatedFromSource,
47-
bool IsESIMD, detail::NDRDescT NDRDesc,
47+
bool IsESIMD, NDRDescT NDRDesc,
4848
std::vector<std::pair<
4949
ext::oneapi::experimental::detail::dynamic_parameter_impl *, int>>
5050
DynamicParameters,

sycl/source/detail/arg_extraction.hpp

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,14 @@
1414
#include <sycl/detail/cg_types.hpp>
1515
#include <sycl/detail/helpers.hpp>
1616
#include <sycl/detail/impl_utils.hpp>
17+
#include <sycl/detail/kernel_desc.hpp>
18+
#include <sycl/stream.hpp>
19+
20+
#include <sycl/ext/oneapi/experimental/work_group_memory.hpp>
1721

1822
namespace sycl {
1923
inline namespace _V1 {
2024

21-
namespace ext::oneapi::experimental::detail {
22-
class dynamic_parameter_base;
23-
class dynamic_work_group_memory_base;
24-
class dynamic_local_accessor_base;
25-
class graph_impl;
26-
class dynamic_parameter_impl;
27-
} // namespace ext::oneapi::experimental::detail
2825
namespace detail {
2926

3027
inline constexpr size_t MaxNumAdditionalArgs = 13;
@@ -98,14 +95,13 @@ void addArgsForLocalAccessor(detail::LocalAccessorImplHost *LAcc, size_t Index,
9895
}
9996

10097
void processArg(
101-
void *Ptr, const detail::kernel_param_kind_t &Kind, const int Size,
98+
void *Ptr, const kernel_param_kind_t &Kind, const int Size,
10299
const size_t Index, size_t &IndexShift, bool IsKernelCreatedFromSource,
103-
bool IsESIMD, detail::NDRDescT NDRDesc,
100+
bool IsESIMD, NDRDescT NDRDesc,
104101
std::vector<std::pair<
105102
ext::oneapi::experimental::detail::dynamic_parameter_impl *, int>>
106103
DynamicParameters,
107104
std::vector<ArgDesc> &Args) {
108-
using detail::kernel_param_kind_t;
109105
size_t GlobalSize = NDRDesc.GlobalSize[0];
110106
for (size_t I = 1; I < NDRDesc.Dims; ++I) {
111107
GlobalSize *= NDRDesc.GlobalSize[I];

0 commit comments

Comments
 (0)