Skip to content

Commit 733bc32

Browse files
Moved typedef for MDLocalAccessor to dpctl_sycl_queue_interface.hpp
1 parent cf94017 commit 733bc32

File tree

3 files changed

+12
-18
lines changed

3 files changed

+12
-18
lines changed

libsyclinterface/include/dpctl_sycl_queue_interface.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,18 @@ DPCTL_API
171171
__dpctl_give DPCTLSyclDeviceRef
172172
DPCTLQueue_GetDevice(__dpctl_keep const DPCTLSyclQueueRef QRef);
173173

174+
/*! @brief Structure to be used to specify dimensionality and type of
175+
* local_accessor kernel type argument.
176+
*/
177+
typedef struct MDLocalAccessorTy
178+
{
179+
size_t ndim;
180+
DPCTLKernelArgType dpctl_type_id;
181+
size_t dim0;
182+
size_t dim1;
183+
size_t dim2;
184+
} MDLocalAccessor;
185+
174186
/*!
175187
* @brief Submits the kernel to the specified queue with the provided range
176188
* argument.

libsyclinterface/source/dpctl_sycl_queue_interface.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,6 @@ typedef struct complex
121121
uint64_t imag;
122122
} complexNumber;
123123

124-
typedef struct MDLocalAccessorTy
125-
{
126-
size_t ndim;
127-
DPCTLKernelArgType dpctl_type_id;
128-
size_t dim0;
129-
size_t dim1;
130-
size_t dim2;
131-
} MDLocalAccessor;
132-
133124
void set_dependent_events(handler &cgh,
134125
__dpctl_keep const DPCTLSyclEventRef *DepEvents,
135126
size_t NDepEvents)

libsyclinterface/tests/test_sycl_queue_submit_local_accessor_arg.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,6 @@ constexpr size_t SIZE = 100;
4444

4545
using namespace dpctl::syclinterface;
4646

47-
typedef struct MDLocalAccessorTy
48-
{
49-
size_t ndim;
50-
DPCTLKernelArgType dpctl_type_id;
51-
size_t dim0;
52-
size_t dim1;
53-
size_t dim2;
54-
} MDLocalAccessor;
55-
5647
template <typename T>
5748
void submit_kernel(DPCTLSyclQueueRef QRef,
5849
DPCTLSyclKernelBundleRef KBRef,

0 commit comments

Comments
 (0)