head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2026.07.02.10.58.21;	author wiz;	state Exp;
branches;
next	;
commitid	cgGQYP2SmaYmk4MG;


desc
@@


1.1
log
@math/ggml: import ggml-0.15.3

Tensor library for machine learning

## Features

- Low-level cross-platform implementation
- Integer quantization support
- Broad hardware support
- Automatic differentiation
- ADAM and L-BFGS optimizers
- No third-party dependencies
- Zero memory allocations during runtime
@
text
@# $NetBSD$

PKG_OPTIONS_VAR=	PKG_OPTIONS.ggml
PKG_SUPPORTED_OPTIONS=	vulkan
PKG_SUGGESTED_OPTIONS=	# empty

.include "../../mk/bsd.options.mk"

PLIST_VARS+=		vulkan
PRINT_PLIST_AWK+=	/libggml-vulkan/ { $$0 = "$${PLIST.vulkan}" $$0 }

.if !empty(PKG_OPTIONS:Mvulkan)
DEPENDS+=		shaderc-[0-9]*:../../graphics/shaderc
CMAKE_CONFIGURE_ARGS+=	-DGGML_VULKAN=ON
PLIST.vulkan=		yes
.include "../../graphics/vulkan-headers/buildlink3.mk"
.include "../../graphics/vulkan-loader/buildlink3.mk"
.include "../../parallel/spirv-headers/buildlink3.mk"
.else
CMAKE_CONFIGURE_ARGS+=	-DGGML_VULKAN=OFF
.endif
@
