Conversation
…tead of logic operations when computing the neighboring index; this is branch free and less operations
…quarter precision support
…for executing single-thread regions of code. On CUDA install the latest version of CCCL via CPM since we need some new features
…slash kernels. Disabled by default (set with with Arg::prefetch_distance parameter), and TMA prefetch will be added in next push
…ith QUDA_DSLASH_PREFETCH_BULK=ON). Prefetch distance is now set via CMake (QUDA_DSLASH_PREFETCH_DISTANCE_WILSON and QUDA_DSLASH_PREFETCH_DISTANCE_STAGGERED)
…ble on CUDA platform
…ants of vector_load and vector_store: these allow for hte pointer offset and the index to be computed together first in 32-bit, before accumulation to the pointer in 64-bit, reducing pointer arithmetic overheads
…d and vector_store to reduce indexing overheads
…tNOrder uses optimized 3-operand indexing
TMA (Tensor Memory Accelerator) is only available on Hopper (sm_90+) and later architectures. This commit wraps the cuTensorMapEncodeTiled calls with a compile-time guard to prevent runtime errors on Volta/Ampere GPUs.
weinbe2
reviewed
Jan 27, 2026
weinbe2
reviewed
Jan 27, 2026
weinbe2
reviewed
Jan 27, 2026
weinbe2
reviewed
Jan 27, 2026
weinbe2
reviewed
Jan 27, 2026
CMakeLists.txt
Outdated
|
|
||
| option(QUDA_DSLASH_DOUBLE_STORE "store a forwards shifted copy of the gauge fields for simplified Dslash indexing" OFF) | ||
| mark_as_advanced(QUDA_DSLASH_DOUBLE_STORE) | ||
| set(QUDA_DSLASH_PREFETCH_TMA "0" CACHE STRING "enable TMA prefetching (Hopper+, 0 - disable, 1 - bulk, 2 - tensor)") |
Contributor
There was a problem hiding this comment.
Sticking a pin in our offline discussion about replacing numbers with string descriptors (iirc)
…ioned to allow for kernels to query
…, placing the end face (which is otherwise lost) into the ghost
…the gauge field from the ghost region - ensures coalesced access regarding less of partitioning
… - comms partitioning were effectively disabled for testing
…ow created unless TENSOR prefetching type is enabled
Contributor
|
cscs-ci run |
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.
This work is latest towards optimizing QUDA for Blackwell:
vector_load. At present, not deployed anywhere.QUDA_DSLASH_PREFETCHCMake parameter, with 0=per-thread, 1=TMA bulk, and 2=TMA descriptortarget::is_thread_zero()which should be used for TMA issuance.QUDA_DSLASH_DOUBLE_STORE=ONwhich is required for TMA-based prefetching (for alignment reasons).* Prefetching is exposed for both ColorSpinorFields and GaugeFields, though only latter actually used at present.QUDA_DSLASH_PREFETCH_DISTANCE_WILSONandQUDA_DSLASH_PREFETCH_DISTANCE_STAGGEREDCMake parameters.vector_loadandvector_storeto this end (respectively).intwith division byfast_intdiv)The end result of this work is that both Staggered and Wilson dslash kernels can saturate over 90% memory bandwidth for most variants. Outstanding are half precision variants using reconstruction, that are still lagging. These will be the focus of a subsequent PR.