Skip to content

Commit

Permalink
Make clang shut up.
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Zientkiewicz <[email protected]>
  • Loading branch information
mzient committed Jun 12, 2023
1 parent 2b7b578 commit a0c5e48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dali/core/mm/perf_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ void RunBenchmark(mm::async_memory_resource<mm::memory_kind::device> *res,
std::vector<std::thread> threads;
for (int tid = 0; tid < num_threads; tid++) {
threads.emplace_back([&, tid]() {
(void)tid; // Make clang shut up; I prefer to keep this explicitly captured by value, even
// if not used, than end up with it being captured by reference when I need it.
std::mt19937_64 rng;
std::uniform_int_distribution<int> stream_dist(-1, num_streams - 1);
std::uniform_real_distribution<float> size_log_dist(4, 28);
Expand Down

0 comments on commit a0c5e48

Please sign in to comment.