Skip to content

Commit cf0d053

Browse files
[SYCL][PI][L0] Increase start batch size from 2 to 4. (#2814)
This change-set ups the dynamic batch size start from 2 to 4. This change recovers a performance regression that was noted when the value was set at 2.
1 parent 079597d commit cf0d053

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sycl/plugins/level_zero/pi_level_zero.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ struct _pi_context : _pi_object {
277277
std::mutex NumEventsLiveInEventPoolMutex;
278278
};
279279

280-
// If doing dynamic batching, start batch size at 2.
281-
const pi_uint32 DynamicBatchStartSize = 2;
280+
// If doing dynamic batching, start batch size at 4.
281+
const pi_uint32 DynamicBatchStartSize = 4;
282282

283283
struct _pi_queue : _pi_object {
284284
_pi_queue(ze_command_queue_handle_t Queue, pi_context Context,

sycl/test/plugins/level_zero_dynamic_batch_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
// it does that 5 times as well. That should cause the batch size to
1818
// be lowered, just once to be less than 4.
1919
//
20-
// CKDYN: Raising QueueBatchSize to 3
21-
// CKDYN: Raising QueueBatchSize to 4
20+
// CKDYN: Raising QueueBatchSize to 5
21+
// CKDYN: Raising QueueBatchSize to 6
2222
// CKDYN-NOT: Raising QueueBatchSize
2323
// CKALL: Test Pass
2424
// CKALL: Test Pass

0 commit comments

Comments
 (0)