@@ -306,6 +306,7 @@ int runTest(D3D11ProgramState &d3d11ProgramState, sycl::queue syclQueue,
306306 // Back to the D3D11 process
307307 ThrowIfFailed (keyedMutex->ReleaseSync (d3d11ProgramState.key ));
308308
309+ printf (" HERE\n " );
309310 // Read-back and verify
310311 int errc = 1 ;
311312 if (ComPtr<ID3D11Resource> resource; SUCCEEDED (texture.As (&resource))) {
@@ -315,6 +316,7 @@ int runTest(D3D11ProgramState &d3d11ProgramState, sycl::queue syclQueue,
315316 errc = 0 ;
316317 }
317318 }
319+ printf (" errc = %d\n " , errc);
318320
319321 // cleanup of the shared handle.
320322 CloseNTHandle (sharedHandle);
@@ -350,18 +352,23 @@ int main() {
350352#else
351353 const sycl::range<1 > globalSize1D{4096 };
352354#endif
355+ printf (" Running 1D texture interop tests...\n " );
353356 errors += runTest<1 , uint32_t , 1 >(d3d11ProgramState, syclQueue,
354357 sycl::image_channel_type::unsigned_int32,
355358 globalSize1D, sycl::range{256 });
359+ printf (" Running 1D texture interop tests with unorm_int8...\n " );
356360 errors += runTest<1 , uint8_t , 4 >(d3d11ProgramState, syclQueue,
357361 sycl::image_channel_type::unorm_int8,
358362 globalSize1D, sycl::range{256 });
363+ printf (" Running 1D texture interop tests with fp32...\n " );
359364 errors += runTest<1 , float , 1 >(d3d11ProgramState, syclQueue,
360365 sycl::image_channel_type::fp32, globalSize1D,
361366 sycl::range{256 });
367+ printf (" Running 1D texture interop tests with fp16...\n " );
362368 errors += runTest<1 , sycl::half, 2 >(d3d11ProgramState, syclQueue,
363369 sycl::image_channel_type::fp16,
364370 globalSize1D, sycl::range{256 });
371+ printf (" Running 1D texture interop tests with fp16 and 4 channels...\n " );
365372 errors += runTest<1 , sycl::half, 4 >(d3d11ProgramState, syclQueue,
366373 sycl::image_channel_type::fp16,
367374 globalSize1D, sycl::range{256 });
@@ -376,18 +383,23 @@ int main() {
376383 sycl::range{1024 , 1024 }, sycl::range{1920 , 1080 }, sycl::range{1920 , 1080 },
377384 sycl::range{1280 , 720 }, sycl::range{1280 , 720 }};
378385#endif
386+ printf (" Running 2D texture interop tests...\n " );
379387 errors += runTest<2 , uint32_t , 1 >(d3d11ProgramState, syclQueue,
380388 sycl::image_channel_type::unsigned_int32,
381389 globalSize2D[0 ], sycl::range{16 , 16 });
390+ printf (" Running 2D texture interop tests with unorm_int8...\n " );
382391 errors += runTest<2 , uint8_t , 4 >(d3d11ProgramState, syclQueue,
383392 sycl::image_channel_type::unorm_int8,
384393 globalSize2D[1 ], sycl::range{16 , 8 });
394+ printf (" Running 2D texture interop tests with fp32...\n " );
385395 errors += runTest<2 , float , 1 >(d3d11ProgramState, syclQueue,
386396 sycl::image_channel_type::fp32,
387397 globalSize2D[2 ], sycl::range{16 , 8 });
398+ printf (" Running 2D texture interop tests with fp16...\n " );
388399 errors += runTest<2 , sycl::half, 2 >(d3d11ProgramState, syclQueue,
389400 sycl::image_channel_type::fp16,
390401 globalSize2D[3 ], sycl::range{16 , 16 });
402+ printf (" Running 2D texture interop tests with fp16 and 4 channels...\n " );
391403 errors += runTest<2 , sycl::half, 4 >(d3d11ProgramState, syclQueue,
392404 sycl::image_channel_type::fp16,
393405 globalSize2D[4 ], sycl::range{16 , 16 });
@@ -403,18 +415,23 @@ int main() {
403415 sycl::range{1920 , 1080 , 8 }, sycl::range{1280 , 720 , 4 },
404416 sycl::range{1280 , 720 , 4 }};
405417#endif
418+ printf (" Running 3D texture interop tests...\n " );
406419 errors += runTest<3 , uint32_t , 1 >(d3d11ProgramState, syclQueue,
407420 sycl::image_channel_type::unsigned_int32,
408421 globalSize3D[0 ], sycl::range{16 , 16 , 1 });
422+ printf (" Running 3D texture interop tests with unorm_int8...\n " );
409423 errors += runTest<3 , uint8_t , 4 >(d3d11ProgramState, syclQueue,
410424 sycl::image_channel_type::unorm_int8,
411425 globalSize3D[1 ], sycl::range{16 , 8 , 2 });
426+ printf (" Running 3D texture interop tests with fp32...\n " );
412427 errors += runTest<3 , float , 1 >(d3d11ProgramState, syclQueue,
413428 sycl::image_channel_type::fp32,
414429 globalSize3D[2 ], sycl::range{16 , 8 , 1 });
430+ printf (" Running 3D texture interop tests with fp16...\n " );
415431 errors += runTest<3 , sycl::half, 2 >(d3d11ProgramState, syclQueue,
416432 sycl::image_channel_type::fp16,
417433 globalSize3D[3 ], sycl::range{16 , 16 , 1 });
434+ printf (" Running 3D texture interop tests with fp16 and 4 channels...\n " );
418435 errors += runTest<3 , sycl::half, 4 >(d3d11ProgramState, syclQueue,
419436 sycl::image_channel_type::fp16,
420437 globalSize3D[4 ], sycl::range{16 , 16 , 1 });
0 commit comments