Skip to content

cuda: set cuda compiler path (#13527) #13528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lizhenneng
Copy link

We can set CMAKE_CUDA_COMPILER to /usr/local/cuda/bin/nvcc, but it's is not compatible with other system, so we use cmake's variable CUDAToolkit_NVCC_EXECUTABLE.

@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 May 14, 2025
@CISC
Copy link
Collaborator

CISC commented May 14, 2025

According to the docs:

CUDAToolkit_NVCC_EXECUTABLE
Note that this path may not be the same as CMAKE_CUDA_COMPILER

Which means you probably should not unconditionally override CMAKE_CUDA_COMPILER.

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.

2 participants