Perftest: Add MUSA GPUDirect backend#397
Open
Lyapunova-cd wants to merge 1 commit into
Open
Conversation
Add a first-class MUSA memory backend that follows the CUDA dynamic loading model. The backend loads libmusa at runtime, supports device memory allocation, DMA-BUF export and PCIe mapping, and exposes MUSA GPUDirect command line options. Reject plain RDMA WRITE latency tests with MUSA device memory to avoid CPU polling of GPU memory. Users must request write-with-imm explicitly for MUSA ib_write_lat. Signed-off-by: hongwei.liu <hongwei.liu@mthreads.com>
Author
|
Hi @sshaulnv Could you please take a look when you have time? This PR adds a MUSA GPUDirect backend following the existing CUDA dynamic-loading model. I also added validation coverage on Moore Threads S5000 GPU cards with RDMA NICs. Validation summary:
I am happy to address review feedback and help maintain the MUSA backend. |
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.
Add a first-class Moore-Threads GPU Software Architecture MUSA memory backend that follows the CUDA dynamic loading model. The backend loads libmusa at runtime, supports device memory allocation, DMA-BUF export and PCIe mapping, and exposes MUSA GPUDirect command line options.
Reject plain RDMA WRITE latency tests with MUSA device memory to avoid CPU polling of GPU memory. Users must request write-with-imm explicitly for MUSA ib_write_lat.
Validation
Validated on Moore Threads S5000 GPU cards with RDMA NICs.
Build and linkage:
./autogen.sh && ./configure MUSA_H_PATH=/usr/local/musa/include/musa.h && make -j$(nproc)passedib_write_lat --helpshows the MUSA optionsldd ./ib_write_latdoes not show a directlibmusadependencyFunctional coverage:
ib_write_lat --write_with_immpassed for 2, 7408, and 8192 byte messagesib_write_latwithout--write_with_immfails cleanly with:Perftest doesn't support device memory latency test with write (without immediate) verb; use --write_with_imm--use_musa_dmabufwithout MUSA--use_musa_pcie_mappingwithout DMA-BUFSelected MUSA DMA-BUF results:
ib_send_bwib_send_bwib_write_bwib_write_bwib_write_bwib_write_bwib_read_bwib_read_bwib_send_latib_write_lat --write_with_immib_write_lat --write_with_immib_write_lat --write_with_immib_read_latib_read_latib_atomic_lat