Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Leo-Smith committed May 18, 2024
1 parent ad36f74 commit 66883df
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/luisa/coro/coro_graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ class LC_CORO_API CoroGraph {
[[nodiscard]] luisa::string dump() const noexcept;
};

}// namespace luisa::compute::co
}// namespace luisa::compute::coroutine
4 changes: 2 additions & 2 deletions include/luisa/coro/radix_sort.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class instance {
///@param high_bit: highest bit of radix sort
instance(Device device, uint maxn, temp_storage &temp,
Callable<uint(uint, Args...)> *get_key, Callable<uint(uint, Args...)> *get_val,
Callable<uint(uint,Args...)> *get_key_set = nullptr,
Callable<uint(uint, Args...)> *get_key_set = nullptr,
uint mode = 0, uint digit = 128, uint low_bit = 0, uint high_bit = 31) : DIGIT{digit}, low_bit{low_bit}, high_bit{high_bit}, MAXN{maxn}, _temp{temp} {
LUISA_ASSERT(mode == 0 || mode == 1, "mode should be 0 for radix sort and 1 for bucket sort!");
BIT = 0;
Expand Down Expand Up @@ -361,4 +361,4 @@ class instance {
}
};
}
}
}// namespace luisa::compute::radix_sort
2 changes: 1 addition & 1 deletion src/coro/coro_frame_desc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ luisa::string CoroFrameDesc::dump() const noexcept {
return s;
}

}// namespace luisa::compute::co
}// namespace luisa::compute::coroutine
2 changes: 1 addition & 1 deletion src/coro/schedulers/persistent_threads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void persistent_threads_coro_scheduler_main_kernel_impl(
}
sync_block();
$if (shared_queue_size - work_offset[0] < config.block_size) {//no enough work
$for (index, 0u, g_fac) { //swap frames
$for (index, 0u, g_fac) { //swap frames
auto global_id = block_x() * global_queue_size + index * config.block_size + thread_x();
auto g_queue_id = index * config.block_size + thread_x();
auto coro_token = all_token[shared_queue_size + g_queue_id];
Expand Down

0 comments on commit 66883df

Please sign in to comment.