Skip to content

Commit 23c70a0

Browse files
committed
Fixed go cuda bindings building
1 parent a551933 commit 23c70a0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bindings/go/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ EXAMPLES_DIR := $(wildcard examples/*)
1717
INCLUDE_PATH := $(abspath ../../include):$(abspath ../../ggml/include)
1818
LIBRARY_PATH := $(abspath ../..)
1919

20+
ifeq ($(GGML_CUDA),1)
21+
LIBRARY_PATH := $(LIBRARY_PATH):$(CUDA_PATH)/targets/$(UNAME_M)-linux/lib/
22+
BUILD_FLAGS := -ldflags "-extldflags '-lcudart -lcuda -lcublas'"
23+
endif
24+
2025
ifeq ($(UNAME_S),Darwin)
2126
EXT_LDFLAGS := -framework Foundation -framework Metal -framework MetalKit
2227
endif

0 commit comments

Comments
 (0)