summaryrefslogtreecommitdiff
path: root/libc/benchmarks/gpu/src/math/sin_benchmark.cpp
AgeCommit message (Collapse)Author
2024-08-08[libc][gpu] Add Sinf Benchmarks (#102532)jameshu15869
This PR adds benchmarking for `sinf()` using the same set up as `sin()` but with a smaller range for floats.
2024-08-08[libc] [gpu] Fix Minor Benchmark UI Issues (#102529)jameshu15869
Previously, `AmdgpuSinTwoPow_128` and others were too large for their table cells. This PR shortens the name to `AmdSin...` There were also some `-` missing in the separator. This PR instead creates the separator string using the length of the headers.
2024-08-08[libc] [gpu] Add Generic, NvSin, and OcmlSinf64 Throughput Benchmark (#101917)jameshu15869
This PR implements https://github.com/lntue/llvm-project/commit/2a158426d4b90ffaa3eaecc9bc10e5aed11f1bcf to provide better throughput benchmarking for libc `sin()` and `__nv_sin()`. These changes have not been tested on AMDGPU yet, only compiled.
2024-07-30[libc] Add AMDGPU Sin Benchmark (#101120)jameshu15869
This PR adds support for benchmarking `__ocml_sin_f64()` against `sin()`. This PR is currently a draft because I do not have access to an AMD GPU and was not able to test the PR, but the code compiled when I ran `ninja gpu-benchmark` from `runtimes-amdgcn-amd-amdhsa-bins` Co-authored-by: Joseph Huber <huberjn@outlook.com>
2024-07-29[libc] Add Generic and NVPTX Sin Benchmark (#99795)jameshu15869
This PR adds sin benchmarking for a range of values and on a pregenerated random distribution.