Skip to content

Commit 8f38848

Browse files
committed
fix typo
1 parent 059debc commit 8f38848

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

unified-runtime/source/adapters/level_zero/v2/queue_immediate_out_of_order.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ template <size_t N>
1818
std::array<ur_command_list_manager, N> createCommandListManagers(
1919
ur_context_handle_t hContext, ur_device_handle_t hDevice, uint32_t ordinal,
2020
ze_command_queue_priority_t priority, std::optional<int32_t> index) {
21-
return createArrayOf<ur_command_list_manager, numCommandLists>([&](size_t) {
21+
return createArrayOf<ur_command_list_manager, N>([&](size_t) {
2222
return ur_command_list_manager(
2323
hContext, hDevice,
2424
hContext->getCommandListCache().getImmediateCommandList(

unified-runtime/source/common/ur_util.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ std::array<T, sizeof...(Is)> createArrayOfHelper(F &&f,
564564
// each element of the array.
565565
template <typename T, size_t N, typename F>
566566
std::array<T, N> createArrayOf(F &&ctor) {
567-
return createArrayOfHelper<T, F>(std::forward<F>(f),
567+
return createArrayOfHelper<T, F>(std::forward<F>(ctor),
568568
std::make_index_sequence<N>{});
569569
}
570570

0 commit comments

Comments
 (0)