Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions libsyclinterface/source/dpctl_sycl_queue_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ static_assert(__SYCL_COMPILER_VERSION >= __SYCL_COMPILER_VERSION_REQUIRED,

using namespace dpctl::syclinterface;

typedef struct complex
{
uint64_t real;
uint64_t imag;
} complexNumber;

/*!
* @brief Set the kernel arg object
*
Expand Down Expand Up @@ -735,15 +741,6 @@ DPCTLQueue_Fill64(__dpctl_keep const DPCTLSyclQueueRef QRef,
}
}

namespace
{
typedef struct complex
{
uint64_t real;
uint64_t imag;
} coplexNumber;
} // namespace

__dpctl_give DPCTLSyclEventRef
DPCTLQueue_Fill128(__dpctl_keep const DPCTLSyclQueueRef QRef,
void *USMRef,
Expand All @@ -754,7 +751,7 @@ DPCTLQueue_Fill128(__dpctl_keep const DPCTLSyclQueueRef QRef,
if (Q && USMRef) {
sycl::event ev;
try {
coplexNumber Val;
complexNumber Val;
Val.real = Value[0];
Val.imag = Value[1];
ev = Q->fill(USMRef, Val, Count);
Expand Down