support CUDA 12 sm_50 PTX - #11
Open
harishappana-git wants to merge 4 commits into
Open
Conversation
Author
|
Hi Maintainer, I’ve verified the current PR head with tinygrad using CUDA 11.5 / sm_35 and CUDA 12.8 / sm_50, on both the PTX and NV mock backends. The full validation run passes: https://github.com/harishappana-git/gpuocelot/actions/runs/33059853145 Please let me know if you’d like any changes here. Once this is merged and included in a new GPUOcelot release, I’ll update tinygrad to use that release and verify the corresponding CI changes there. Thanks |
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.
CUDA 12.8 generates a few PTX forms that GPUOcelot did not understand. This updates the parser to accept the newer
.locand.debug_strsyntax and builds CUDA tests forcompute_50.It also fixes the immediate operand types used by
bfi, so valid CUDA-generated instructions pass validation and execute correctly. Regression tests cover the new PTX syntax, validbfiexecution, and invalid operand widths.Tested with tinygrad using CUDA 11.5 /
sm_35and CUDA 12.8 /sm_50, on both PTX and NV mock backends: https://github.com/harishappana-git/gpuocelot/actions/runs/33059853145