Skip to content

Commit

Permalink
Update src/cpp/src/scheduler.hpp
Browse files Browse the repository at this point in the history
Co-authored-by: Ilya Lavrenov <[email protected]>
  • Loading branch information
popovaan and ilya-lavrenov authored Dec 24, 2024
1 parent 1d3f85b commit 3fa02d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/src/scheduler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class Scheduler {
size_t available_slots = currently_allocated_token_slots - occupied_token_slots,
required_slots = num_scheduled_tokens > available_slots ? num_scheduled_tokens - available_slots : 0;
size_t num_required_blocks = (required_slots + block_size - 1) / block_size, num_free_blocks = m_block_manager.num_free_blocks();
while (num_required_blocks > num_free_blocks) {
while (num_required_blocks > m_block_manager.num_free_blocks()) {
if (!_try_increase_cache()) {
break;
}
Expand Down

0 comments on commit 3fa02d0

Please sign in to comment.