Build Information
Successful build of MetalANNS, reference 0.4.0 (1a8344), with Swift 6.4 for macOS (SPM) on 6 Nov 2026 06:09:15 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-27.0.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/christopherkarani/MetalANNS.git
Reference: 0.4.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/christopherkarani/MetalANNS
* tag 0.4.0 -> FETCH_HEAD
HEAD is now at 1a8344c Merge pull request #31 from christopherkarani/fix/downstream-gaps-0.4
Cloned https://github.com/christopherkarani/MetalANNS.git
Revision (git rev-parse @):
1a8344c543eda41e3f4bb9826b1fe2f3dc03eb1f
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/christopherkarani/MetalANNS.git at 0.4.0
Fetching https://github.com/groue/GRDB.swift.git
[1/114683] Fetching grdb.swift
Fetched https://github.com/groue/GRDB.swift.git (43.34s)
Computing version for https://github.com/groue/GRDB.swift.git
Computed https://github.com/groue/GRDB.swift.git at 7.10.0 (53.68s)
Creating working copy for https://github.com/groue/GRDB.swift.git
Working copy of https://github.com/groue/GRDB.swift.git resolved at 7.10.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "metalanns",
"name": "MetalANNS",
"url": "https://github.com/christopherkarani/MetalANNS.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/MetalANNS",
"traits": [
"default"
],
"dependencies": [
{
"identity": "grdb.swift",
"name": "GRDB",
"url": "https://github.com/groue/GRDB.swift.git",
"version": "7.12.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/GRDB.swift",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/christopherkarani/MetalANNS.git
[1/2661] Fetching metalanns
Fetched https://github.com/christopherkarani/MetalANNS.git (1.32s)
Fetching https://github.com/groue/GRDB.swift.git from cache
Fetched https://github.com/groue/GRDB.swift.git from cache (0.69s)
Computing version for https://github.com/groue/GRDB.swift.git
Computed https://github.com/groue/GRDB.swift.git at 7.12.0 (1.41s)
Creating working copy for https://github.com/groue/GRDB.swift.git
Working copy of https://github.com/groue/GRDB.swift.git resolved at 7.12.0
Creating working copy for https://github.com/christopherkarani/MetalANNS.git
Working copy of https://github.com/christopherkarani/MetalANNS.git resolved at 0.4.0 (1a8344c)
warning: '.resolve-product-dependencies': dependency 'metalanns' is not used by any target
Found 1 product dependencies
- GRDB
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.4
Building package at path: $PWD
https://github.com/christopherkarani/MetalANNS.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0.app xcrun swift build --arch arm64
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 243]
[Planning deferred tasks]
[56 / 111] GRDB_GRDB
[67 / 111] MetalANNS_MetalANNSCore
[72 / 111] MetalANNS_MetalANNSCore
[73 / 111]
[79 / 113] MetalANNSC
[84 / 122]
[86 / 122]
[88 / 122]
[90 / 122] MetalANNSCore
[109 / 227]
[112 / 227]
[128 / 227]
[131 / 227]
[135 / 227]
[142 / 227]
[145 / 227]
[149 / 227]
[154 / 227]
[160 / 227]
[165 / 227]
[166 / 227]
[168 / 227]
[180 / 227]
[181 / 227] GRDB
[183 / 227] GRDB
[189 / 227] GRDB-product
[190 / 227] GRDB
[200 / 227] MetalANNSCore
[206 / 227] MetalANNSCore
[208 / 228]
[208 / 228] MetalANNSCore
[213 / 239] MetalANNS
[216 / 239] MetalANNS
[224 / 239] MetalANNS
[230 / 240] GRDB
[230 / 240] MetalANNS
[230 / 240] MetalANNSBenchmarks-product
[237 / 251] MetalANNSBenchmarks-product
[243 / 251] MetalANNSCore
[247 / 251] MetalANNS-product
[247 / 251] MetalANNSBenchmarks-product
[249 / 251] MetalANNSBenchmarks-product
Build complete! (13.23 sec)
warning: missing creator for mutated node: ('/Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug/MetalANNS_MetalANNSCore.bundle/Contents/MacOS')
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/FlatGPUSearch.swift:517:21: [1;33mwarning: [1;39m'cblas_sgemv' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m515 |[0;0m ones.withUnsafeBufferPointer { onesBuffer in
[0;36m516 |[0;0m guard let onesBase = onesBuffer.baseAddress else { return }
[0;36m517 |[0;0m cblas_sgemv(
[0;36m|[0;0m `- [1;33mwarning: [1;39m'cblas_sgemv' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m518 |[0;0m CblasRowMajor,
[0;36m519 |[0;0m CblasNoTrans,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:162:24: [1;33mwarning: [1;39mcapture of 'dotsScratch' with non-Sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m160 |[0;0m guard start < end else { return }
[0;36m161 |[0;0m let rows = end - start
[0;36m162 |[0;0m let dots = dotsScratch + slice * chunkSize
[0;36m|[0;0m `- [1;33mwarning: [1;39mcapture of 'dotsScratch' with non-Sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m163 |[0;0m
[0;36m164 |[0;0m context.queryCodes.withUnsafeBufferPointer { queryBuffer in
Swift.UnsafeMutablePointer:1:23: [1;39mnote: [1;39mgeneric struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m1 |[0;0m @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
[0;36m|[0;0m `- [1;39mnote: [1;39mgeneric struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m2 |[0;0m public let _rawValue: Builtin.RawPointer
[0;36m3 |[0;0m public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:230:13: [1;33mwarning: [1;39mcapture of 'resultsStorage' with non-Sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m228 |[0;0m }
[0;36m229 |[0;0m
[0;36m230 |[0;0m resultsStorage[slice] = heapSortedAscending(heap)
[0;36m|[0;0m `- [1;33mwarning: [1;39mcapture of 'resultsStorage' with non-Sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m231 |[0;0m }
[0;36m232 |[0;0m
Swift.UnsafeMutableBufferPointer:1:23: [1;39mnote: [1;39mgeneric struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m1 |[0;0m @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
[0;36m|[0;0m `- [1;39mnote: [1;39mgeneric struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m2 |[0;0m public let count: Int
[0;36m3 |[0;0m @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNS/Storage/SQLiteStructuredStore.swift:92:17: [1;33mwarning: [1;39mresult of call to 'withUnsafeBytes' is unused[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m90 |[0;0m
[0;36m91 |[0;0m sqlite3_bind_text(statement, 1, key, -1, sqliteTransient)
[0;36m92 |[0;0m payload.withUnsafeBytes [4;39m{ rawBuffer in[0;0m
[0;36m|[0;0m `- [1;33mwarning: [1;39mresult of call to 'withUnsafeBytes' is unused[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m93 |[0;0m sqlite3_bind_blob(statement, 2, rawBuffer.baseAddress, Int32(rawBuffer.count), sqliteTransient)
[0;36m94 |[0;0m }
[#NoUsage]: <https://docs.swift.org/compiler/documentation/diagnostics/no-usage>
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:651:9: [1;33mwarning: [1;39m'cblas_sgemm' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m649 |[0;0m }
[0;36m650 |[0;0m
[0;36m651 |[0;0m cblas_sgemm(
[0;36m|[0;0m `- [1;33mwarning: [1;39m'cblas_sgemm' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m652 |[0;0m CblasRowMajor,
[0;36m653 |[0;0m CblasNoTrans,
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:684:33: [1;33mwarning: [1;39mcapture of 'scores' with non-Sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m682 |[0;0m var best = 0
[0;36m683 |[0;0m var bestKey = Float.greatestFiniteMagnitude
[0;36m684 |[0;0m let rowScores = scores.advanced(by: row * nlist)
[0;36m|[0;0m `- [1;33mwarning: [1;39mcapture of 'scores' with non-Sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m685 |[0;0m let qn = rowNormSq[row]
[0;36m686 |[0;0m for cluster in 0..<nlist {
Swift.UnsafeMutablePointer:1:23: [1;39mnote: [1;39mgeneric struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m1 |[0;0m @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
[0;36m|[0;0m `- [1;39mnote: [1;39mgeneric struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m2 |[0;0m public let _rawValue: Builtin.RawPointer
[0;36m3 |[0;0m public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:685:26: [1;33mwarning: [1;39mcapture of 'rowNormSq' with non-Sendable type 'UnsafePointer<Float>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m683 |[0;0m var bestKey = Float.greatestFiniteMagnitude
[0;36m684 |[0;0m let rowScores = scores.advanced(by: row * nlist)
[0;36m685 |[0;0m let qn = rowNormSq[row]
[0;36m|[0;0m `- [1;33mwarning: [1;39mcapture of 'rowNormSq' with non-Sendable type 'UnsafePointer<Float>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m686 |[0;0m for cluster in 0..<nlist {
[0;36m687 |[0;0m let key = distance(
Swift.UnsafePointer:1:23: [1;39mnote: [1;39mgeneric struct 'UnsafePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m1 |[0;0m @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
[0;36m|[0;0m `- [1;39mnote: [1;39mgeneric struct 'UnsafePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m2 |[0;0m public let _rawValue: Builtin.RawPointer
[0;36m3 |[0;0m public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:690:36: [1;33mwarning: [1;39mcapture of 'centroidNormSq' with non-Sendable type 'UnsafePointer<Float>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m688 |[0;0m dot: rowScores[cluster],
[0;36m689 |[0;0m queryNormSq: qn,
[0;36m690 |[0;0m rowNormSq: centroidNormSq[cluster],
[0;36m|[0;0m `- [1;33mwarning: [1;39mcapture of 'centroidNormSq' with non-Sendable type 'UnsafePointer<Float>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m691 |[0;0m metric: metric
[0;36m692 |[0;0m )
Swift.UnsafePointer:1:23: [1;39mnote: [1;39mgeneric struct 'UnsafePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m1 |[0;0m @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
[0;36m|[0;0m `- [1;39mnote: [1;39mgeneric struct 'UnsafePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m2 |[0;0m public let _rawValue: Builtin.RawPointer
[0;36m3 |[0;0m public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:698:17: [1;33mwarning: [1;39mcapture of 'assignments' with non-Sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m696 |[0;0m }
[0;36m697 |[0;0m }
[0;36m698 |[0;0m assignments[row] = best
[0;36m|[0;0m `- [1;33mwarning: [1;39mcapture of 'assignments' with non-Sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m699 |[0;0m }
[0;36m700 |[0;0m }
Swift.UnsafeMutablePointer:1:23: [1;39mnote: [1;39mgeneric struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m1 |[0;0m @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
[0;36m|[0;0m `- [1;39mnote: [1;39mgeneric struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m2 |[0;0m public let _rawValue: Builtin.RawPointer
[0;36m3 |[0;0m public init(_ _rawValue: Builtin.RawPointer)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSBenchmarks/HotPathProfiler.swift:231:17: [1;33mwarning: [1;39m'cblas_sgemv' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m229 |[0;0m let start = DispatchTime.now().uptimeNanoseconds
[0;36m230 |[0;0m output.withUnsafeMutableBufferPointer { out in
[0;36m231 |[0;0m cblas_sgemv(
[0;36m|[0;0m `- [1;33mwarning: [1;39m'cblas_sgemv' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m232 |[0;0m CblasRowMajor, CblasNoTrans, Int32(n), Int32(dim), 1.0,
[0;36m233 |[0;0m corpusBase, Int32(dim), query, 1, 0.0, out.baseAddress!, 1
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Build complete.
{
"dependencies" : [
{
"identity" : "grdb.swift",
"requirement" : {
"range" : [
{
"lower_bound" : "7.0.0",
"upper_bound" : "8.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/groue/GRDB.swift.git"
}
],
"manifest_display_name" : "MetalANNS",
"name" : "MetalANNS",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "macos",
"version" : "14.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "MetalANNS",
"targets" : [
"MetalANNS"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MetalANNSBenchmarks",
"targets" : [
"MetalANNSBenchmarks"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "MetalANNSTests",
"module_type" : "SwiftTarget",
"name" : "MetalANNSTests",
"path" : "Tests/MetalANNSTests",
"product_dependencies" : [
"GRDB"
],
"sources" : [
"ANNSIndexTests.swift",
"BackendProtocolTests.swift",
"BatchExecutionTests.swift",
"BatchInsertTests.swift",
"BatchSearchAdaptiveConcurrencyTests.swift",
"BinaryQuantizationTests.swift",
"BitonicSortTests.swift",
"BoundedExactScanTests.swift",
"BoundedSelectionTests.swift",
"CommandQueuePoolTests.swift",
"CompactionTests.swift",
"ConcurrentSearchTests.swift",
"ConfigurationTests.swift",
"DeletionTests.swift",
"DiskBackedTests.swift",
"DistanceTests.swift",
"DownstreamContractTests.swift",
"ErrorModelTests.swift",
"ExactSearchIntegrationTests.swift",
"FilteredSearchTests.swift",
"FlatSearchTests.swift",
"Float16IntegrationTests.swift",
"Float16Tests.swift",
"FullGPUSearchTests.swift",
"GPUADCSearchTests.swift",
"GPUCPUParityTests.swift",
"GraphBufferTests.swift",
"GraphPrunerTests.swift",
"GraphRepairTests.swift",
"HNSWTests.swift",
"IDMapTests.swift",
"IVFFlatSearchTests.swift",
"IVFPQComprehensiveTests.swift",
"IVFPQGPUTests.swift",
"IVFPQIndexTests.swift",
"IVFPQPersistenceTests.swift",
"IncrementalTests.swift",
"IndexMetricsTests.swift",
"IntegrationTests.swift",
"MetadataTests.swift",
"MetalContextMultiQueueTests.swift",
"MetalDeviceTests.swift",
"MetalDistanceTests.swift",
"MetalSearchTests.swift",
"MmapTests.swift",
"MultiQueuePerformanceTests.swift",
"NNDescentCPUTests.swift",
"NNDescentGPUTests.swift",
"PQVectorBufferTests.swift",
"PersistenceTests.swift",
"ProductQuantizerTests.swift",
"QuantizedStorageTests.swift",
"RangeSearchTests.swift",
"RuntimeMetricTests.swift",
"SIMDDistanceTests.swift",
"SearchBufferPoolTests.swift",
"SearchExecutionTests.swift",
"SearchTests.swift",
"ShardedIndexParallelBuildTests.swift",
"ShardedIndexParallelSearchTests.swift",
"ShardedIndexTests.swift",
"Storage/IndexDatabaseTests.swift",
"Storage/StreamingDatabaseTests.swift",
"StreamingConfigurationTests.swift",
"StreamingIndexFlushTests.swift",
"StreamingIndexInsertTests.swift",
"StreamingIndexMergeTests.swift",
"StreamingIndexMetadataTests.swift",
"StreamingIndexPersistenceTests.swift",
"StreamingIndexSearchTests.swift",
"TestUtilities.swift",
"VectorBufferTests.swift"
],
"target_dependencies" : [
"MetalANNS",
"MetalANNSCore",
"MetalANNSC"
],
"type" : "test"
},
{
"c99name" : "MetalANNSCore",
"module_type" : "SwiftTarget",
"name" : "MetalANNSCore",
"path" : "Sources/MetalANNSCore",
"product_memberships" : [
"MetalANNS",
"MetalANNSBenchmarks"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/Shaders/Distance.metal",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/Shaders/DistanceFloat16.metal",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/Shaders/FlatSearch.metal",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/Shaders/HammingDistance.metal",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/Shaders/NNDescent.metal",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/Shaders/NNDescentFloat16.metal",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/Shaders/PQDistance.metal",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/Shaders/Search.metal",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/Shaders/SearchFloat16.metal",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/Shaders/Sort.metal",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"AccelerateBackend.swift",
"BatchIncrementalBuilder.swift",
"BeamSearchCPU.swift",
"BinaryVectorBuffer.swift",
"BoundedExactScan.swift",
"BoundedSelection.swift",
"CommandQueuePool.swift",
"ComputeBackend.swift",
"DiskBackedVectorBuffer.swift",
"Errors.swift",
"ExactGraphBuilder.swift",
"FlatGPUSearch.swift",
"Float16VectorBuffer.swift",
"FullGPUSearch.swift",
"GPUADCSearch.swift",
"GraphBuffer.swift",
"GraphPruner.swift",
"GraphRepairer.swift",
"HNSWBuilder.swift",
"HNSWConfiguration.swift",
"HNSWLayers.swift",
"HNSWSearchCPU.swift",
"IDMap.swift",
"IVFFlatSearch.swift",
"IncrementalBuilder.swift",
"IndexCompactor.swift",
"IndexSerializer.swift",
"Int8CodeCache.swift",
"KMeans.swift",
"MetadataBuffer.swift",
"MetadataStore.swift",
"MetalBackend.swift",
"MetalDevice.swift",
"Metric.swift",
"MmapIndexLoader.swift",
"NNDescentCPU.swift",
"NNDescentGPU.swift",
"PQVectorBuffer.swift",
"ParallelFlatScan.swift",
"PipelineCache.swift",
"ProductQuantizer.swift",
"QuantizedStorage.swift",
"RepairConfiguration.swift",
"SIMDDistance.swift",
"SearchBufferPool.swift",
"SearchFilter.swift",
"SearchGPU.swift",
"SearchResult.swift",
"SoftDeletion.swift",
"StorageGrowth.swift",
"VectorBuffer.swift",
"VectorStorage.swift",
"VectorValidation.swift"
],
"target_dependencies" : [
"MetalANNSC"
],
"type" : "library"
},
{
"c99name" : "MetalANNSC",
"module_type" : "ClangTarget",
"name" : "MetalANNSC",
"path" : "Sources/MetalANNSC",
"product_memberships" : [
"MetalANNS",
"MetalANNSBenchmarks"
],
"sources" : [
"dots.c"
],
"type" : "library"
},
{
"c99name" : "MetalANNSBenchmarks",
"module_type" : "SwiftTarget",
"name" : "MetalANNSBenchmarks",
"path" : "Sources/MetalANNSBenchmarks",
"product_memberships" : [
"MetalANNSBenchmarks"
],
"sources" : [
"BenchmarkDataset.swift",
"BenchmarkIDParser.swift",
"BenchmarkReport.swift",
"BenchmarkRunner.swift",
"EnvironmentProbe.swift",
"FlatSearchProbe.swift",
"HotPathProfiler.swift",
"IVFPQBenchmark.swift",
"LatencyDistribution.swift",
"MemoryProbe.swift",
"OpsBenchmark.swift",
"main.swift"
],
"target_dependencies" : [
"MetalANNS",
"MetalANNSCore"
],
"type" : "executable"
},
{
"c99name" : "MetalANNS",
"module_type" : "SwiftTarget",
"name" : "MetalANNS",
"path" : "Sources/MetalANNS",
"product_dependencies" : [
"GRDB"
],
"product_memberships" : [
"MetalANNS",
"MetalANNSBenchmarks"
],
"sources" : [
"ANNSIndex+AccessGate.swift",
"ANNSIndex+Build.swift",
"ANNSIndex+Insert.swift",
"ANNSIndex+Internal.swift",
"ANNSIndex+Persistence.swift",
"ANNSIndex+Search.swift",
"ANNSIndex.swift",
"Advanced.swift",
"BatchExecution.swift",
"IVFPQConfiguration.swift",
"IVFPQIndex.swift",
"IndexConfiguration.swift",
"IndexMetrics.swift",
"MetricsSnapshot.swift",
"Reexports.swift",
"SearchExecution.swift",
"ShardedIndex.swift",
"Storage/IDMapPersistenceCompat.swift",
"Storage/IndexDatabase.swift",
"Storage/SQLiteStructuredStore.swift",
"Storage/StreamingDatabase.swift",
"StreamingConfiguration.swift",
"StreamingIndex.swift",
"VectorIndex.swift"
],
"target_dependencies" : [
"MetalANNSCore"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/christopherkarani/metalanns/0.4.0
Repository: christopherkarani/MetalANNS
Swift version used: 6.4
Target: MetalANNS
Extracting symbol information for 'MetalANNS'...
Finished extracting symbol information for 'MetalANNS'. (5.27s)
Building documentation for 'MetalANNS'...
warning: Parameter 'metric' is missing documentation
--> ../ANNSIndex+Search.swift:8:74-8:74
6 | /// - searchMode: Overrides `IndexConfiguration.searchMode` for this call.
| ╰─suggestion: Document 'metric' parameter
7 | /// `nil` uses the configuration. `.fast` is approximate IVF-flat.
8 + /// - nprobe: Overrides `IndexConfiguration.ivfNProbe` for `.fast`.
9 | /// - Returns: Up to `k` results ordered by ascending `SearchResult.score`,
10 | /// which is a **distance** (lower is closer). See `Metric` for its meaning
warning: Parameter 'filter' is missing documentation
--> ../ANNSIndex+Search.swift:8:74-8:74
6 | /// - searchMode: Overrides `IndexConfiguration.searchMode` for this call.
| ╰─suggestion: Document 'filter' parameter
7 | /// `nil` uses the configuration. `.fast` is approximate IVF-flat.
8 + /// - nprobe: Overrides `IndexConfiguration.ivfNProbe` for `.fast`.
9 | /// - Returns: Up to `k` results ordered by ascending `SearchResult.score`,
10 | /// which is a **distance** (lower is closer). See `Metric` for its meaning
warning: Parameter 'query' is missing documentation
--> ../ANNSIndex+Search.swift:8:74-8:74
6 | /// - searchMode: Overrides `IndexConfiguration.searchMode` for this call.
| ╰─suggestion: Document 'query' parameter
7 | /// `nil` uses the configuration. `.fast` is approximate IVF-flat.
8 + /// - nprobe: Overrides `IndexConfiguration.ivfNProbe` for `.fast`.
9 | /// - Returns: Up to `k` results ordered by ascending `SearchResult.score`,
10 | /// which is a **distance** (lower is closer). See `Metric` for its meaning
warning: Parameter 'k' is missing documentation
--> ../ANNSIndex+Search.swift:8:74-8:74
6 | /// - searchMode: Overrides `IndexConfiguration.searchMode` for this call.
| ╰─suggestion: Document 'k' parameter
7 | /// `nil` uses the configuration. `.fast` is approximate IVF-flat.
8 + /// - nprobe: Overrides `IndexConfiguration.ivfNProbe` for `.fast`.
9 | /// - Returns: Up to `k` results ordered by ascending `SearchResult.score`,
10 | /// which is a **distance** (lower is closer). See `Metric` for its meaning
warning: 'nonFiniteVector(index:)' doesn't exist at '/MetalANNS/ANNSError'
--> GettingStarted.md:52:58-52:81
50 | Any non-zero count works. With no more vectors than `degree`, the exact
51 | neighbour graph is built directly and fills in as you insert. Vectors with
52 + NaN or infinite components are rejected with ``ANNSError/nonFiniteVector(index:)``.
53 | Cancelling the calling task stops construction with `CancellationError`.
54 |
warning: 'search(query:topK:metric:filter:)' is ambiguous at '/MetalANNS/VectorIndex'
--> VectorIndex.md:9:35-9:68
7 | `VectorIndex` uses Swift's type system to prevent invalid operations at compile time:
8 | - You can only call ``VectorIndex/build(records:)`` on an `Unbuilt` index
9 + - You can only call ``VectorIndex/search(query:topK:metric:filter:)`` on a `Ready` or `ReadOnly` index
| ├─suggestion: Insert '-45nkt' for 'func search(query: [Float], topK: Int, metric: Metric? = nil, @QueryFilterBuilder filter: () -> QueryFilter = { .any }) async throws -> [VectorNeighbor<Key>]'
| ╰─suggestion: Insert '-8ktwr' for 'func search(query: [Float], topK: Int, metric: Metric? = nil, @QueryFilterBuilder filter: () -> QueryFilter = { .any }) async throws -> [VectorNeighbor<Key>]'
10 | - The ``VectorIndex/advanced`` escape hatch exposes the underlying `_GraphIndex` actor for power users
11 |
warning: 'search(query:topK:metric:filter:)' is ambiguous at '/MetalANNS/VectorIndex'
--> VectorIndex.md:22:17-22:50
20 | ### Searching
21 |
22 + - ``VectorIndex/search(query:topK:metric:filter:)``
| ├─suggestion: Insert '-45nkt' for 'func search(query: [Float], topK: Int, metric: Metric? = nil, @QueryFilterBuilder filter: () -> QueryFilter = { .any }) async throws -> [VectorNeighbor<Key>]'
| ╰─suggestion: Insert '-8ktwr' for 'func search(query: [Float], topK: Int, metric: Metric? = nil, @QueryFilterBuilder filter: () -> QueryFilter = { .any }) async throws -> [VectorNeighbor<Key>]'
23 | - ``VectorIndex/batchSearch(queries:topK:metric:filter:)``
24 | - ``VectorIndex/rangeSearch(query:maxDistance:limit:metric:filter:)``
warning: 'batchSearch(queries:topK:metric:filter:)' is ambiguous at '/MetalANNS/VectorIndex'
--> VectorIndex.md:23:17-23:57
21 |
22 | - ``VectorIndex/search(query:topK:metric:filter:)``
23 + - ``VectorIndex/batchSearch(queries:topK:metric:filter:)``
| ├─suggestion: Insert '-1hhsv' for 'func batchSearch(queries: [[Float]], topK: Int, metric: Metric? = nil, @QueryFilterBuilder filter: () -> QueryFilter = { .any }) async throws -> [[VectorNeighbor<Key>]]'
| ╰─suggestion: Insert '-73at2' for 'func batchSearch(queries: [[Float]], topK: Int, metric: Metric? = nil, @QueryFilterBuilder filter: () -> QueryFilter = { .any }) async throws -> [[VectorNeighbor<Key>]]'
24 | - ``VectorIndex/rangeSearch(query:maxDistance:limit:metric:filter:)``
25 |
warning: 'rangeSearch(query:maxDistance:limit:metric:filter:)' is ambiguous at '/MetalANNS/VectorIndex'
--> VectorIndex.md:24:17-24:68
22 | - ``VectorIndex/search(query:topK:metric:filter:)``
23 | - ``VectorIndex/batchSearch(queries:topK:metric:filter:)``
24 + - ``VectorIndex/rangeSearch(query:maxDistance:limit:metric:filter:)``
| ├─suggestion: Insert '-2uzod' for 'func rangeSearch(query: [Float], maxDistance: Float, limit: Int = 1000, metric: Metric? = nil, @QueryFilterBuilder filter: () -> QueryFilter = { .any }) async throws -> [VectorNeighbor<Key>]'
| ╰─suggestion: Insert '-3vsd0' for 'func rangeSearch(query: [Float], maxDistance: Float, limit: Int = 1000, metric: Metric? = nil, @QueryFilterBuilder filter: () -> QueryFilter = { .any }) async throws -> [VectorNeighbor<Key>]'
25 |
26 | ### Mutation
warning: 'save(to:)' is ambiguous at '/MetalANNS/VectorIndex'
--> VectorIndex.md:35:17-35:26
33 | ### Persistence
34 |
35 + - ``VectorIndex/save(to:)``
| ├─suggestion: Insert '-435pq' for 'func save(to url: URL) async throws'
| ╰─suggestion: Insert '-7b7ij' for 'func save(to url: URL) async throws'
36 | - ``VectorIndex/load(from:)``
37 | - ``VectorIndex/loadReadOnly(from:mode:)``
Finished building documentation for 'MetalANNS' (0.21s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/christopherkarani/metalanns/0.4.0
Fetching https://github.com/swiftlang/swift-docc-plugin
Updating https://github.com/groue/GRDB.swift.git
[1/2345] Fetching swift-docc-plugin
Updated https://github.com/groue/GRDB.swift.git (1.37s)
Fetched https://github.com/swiftlang/swift-docc-plugin (1.38s)
Computing version for https://github.com/groue/GRDB.swift.git
Computed https://github.com/groue/GRDB.swift.git at 7.10.0 (2.19s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.5.0 (2.43s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3863] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit (1.28s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (2.05s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Building for debugging...
[Planning deferred tasks]
[20 / 43] Snippets
[30 / 92]
[35 / 92]
[38 / 92]
[39 / 92]
[43 / 92]
[45 / 92]
[48 / 92]
[51 / 92]
[53 / 92]
[54 / 92]
[65 / 92] Snippets
[75 / 92] SymbolKit
[84 / 93] SymbolKit
[86 / 93] Snippets
[92 / 97] snippet-extract-product
[93 / 97] snippet-extract-product
[95 / 97] snippet-extract-product
Build complete! (4.38 sec)
Building for debugging...
[Pre-planning 1 / 184]
[Planning deferred tasks]
warning: missing creator for mutated node: ('/Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug/MetalANNS_MetalANNSCore.bundle/Contents/MacOS')
[6 / 34] MetalANNSC
[8 / 33] MetalANNSCore
[18 / 44] MetalANNSCore
[19 / 55] GRDB
[20 / 55] MetalANNSCore
[26 / 51] GRDB
[27 / 51] GRDB
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:162:24: [1;33mwarning: [1;39mcapture of 'dotsScratch' with non-Sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m160 |[0;0m guard start < end else { return }
[0;36m161 |[0;0m let rows = end - start
[0;36m162 |[0;0m let dots = dotsScratch + slice * chunkSize
[0;36m|[0;0m `- [1;33mwarning: [1;39mcapture of 'dotsScratch' with non-Sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m163 |[0;0m
[0;36m164 |[0;0m context.queryCodes.withUnsafeBufferPointer { queryBuffer in
Swift.UnsafeMutablePointer:1:23: [1;39mnote: [1;39mgeneric struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m1 |[0;0m @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
[0;36m|[0;0m `- [1;39mnote: [1;39mgeneric struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m2 |[0;0m public let _rawValue: Builtin.RawPointer
[0;36m3 |[0;0m public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:230:13: [1;33mwarning: [1;39mcapture of 'resultsStorage' with non-Sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m228 |[0;0m }
[0;36m229 |[0;0m
[0;36m230 |[0;0m resultsStorage[slice] = heapSortedAscending(heap)
[0;36m|[0;0m `- [1;33mwarning: [1;39mcapture of 'resultsStorage' with non-Sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m231 |[0;0m }
[0;36m232 |[0;0m
Swift.UnsafeMutableBufferPointer:1:23: [1;39mnote: [1;39mgeneric struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m1 |[0;0m @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
[0;36m|[0;0m `- [1;39mnote: [1;39mgeneric struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m2 |[0;0m public let count: Int
[0;36m3 |[0;0m @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[30 / 51] GRDB
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/FlatGPUSearch.swift:517:21: [1;33mwarning: [1;39m'cblas_sgemv' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m515 |[0;0m ones.withUnsafeBufferPointer { onesBuffer in
[0;36m516 |[0;0m guard let onesBase = onesBuffer.baseAddress else { return }
[0;36m517 |[0;0m cblas_sgemv(
[0;36m|[0;0m `- [1;33mwarning: [1;39m'cblas_sgemv' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m518 |[0;0m CblasRowMajor,
[0;36m519 |[0;0m CblasNoTrans,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[31 / 51] GRDB
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:651:9: [1;33mwarning: [1;39m'cblas_sgemm' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m649 |[0;0m }
[0;36m650 |[0;0m
[0;36m651 |[0;0m cblas_sgemm(
[0;36m|[0;0m `- [1;33mwarning: [1;39m'cblas_sgemm' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m652 |[0;0m CblasRowMajor,
[0;36m653 |[0;0m CblasNoTrans,
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:684:33: [1;33mwarning: [1;39mcapture of 'scores' with non-Sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m682 |[0;0m var best = 0
[0;36m683 |[0;0m var bestKey = Float.greatestFiniteMagnitude
[0;36m684 |[0;0m let rowScores = scores.advanced(by: row * nlist)
[0;36m|[0;0m `- [1;33mwarning: [1;39mcapture of 'scores' with non-Sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m685 |[0;0m let qn = rowNormSq[row]
[0;36m686 |[0;0m for cluster in 0..<nlist {
Swift.UnsafeMutablePointer:1:23: [1;39mnote: [1;39mgeneric struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m1 |[0;0m @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
[0;36m|[0;0m `- [1;39mnote: [1;39mgeneric struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m2 |[0;0m public let _rawValue: Builtin.RawPointer
[0;36m3 |[0;0m public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:685:26: [1;33mwarning: [1;39mcapture of 'rowNormSq' with non-Sendable type 'UnsafePointer<Float>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m683 |[0;0m var bestKey = Float.greatestFiniteMagnitude
[0;36m684 |[0;0m let rowScores = scores.advanced(by: row * nlist)
[0;36m685 |[0;0m let qn = rowNormSq[row]
[0;36m|[0;0m `- [1;33mwarning: [1;39mcapture of 'rowNormSq' with non-Sendable type 'UnsafePointer<Float>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m686 |[0;0m for cluster in 0..<nlist {
[0;36m687 |[0;0m let key = distance(
Swift.UnsafePointer:1:23: [1;39mnote: [1;39mgeneric struct 'UnsafePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m1 |[0;0m @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
[0;36m|[0;0m `- [1;39mnote: [1;39mgeneric struct 'UnsafePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m2 |[0;0m public let _rawValue: Builtin.RawPointer
[0;36m3 |[0;0m public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:690:36: [1;33mwarning: [1;39mcapture of 'centroidNormSq' with non-Sendable type 'UnsafePointer<Float>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m688 |[0;0m dot: rowScores[cluster],
[0;36m689 |[0;0m queryNormSq: qn,
[0;36m690 |[0;0m rowNormSq: centroidNormSq[cluster],
[0;36m|[0;0m `- [1;33mwarning: [1;39mcapture of 'centroidNormSq' with non-Sendable type 'UnsafePointer<Float>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m691 |[0;0m metric: metric
[0;36m692 |[0;0m )
Swift.UnsafePointer:1:23: [1;39mnote: [1;39mgeneric struct 'UnsafePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m1 |[0;0m @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
[0;36m|[0;0m `- [1;39mnote: [1;39mgeneric struct 'UnsafePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m2 |[0;0m public let _rawValue: Builtin.RawPointer
[0;36m3 |[0;0m public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:698:17: [1;33mwarning: [1;39mcapture of 'assignments' with non-Sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m696 |[0;0m }
[0;36m697 |[0;0m }
[0;36m698 |[0;0m assignments[row] = best
[0;36m|[0;0m `- [1;33mwarning: [1;39mcapture of 'assignments' with non-Sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m699 |[0;0m }
[0;36m700 |[0;0m }
Swift.UnsafeMutablePointer:1:23: [1;39mnote: [1;39mgeneric struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m1 |[0;0m @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
[0;36m|[0;0m `- [1;39mnote: [1;39mgeneric struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol[0;0m
[0;36m2 |[0;0m public let _rawValue: Builtin.RawPointer
[0;36m3 |[0;0m public init(_ _rawValue: Builtin.RawPointer)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[33 / 51] MetalANNSCore
[33 / 50] GRDB
[35 / 46] GRDB
[37 / 47] MetalANNS
[47 / 58] MetalANNS
[48 / 58] MetalANNS
[49 / 57] MetalANNS
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNS/Storage/SQLiteStructuredStore.swift:92:17: [1;33mwarning: [1;39mresult of call to 'withUnsafeBytes' is unused[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m90 |[0;0m
[0;36m91 |[0;0m sqlite3_bind_text(statement, 1, key, -1, sqliteTransient)
[0;36m92 |[0;0m payload.withUnsafeBytes [4;39m{ rawBuffer in[0;0m
[0;36m|[0;0m `- [1;33mwarning: [1;39mresult of call to 'withUnsafeBytes' is unused[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m93 |[0;0m sqlite3_bind_blob(statement, 2, rawBuffer.baseAddress, Int32(rawBuffer.count), sqliteTransient)
[0;36m94 |[0;0m }
[#NoUsage]: <https://docs.swift.org/compiler/documentation/diagnostics/no-usage>
[51 / 53] MetalANNS
Build complete! (5.01 sec)
504
4 /Users/admin/builder/spi-builder-workspace/.docs/christopherkarani/metalanns/0.4.0
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/christopherkarani/metalanns/0.4.0
File count: 504
Doc size: 4.0MB
Preparing doc bundle ...
Using presigned URL upload - AWS credentials not required
Uploading -christopherkarani-metalanns-0.4.0-420cd23e.zip to presigned URL
Starting upload of 902709 bytes...
Upload completed successfully
Done.