Repository navigation
Provide a GPU interface - #107
Open
Radonirinaunimi wants to merge 20 commits into
Open
Radonirinaunimi wants to merge 20 commits into
Radonirinaunimi wants to merge 20 commits into
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The following PR addresses #102!
Benchmark snapshots taken from 21e685c.
Below are the performance benchmarks using an AMD EPYC 7K62 (96 threads) vs. an NVIDIA GeForce RTX 4090 using the$N_{\rm rep} = 101$ members, 11 flavors + $\alpha_s$ evaluated per (event, member) pair. The CPU benchmark are parallelized across the entire threads using
NNPDF40_nnlo_as_01180set onRayon.1. Throughput comparison
Throughput is calculated as
One pair corresponds to one (event, PDF member) evaluation. Throughput is reported in millions of pairs per second (M pairs/s).
2. Execution times
Execution times are reported in milliseconds (ms).
3. GPU speedup relative to CPU
Speedup over the CPU is calculated as the ratio between CPU and GPU execution times:
4. Memory consumption
Memory measurements are reported in MiB.
4.1. GPU pipeline (host-side)
Above one chunk, the GPU holds two 64 MiB chunk buffers instead of the whole output, so the GPU batch memory stays nearly flat with the number of events.
4.2. GPU device (kernel)
These GPU memory numbers are consistent with the back of the envelope calculations:
output_bytes = n_events × n_members × (n_flavors + 1) × 8 (bytes).