Skip to content

feat: support aarch64 and modern NVIDIA Blackwell (sm_100) architectures#2

Open
mikee-gwu wants to merge 1 commit intoscrya-com:mainfrom
mikee-gwu:fix-blackwell-aarch64-support
Open

feat: support aarch64 and modern NVIDIA Blackwell (sm_100) architectures#2
mikee-gwu wants to merge 1 commit intoscrya-com:mainfrom
mikee-gwu:fix-blackwell-aarch64-support

Conversation

@mikee-gwu
Copy link
Copy Markdown

Title: Support non-x86 architectures (aarch64) and modern NVIDIA GPUs (Blackwell/sm_100)

Description: This PR enables rotorquant to be built and run on NVIDIA Grace Blackwell (GB10) systems and other ARM64 (aarch64) environments.

Key Improvements:
Robust Build System: Updated setup.py to auto-detect the CUDA environment, properly set architecture lists (dynamically adding +PTX for compatibility).

Cross-Platform Compatibility: Replaced hardcoded .so extension references in cuda_backend.py with dynamic glob matching, allowing the library to load compiled extensions on any platform (e.g., aarch64).

Future-Proofing: Added support for NVIDIA Blackwell (sm_100) via PTX fallback, ensuring the kernels are JIT-compatible with modern NVIDIA driver architectures.

Testing:
Verified on NVIDIA DGX Spark (Grace Blackwell GB10, Ubuntu aarch64). The build process is now self-contained, and the end-to-end benchmark suite passes successfully.

@lucaspirola
Copy link
Copy Markdown

I offer myself for tests on Blackwell SM120 (I'm running a RTX5080)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants