musa: upgrade musa sdk to 4.2.0 #14498
Draft
+36
−20
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.
Make sure to read the contributing guidelines before submitting a PR
This PR upgrades the MUSA SDK from
rc4.0.1
to4.2.0
.Key updates
4.2.0
and switch back to non-muDNN variantGGML_MUSA_GRAPHS
for enabling MUSA graphs andGGML_MUSA_MUDNN_COPY
for enabling muDNN copy accelerationWhy disable muDNN by default
Although enabling muDNN can accelerate contiguous device memory copies, MUSA SDK
4.2.0
no longer includes the fat binary and instead provides per-architecture binaries. Additionally, the performance ofmusaMemcpyAsync
has been improved in this release, making the performance gap minimal.Testing Done
root@7bd6a1e5dcc0:/ws# cmake -B build -DGGML_MUSA=ON -DMUSA_ARCHITECTURES=21 -DGGML_MUSA_GRAPHS=ON root@7bd6a1e5dcc0:/ws# cmake --build build -j $(nproc) --config Release
root@7bd6a1e5dcc0:/ws# cmake -B build -DGGML_MUSA=ON -DMUSA_ARCHITECTURES=21 -DGGML_MUSA_MUDNN_COPY=ON root@7bd6a1e5dcc0:/ws# cmake --build build -j $(nproc) --config Release