[WIP] Use nvMatmulHeuristics in Cutlass scheduler heuristic #5213
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 PR allows us to optionally compile in dynamic runtime support for nvMatmulHeuristics. Users will still need to
pip install nvidia-matmul-heuristics
and then set theirLD_LIBRARY_PATH
to the installed location (on my machine it is at$HOME/.local/lib/python3.12/site-packages/nvidia/nvMatmulHeuristics/lib
). If the user doesn't do this, we gracefully just print a warning and use the defaultCutlassParams
, avoiding a dynamic linker error if we had done a compile-time link againstlibnvMatmulHeuristics.so
.I have not yet verified that this improves performance. This PR is so far just an exploration of the mechanics of calling nvmmh dynamically.
NOTE: CMakeLists.txt changes are not yet pushed...