pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/math/ggml



Module Name:    pkgsrc
Committed By:   wiz
Date:           Tue Nov  3 09:48:26 UTC 2026

Modified Files:
        pkgsrc/math/ggml: options.mk

Log Message:
ggml: add cuda option

>From khorben


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/math/ggml/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/math/ggml/options.mk
diff -u pkgsrc/math/ggml/options.mk:1.1 pkgsrc/math/ggml/options.mk:1.2
--- pkgsrc/math/ggml/options.mk:1.1     Thu Jul  2 10:58:21 2026
+++ pkgsrc/math/ggml/options.mk Tue Nov  3 09:48:26 2026
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.1 2026/07/02 10:58:21 wiz Exp $
+# $NetBSD: options.mk,v 1.2 2026/11/03 09:48:26 wiz Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.ggml
-PKG_SUPPORTED_OPTIONS= vulkan
+PKG_SUPPORTED_OPTIONS= cuda vulkan
 PKG_SUGGESTED_OPTIONS= # empty
 
 .include "../../mk/bsd.options.mk"
@@ -9,6 +9,14 @@ PKG_SUGGESTED_OPTIONS= # empty
 PLIST_VARS+=           vulkan
 PRINT_PLIST_AWK+=      /libggml-vulkan/ { $$0 = "$${PLIST.vulkan}" $$0 }
 
+.if !empty(PKG_OPTIONS:Mcuda)
+CMAKE_CONFIGURE_ARGS+= -DGGML_CUDA=ON
+CMAKE_CONFIGURE_ARGS+= -DGGML_NATIVE=ON
+CMAKE_CONFIGURE_ARGS+= -DGGML_CUDA_FA=ON
+CMAKE_CONFIGURE_ARGS+= -DGGML_CUDA_FA_ALL_QUANTS=ON
+CMAKE_CONFIGURE_ARGS+= -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc
+.endif
+
 .if !empty(PKG_OPTIONS:Mvulkan)
 DEPENDS+=              shaderc-[0-9]*:../../graphics/shaderc
 CMAKE_CONFIGURE_ARGS+= -DGGML_VULKAN=ON



Home | Main Index | Thread Index | Old Index