From: Georgi Gerganov Date: Sat, 8 Mar 2025 13:18:24 +0000 (+0200) Subject: spm : remove (#1135) X-Git-Tag: upstream/0.0.1898~95 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=774f778ecfab8db4e15c048290bb83c0965065ab;p=pkg%2Fggml%2Fsources%2Fggml spm : remove (#1135) ggml-ci --- diff --git a/Package.swift b/Package.swift deleted file mode 100644 index ec1edfea..00000000 --- a/Package.swift +++ /dev/null @@ -1,49 +0,0 @@ -// swift-tools-version: 5.5 - -import PackageDescription - -let package = Package( - name: "ggml", - platforms: [ - .macOS(.v12), - .iOS(.v14), - .watchOS(.v4), - .tvOS(.v14) - ], - products: [ - .library(name: "ggml", targets: ["ggml"]), - ], - targets: [ - .target( - name: "ggml", - path: ".", - exclude: [], - sources: [ - "src/ggml.c", - "src/ggml-alloc.c", - "src/ggml-backend.cpp", - "src/ggml-quants.c", - "src/ggml-metal.m", - ], - resources: [ - .process("src/ggml-metal.metal") - ], - publicHeadersPath: "spm-headers", - cSettings: [ - .unsafeFlags(["-Wno-shorten-64-to-32", "-O3", "-DNDEBUG"]), - .define("GGML_USE_ACCELERATE"), - .unsafeFlags(["-fno-objc-arc"]), - .define("GGML_USE_METAL"), - // NOTE: NEW_LAPACK will required iOS version 16.4+ - // We should consider add this in the future when we drop support for iOS 14 - // (ref: ref: https://developer.apple.com/documentation/accelerate/1513264-cblas_sgemm?language=objc) - // .define("ACCELERATE_NEW_LAPACK"), - // .define("ACCELERATE_LAPACK_ILP64") - ], - linkerSettings: [ - .linkedFramework("Accelerate") - ] - ) - ], - cxxLanguageStandard: .cxx11 -) diff --git a/spm-headers/ggml-alloc.h b/spm-headers/ggml-alloc.h deleted file mode 120000 index 284bda01..00000000 --- a/spm-headers/ggml-alloc.h +++ /dev/null @@ -1 +0,0 @@ -../include/ggml-alloc.h \ No newline at end of file diff --git a/spm-headers/ggml-backend.h b/spm-headers/ggml-backend.h deleted file mode 120000 index fe8a239b..00000000 --- a/spm-headers/ggml-backend.h +++ /dev/null @@ -1 +0,0 @@ -../include/ggml-backend.h \ No newline at end of file diff --git a/spm-headers/ggml-metal.h b/spm-headers/ggml-metal.h deleted file mode 120000 index b5e5471f..00000000 --- a/spm-headers/ggml-metal.h +++ /dev/null @@ -1 +0,0 @@ -../include/ggml-metal.h \ No newline at end of file diff --git a/spm-headers/ggml.h b/spm-headers/ggml.h deleted file mode 120000 index 9de84567..00000000 --- a/spm-headers/ggml.h +++ /dev/null @@ -1 +0,0 @@ -../include/ggml.h \ No newline at end of file diff --git a/spm-headers/module.modulemap b/spm-headers/module.modulemap deleted file mode 100644 index e8ced242..00000000 --- a/spm-headers/module.modulemap +++ /dev/null @@ -1,7 +0,0 @@ -module ggml { - header "ggml.h" - header "ggml-alloc.h" - header "ggml-backend.h" - - export * -}