[libc-commits] [libc] [libc] Add Multithreaded GPU Benchmarks (PR #98964)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Wed Jul 17 14:13:38 PDT 2024
================
@@ -6,10 +6,15 @@ function(add_benchmark benchmark_name)
cmake_parse_arguments(
"BENCHMARK"
"" # Optional arguments
- "" # Single value arguments
+ "NUM_THREADS" # Single value arguments
"LINK_LIBRARIES" # Multi-value arguments
${ARGN}
)
+
+ if(NOT BENCHMARK_NUM_THREADS)
+ set(BENCHMARK_NUM_THREADS 1)
+ endif()
+
----------------
jhuber6 wrote:
```suggestion
```
https://github.com/llvm/llvm-project/pull/98964
More information about the libc-commits
mailing list