Skip to content
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

set NVCC -arch flag by cuda version #1115

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

alonfaraj
Copy link
Contributor

@alonfaraj alonfaraj commented Jul 17, 2023

Related:
#1105
#1082
#876

CUDA 11.6 added the nvcc -arch=native flag to automatically compile for the host GPUs architectures.
This pull request checks whether the version of nvcc is 11.6 or higher and sets the flag accordingly to either "native" or "all".
Using the "native" flag is highly recommended as it optimizes both the size and performance of the compiled code.
On the other hand, using the "all" flag as fallback, at least ensures that the build can be successful on a wider range of architectures.
If yes - -arch=native
If no - -arch=all

@alonfaraj alonfaraj changed the title set NVCC -arch flag by version set NVCC -arch flag by cuda version Jul 18, 2023
@ggerganov ggerganov merged commit a0bb409 into ggerganov:master Jul 25, 2023
jacobwu-b pushed a commit to jacobwu-b/Transcriptify-by-whisper.cpp that referenced this pull request Oct 24, 2023
jacobwu-b pushed a commit to jacobwu-b/Transcriptify-by-whisper.cpp that referenced this pull request Oct 24, 2023
landtanin pushed a commit to landtanin/whisper.cpp that referenced this pull request Dec 16, 2023
iThalay pushed a commit to iThalay/whisper.cpp that referenced this pull request Sep 23, 2024
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