Skip to content

Commit 1ae1905

Browse files
committed
xe: sdpa: Fix failure in test on Windows with SYCL runtime
1 parent 70a8513 commit 1ae1905

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/gtests/internals/test_sdpa.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,6 @@ void prim_sdpa_quant(const sdpa_dims_t &p, const sdpa_tensors_t &t,
10171017
//strm.wait();
10181018
//print_mem(score, "score");
10191019

1020-
//strm.wait();
10211020
softmax_prim.execute(strm,
10221021
{
10231022
{DNNL_ARG_SRC, score},
@@ -1037,6 +1036,7 @@ void prim_sdpa_quant(const sdpa_dims_t &p, const sdpa_tensors_t &t,
10371036
// Warmup run.
10381037
// Execute primitives of sdpa.
10391038
loop();
1039+
strm.wait();
10401040
}
10411041

10421042
template <typename T>
@@ -1186,8 +1186,6 @@ GPU_TEST_P(sdpa_test_t, compare) {
11861186
invert_scale);
11871187
strm.wait();
11881188

1189-
strm.wait();
1190-
11911189
#if 0
11921190
if (::getenv("SKIP_CHECK")) return;
11931191
#endif
@@ -1340,5 +1338,4 @@ GPU_TEST_P(sdpa_test_t, perf) {
13401338
<< min_time(quantized_time).count() / float(iterations) << "|"
13411339
<< min_time(sdpa_f16_time).count() / float(iterations) << "|"
13421340
<< std::endl;
1343-
strm.wait();
13441341
}

0 commit comments

Comments
 (0)