Skip to content

Commit ca15a34

Browse files
author
Diptorup Deb
committed
Fix typo.
1 parent 4b77e94 commit ca15a34

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

libsyclinterface/source/dpctl_sycl_queue_interface.cpp

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ static_assert(__SYCL_COMPILER_VERSION >= __SYCL_COMPILER_VERSION_REQUIRED,
4444

4545
using namespace dpctl::syclinterface;
4646

47+
typedef struct complex
48+
{
49+
uint64_t real;
50+
uint64_t imag;
51+
} complexNumber;
52+
4753
/*!
4854
* @brief Set the kernel arg object
4955
*
@@ -735,15 +741,6 @@ DPCTLQueue_Fill64(__dpctl_keep const DPCTLSyclQueueRef QRef,
735741
}
736742
}
737743

738-
namespace
739-
{
740-
typedef struct complex
741-
{
742-
uint64_t real;
743-
uint64_t imag;
744-
} coplexNumber;
745-
} // namespace
746-
747744
__dpctl_give DPCTLSyclEventRef
748745
DPCTLQueue_Fill128(__dpctl_keep const DPCTLSyclQueueRef QRef,
749746
void *USMRef,
@@ -754,7 +751,7 @@ DPCTLQueue_Fill128(__dpctl_keep const DPCTLSyclQueueRef QRef,
754751
if (Q && USMRef) {
755752
sycl::event ev;
756753
try {
757-
coplexNumber Val;
754+
complexNumber Val;
758755
Val.real = Value[0];
759756
Val.imag = Value[1];
760757
ev = Q->fill(USMRef, Val, Count);

0 commit comments

Comments
 (0)