Skip to content

Commit

Permalink
Add malloc_device call in QueueIDCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
lbushi25 committed Feb 10, 2024
1 parent 9b2f696 commit 81684de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sycl/unittests/xpti_trace/QueueIDCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ TEST_F(QueueID, QueueCreationUSMOperations) {
auto Queue0ImplPtr = sycl::detail::getSyclObjImpl(Q0);
auto QueueIDSTr = std::to_string(Queue0ImplPtr->getQueueID());

unsigned char *AllocSrc = (unsigned char *)sycl::malloc_shared(1, Q0);
unsigned char *AllocDst = (unsigned char *)sycl::malloc_shared(1, Q0);
unsigned char *AllocSrc = (unsigned char *)sycl::malloc_device(1, Q0);
unsigned char *AllocDst = (unsigned char *)sycl::malloc_device(1, Q0);
Q0.memset(AllocSrc, 42, 1).wait();
checkTaskBeginEnd(QueueIDSTr);

Expand Down

0 comments on commit 81684de

Please sign in to comment.