From ca15a344aaba8ad2d714731b7844700293c6149c Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Sat, 25 Feb 2023 14:37:39 -0600 Subject: [PATCH] Fix typo. --- .../source/dpctl_sycl_queue_interface.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/libsyclinterface/source/dpctl_sycl_queue_interface.cpp b/libsyclinterface/source/dpctl_sycl_queue_interface.cpp index a8343598c2..387374a032 100644 --- a/libsyclinterface/source/dpctl_sycl_queue_interface.cpp +++ b/libsyclinterface/source/dpctl_sycl_queue_interface.cpp @@ -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 * @@ -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, @@ -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);