We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a551933 commit 23c70a0Copy full SHA for 23c70a0
bindings/go/Makefile
@@ -17,6 +17,11 @@ EXAMPLES_DIR := $(wildcard examples/*)
17
INCLUDE_PATH := $(abspath ../../include):$(abspath ../../ggml/include)
18
LIBRARY_PATH := $(abspath ../..)
19
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
+
25
ifeq ($(UNAME_S),Darwin)
26
EXT_LDFLAGS := -framework Foundation -framework Metal -framework MetalKit
27
endif
0 commit comments