[libc-commits] [libc] [libc] Add Generic and NVPTX Sin Benchmark (PR #99795)
via libc-commits
libc-commits at lists.llvm.org
Mon Jul 29 19:41:24 PDT 2024
jameshu15869 wrote:
> `srand()` just initializes the seed, the implementation shares the global random state with every thread so we can just have a single one initialize it to something other than `1`.
Conceptually, should each individual benchmark (e.g. `Sin`, `NvSin`, etc.) call `srand()` once? Or should it just be called once for each invocation of our entire framework?
https://github.com/llvm/llvm-project/pull/99795
More information about the libc-commits
mailing list