Skip to content

CUDA: use min compute capability of GPUs actually used - #2506

Merged
JohannesGaessler merged 1 commit into
ggml-org:masterfrom
cebtenzzre:better-min-cap
Aug 4, 2023
Merged

CUDA: use min compute capability of GPUs actually used#2506
JohannesGaessler merged 1 commit into
ggml-org:masterfrom
cebtenzzre:better-min-cap

Conversation

@cebtenzzre

Copy link
Copy Markdown
Collaborator

These are my currently installed GPUs:

ggml_init_cublas: found 2 CUDA devices:
  Device 0: Tesla P40, compute capability 6.1
  Device 1: NVIDIA GeForce GTX 970, compute capability 5.2

I found that if I disabled my GTX 970 using --tensor-split 1,0, I still couldn't use the full compute capability of my Telsa P40. With this change, I am able to benefit from the --mul-mat-q option without physically removing the GTX 970 from my PC, which my displays are connected to.

@JohannesGaessler JohannesGaessler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Alternatively you could have used the environmental variable CUDA_VISIBLE_DEVICES to hide the 970.

@JohannesGaessler
JohannesGaessler merged commit 4329d1a into ggml-org:master Aug 4, 2023
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
Githab-capibara added a commit to Githab-capibara/llama.cpp that referenced this pull request Sep 10, 2026
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