Skip to content

Commit 86fc0c5

Browse files
author
Daniele Briggi
committed
feat(windows-cuda): make CUDA for Windows
1 parent 82e79e9 commit 86fc0c5

File tree

2 files changed

+27
-23
lines changed

2 files changed

+27
-23
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,34 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
include:
18-
- name: linux-vulkan
19-
os: ubuntu-latest
20-
arch: x86_64
21-
make: LLAMA="-DGGML_BACKEND_DL=ON -DGGML_NATIVE=OFF -DGGML_CPU_ALL_VARIANTS=ON -DGGML_VULKAN=ON"
22-
- name: macos
23-
os: macos-latest
24-
- name: windows
18+
# - name: linux-vulkan
19+
# os: ubuntu-latest
20+
# arch: x86_64
21+
# make: LLAMA="-DGGML_BACKEND_DL=ON -DGGML_NATIVE=OFF -DGGML_CPU_ALL_VARIANTS=ON -DGGML_VULKAN=ON"
22+
# - name: macos
23+
# os: macos-latest
24+
# - name: windows
25+
# os: windows-latest
26+
# arch: x86_64
27+
- name: windows-cuda
2528
os: windows-latest
2629
arch: x86_64
27-
- name: android
28-
os: ubuntu-latest
29-
arch: arm64-v8a
30-
make: PLATFORM=android ARCH=arm64-v8a
31-
- name: android
32-
os: ubuntu-latest
33-
arch: x86_64
34-
make: PLATFORM=android ARCH=x86_64
35-
sqlite-amalgamation-zip: https://sqlite.org/2025/sqlite-amalgamation-3490100.zip
36-
- name: ios
37-
os: macos-latest
38-
make: PLATFORM=ios
39-
- name: isim
40-
os: macos-latest
41-
make: PLATFORM=isim
30+
make: LLAMA="-DGGML_BACKEND_DL=ON -DGGML_NATIVE=OFF -DGGML_CPU=OFF -DGGML_CUDA=ON"
31+
# - name: android
32+
# os: ubuntu-latest
33+
# arch: arm64-v8a
34+
# make: PLATFORM=android ARCH=arm64-v8a
35+
# - name: android
36+
# os: ubuntu-latest
37+
# arch: x86_64
38+
# make: PLATFORM=android ARCH=x86_64
39+
# sqlite-amalgamation-zip: https://sqlite.org/2025/sqlite-amalgamation-3490100.zip
40+
# - name: ios
41+
# os: macos-latest
42+
# make: PLATFORM=ios
43+
# - name: isim
44+
# os: macos-latest
45+
# make: PLATFORM=isim
4246

4347
defaults:
4448
run:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ else ifeq ($(PLATFORM),isim)
128128
WHISPER_OPTIONS += -DBUILD_SHARED_LIBS=OFF -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator -DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DWHISPER_COREML=ON
129129
else # linux
130130
TARGET := $(DIST_DIR)/ai.so
131-
# using -DGGML_CPU_ALL_VARIANTS=ON
131+
# Using -DGGML_CPU_ALL_VARIANTS=ON, `-lggml-cpu` is not needed
132132
LDFLAGS := $(filter-out -lggml-cpu,$(LDFLAGS))
133133
LDFLAGS += -shared -L./$(BUILD_LLAMA)/bin -Wl,-rpath,./$(BUILD_LLAMA)/bin -Wl,-rpath,./$(BUILD_LLAMA)/common -Wl,-rpath,./$(BUILD_LLAMA)/ggml/src -Wl,-rpath,./$(BUILD_LLAMA)/src -Wl,-rpath,./$(BUILD_WHISPER)/src
134134
# Add miniaudio Linux-specific flags (as per miniaudio docs)

0 commit comments

Comments
 (0)