Skip to content

Commit

Permalink
Update service.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
xwu99 authored Nov 2, 2023
1 parent 10c11f0 commit 3b01584
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mllib-dal/src/main/native/service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,8 @@ HomogenTablePtr createHomogenTableWithArrayPtr(size_t pNumTabData,
double *htableArray = reinterpret_cast<double *>(pNumTabData);
auto data = sycl::malloc_shared<double>(numRows * numClos, queue);
queue.memcpy(data, htableArray, sizeof(double) * numRows * numClos).wait();
HomogenTablePtr tablePtr = std::make_shared<homogen_table>(
return std::make_shared<homogen_table>(
queue, data, numRows, numClos,
detail::make_default_delete<const double>(queue));
return tablePtr;
detail::make_default_delete<const double>(queue));
}
#endif

0 comments on commit 3b01584

Please sign in to comment.