Skip to content

Commit afebeb5

Browse files
test
Signed-off-by: Zhang, Winston <[email protected]>
1 parent 4ca8d91 commit afebeb5

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

sycl/test-e2e/bindless_images/dx11_interop/read_write_unsampled.cpp

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
// REQUIRES: aspect-ext_oneapi_external_memory_import
2-
// REQUIRES: windows
31

4-
// UNSUPPORTED: gpu-intel-gen12
5-
// UNSUPPORTED-INTENDED: Unknown issue with integrated GPU failing
6-
// when importing memory
72

83
// RUN: %{build} %link-directx -o %t.out
94
// RUN: %{run-unfiltered-devices} env NEOReadDebugKeys=1 UseBindlessMode=1 UseExternalAllocatorForSshAndDsh=1 %t.out
@@ -307,6 +302,10 @@ int runTest(D3D11ProgramState &d3d11ProgramState, sycl::queue syclQueue,
307302
ThrowIfFailed(keyedMutex->ReleaseSync(d3d11ProgramState.key));
308303

309304
// Read-back and verify
305+
printf("\tVerifying results for NDims %d, NChannels %d, "
306+
"image_channel_type %s\n",
307+
NDims, NChannels,
308+
bindless_helpers::channelTypeToString(channelType).c_str());
310309
int errc = 1;
311310
if (ComPtr<ID3D11Resource> resource; SUCCEEDED(texture.As(&resource))) {
312311
if (verifyResult<DType, NChannels>(d3d11ProgramState, resource.Get(),
@@ -315,11 +314,11 @@ int runTest(D3D11ProgramState &d3d11ProgramState, sycl::queue syclQueue,
315314
errc = 0;
316315
}
317316
}
317+
printf("\tVerification %s\n", (errc == 0) ? "passed" : "failed");
318318

319319
// cleanup of the shared handle.
320320
CloseNTHandle(sharedHandle);
321321

322-
#ifdef VERBOSE_PRINT
323322
if (errc == 1) {
324323
std::cerr << "\tTest failed: NDims " << NDims << " NChannels " << NChannels
325324
<< " image_channel_type "
@@ -329,7 +328,6 @@ int runTest(D3D11ProgramState &d3d11ProgramState, sycl::queue syclQueue,
329328
<< " image_channel_type "
330329
<< bindless_helpers::channelTypeToString(channelType) << "\n";
331330
}
332-
#endif
333331
TotalNumVerifiedTests++;
334332
return errc;
335333
}
@@ -419,14 +417,12 @@ int main() {
419417
sycl::image_channel_type::fp16,
420418
globalSize3D[4], sycl::range{16, 16, 1});
421419

422-
#ifdef VERBOSE_PRINT
423420
std::string deviceName = syclDevice.get_info<sycl::info::device::name>();
424421
std::cout << "Tests pass rate for SYCL device: " << deviceName << "\n";
425422
const auto numPassedTests = (TotalNumVerifiedTests - errors);
426423
std::cerr << ((errors > 0) ? errors : numPassedTests) << " out of "
427424
<< TotalNumVerifiedTests << " tested configurations were "
428425
<< ((errors > 0) ? "unsuccessful" : "successful") << ".\n";
429-
#endif
430426

431427
return errors;
432428
}

0 commit comments

Comments
 (0)