Skip to content

Conversation

@PureJourney
Copy link
Contributor

The the lowest architecture supported by CUDA 12 is Maxwell.
And 5.0 is the lowest one in the Maxwell family.

@github-actions github-actions bot added Nvidia GPU Issues specific to Nvidia GPUs ggml changes relating to the ggml tensor library for machine learning labels Feb 20, 2025
Copy link
Collaborator

@JohannesGaessler JohannesGaessler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, I thought CUDA 12 needed compute capability 5.2 or higher but it is indeed 5.0 or higher.

Co-authored-by: Johannes Gäßler <[email protected]>
@JohannesGaessler JohannesGaessler merged commit ecc8e3a into ggml-org:master Feb 21, 2025
46 checks passed
@LostRuins
Copy link
Collaborator

Is there any downsides to targeting a lower compute capability of 5.0 e.g. for GTX 970? Performance should still be the same as it was for 5.2 right?

@JohannesGaessler
Copy link
Collaborator

I think with this configuration CMake will produce PTX and PTXAS for compute capability 5.0. PTX is the cude equivalent of assembly, PTXAS is the binary code that can be run directly. So for a CC 5.2 GPU there will be just-in-time compilation of PTX to PTXAS and the startup will take longer. Other than that there should be no downsides.

orca-zhang pushed a commit to orca-zhang/llama.cpp that referenced this pull request Feb 26, 2025
* CUDA: correct the lowest Maxwell supported by CUDA 12

---------

Co-authored-by: Johannes Gäßler <[email protected]>
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Feb 26, 2025
* CUDA: correct the lowest Maxwell supported by CUDA 12

---------

Co-authored-by: Johannes Gäßler <[email protected]>
mglambda pushed a commit to mglambda/llama.cpp that referenced this pull request Mar 8, 2025
* CUDA: correct the lowest Maxwell supported by CUDA 12

---------

Co-authored-by: Johannes Gäßler <[email protected]>
mostlyuseful pushed a commit to mostlyuseful/llama.cpp that referenced this pull request May 12, 2025
* CUDA: correct the lowest Maxwell supported by CUDA 12

---------

Co-authored-by: Johannes Gäßler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ggml changes relating to the ggml tensor library for machine learning Nvidia GPU Issues specific to Nvidia GPUs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants