Skip to content
Closed
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions sycl/unittests/pi/cuda/test_interop_get_native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ TEST_P(CudaInteropGetNativeTests, hostTaskGetNativeMem) {
buffer<int, 1> syclBuffer(range<1>{1});
syclQueue_->submit([&](handler &cgh) {
auto syclAccessor = syclBuffer.get_access<access::mode::read>(cgh);
cgh.codeplay_host_task([=](interop_handle ih) {
cgh.host_task([=](interop_handle ih) {
CUdeviceptr cudaPtr = ih.get_native_mem<backend::cuda>(syclAccessor);
CUdeviceptr cudaPtrBase;
size_t cudaPtrSize = 0;
Expand All @@ -106,7 +106,7 @@ TEST_P(CudaInteropGetNativeTests, hostTaskGetNativeMem) {
TEST_P(CudaInteropGetNativeTests, hostTaskGetNativeQueue) {
CUstream cudaStream = get_native<backend::cuda>(*syclQueue_);
syclQueue_->submit([&](handler &cgh) {
cgh.codeplay_host_task([=](interop_handle ih) {
cgh.host_task([=](interop_handle ih) {
CUstream cudaInteropStream = ih.get_native_queue<backend::cuda>();
ASSERT_EQ(cudaInteropStream, cudaStream);
});
Expand All @@ -116,7 +116,7 @@ TEST_P(CudaInteropGetNativeTests, hostTaskGetNativeQueue) {
TEST_P(CudaInteropGetNativeTests, hostTaskGetNativeContext) {
CUcontext cudaContext = get_native<backend::cuda>(syclQueue_->get_context());
syclQueue_->submit([&](handler &cgh) {
cgh.codeplay_host_task([=](interop_handle ih) {
cgh.host_task([=](interop_handle ih) {
CUcontext cudaInteropContext = ih.get_native_context<backend::cuda>();
ASSERT_EQ(cudaInteropContext, cudaContext);
});
Expand Down
2 changes: 1 addition & 1 deletion sycl/unittests/scheduler/InOrderQueueHostTaskDeps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ TEST_F(SchedulerTest, InOrderQueueHostTaskDeps) {
InOrderQueue
.submit([&](sycl::handler &CGH) {
CGH.use_kernel_bundle(ExecBundle);
CGH.codeplay_host_task([=] {});
CGH.host_task([=] {});
})
.wait();

Expand Down