The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MetalANNS, reference 0.3.0 (139604), with Swift 6.1 for macOS (SPM) on 24 Aug 2026 16:39:23 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

 91 |
 92 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:105:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
103 |         try encode(commandBuffer)
104 |         commandBuffer.commit()
105 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
106 |
107 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:99:37: error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 97 |     /// Like execute(), but picks a queue from the pool for pipelining concurrent calls.
 98 |     public func executeOnPool(_ encode: (MTLCommandBuffer) throws -> Void) async throws {
 99 |         let queue = await queuePool.next()
    |                                     `- error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
100 |         guard let commandBuffer = queue.makeCommandBuffer() else {
101 |             throw ANNSError.gpuResourceExhausted("Failed to create command buffer from pool queue")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h:21:11: note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 19 |  */
 20 | API_AVAILABLE(macos(10.11), ios(8.0))
 21 | @protocol MTLCommandQueue <NSObject>
    |           `- note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 22 |
 23 | /*! @brief A string to help identify this object */
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 | import os.log
  4 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:17:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 15 |         }
 16 |
 17 |         let pipeline = try await context.pipelineCache.pipeline(for: "random_init")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 18 |
 19 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  2 | import os.log
  3 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:56:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 54 |
 55 |         let kernelName = vectors.isFloat16 ? "compute_initial_distances_f16" : "compute_initial_distances"
 56 |         let pipeline = try await context.pipelineCache.pipeline(for: kernelName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 57 |
 58 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:139:63: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
137 |         }
138 |
139 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
    |                                                               `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
140 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
141 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:141:65: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
139 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
140 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
141 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
    |                                                                 `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
142 |
143 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:247:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
245 |         }
246 |
247 |         let pipeline = try await context.pipelineCache.pipeline(for: "bitonic_sort_neighbors")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
248 |         let threadgroupWidth = degree / 2
249 |         guard threadgroupWidth <= pipeline.maxTotalThreadsPerThreadgroup else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:90:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
 88 |         try encode(commandBuffer)
 89 |         commandBuffer.commit()
 90 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
 91 |
 92 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:105:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
103 |         try encode(commandBuffer)
104 |         commandBuffer.commit()
105 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
106 |
107 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:99:37: error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 97 |     /// Like execute(), but picks a queue from the pool for pipelining concurrent calls.
 98 |     public func executeOnPool(_ encode: (MTLCommandBuffer) throws -> Void) async throws {
 99 |         let queue = await queuePool.next()
    |                                     `- error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
100 |         guard let commandBuffer = queue.makeCommandBuffer() else {
101 |             throw ANNSError.gpuResourceExhausted("Failed to create command buffer from pool queue")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h:21:11: note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 19 |  */
 20 | API_AVAILABLE(macos(10.11), ios(8.0))
 21 | @protocol MTLCommandQueue <NSObject>
    |           `- note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 22 |
 23 | /*! @brief A string to help identify this object */
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 | import os.log
  4 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:17:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 15 |         }
 16 |
 17 |         let pipeline = try await context.pipelineCache.pipeline(for: "random_init")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 18 |
 19 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  2 | import os.log
  3 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:56:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 54 |
 55 |         let kernelName = vectors.isFloat16 ? "compute_initial_distances_f16" : "compute_initial_distances"
 56 |         let pipeline = try await context.pipelineCache.pipeline(for: kernelName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 57 |
 58 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:139:63: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
137 |         }
138 |
139 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
    |                                                               `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
140 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
141 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:141:65: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
139 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
140 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
141 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
    |                                                                 `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
142 |
143 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:247:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
245 |         }
246 |
247 |         let pipeline = try await context.pipelineCache.pipeline(for: "bitonic_sort_neighbors")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
248 |         let threadgroupWidth = degree / 2
249 |         guard threadgroupWidth <= pipeline.maxTotalThreadsPerThreadgroup else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[114/243] Compiling GRDB ForeignKey.swift
[115/243] Compiling GRDB Association.swift
[116/243] Compiling GRDB AssociationAggregate.swift
[117/243] Compiling GRDB BelongsToAssociation.swift
[118/243] Compiling GRDB HasManyAssociation.swift
[119/243] Compiling GRDB HasManyThroughAssociation.swift
[120/243] Compiling GRDB HasOneAssociation.swift
[121/243] Compiling GRDB HasOneThroughAssociation.swift
[122/243] Compiling GRDB JoinAssociation.swift
[123/243] Compiling GRDB CommonTableExpression.swift
[124/243] Compiling GRDB QueryInterfaceRequest.swift
[125/243] Compiling GRDB RequestProtocols.swift
[126/243] Compiling GRDB Column.swift
[127/243] Compiling GRDB DatabasePromise.swift
[128/243] Compiling GRDB SQLAssociation.swift
[129/243] Compiling GRDB SQLCollection.swift
[130/243] Compiling GRDB SQLExpression.swift
[131/243] Compiling MetalANNSCore MetadataBuffer.swift
[132/243] Compiling MetalANNSCore MetadataStore.swift
[133/243] Compiling MetalANNSCore MetalBackend.swift
[134/243] Compiling MetalANNSCore AccelerateBackend.swift
[135/243] Compiling MetalANNSCore BatchIncrementalBuilder.swift
[136/243] Compiling MetalANNSCore BeamSearchCPU.swift
[137/243] Compiling MetalANNSCore BinaryVectorBuffer.swift
[138/243] Compiling MetalANNSCore BoundedExactScan.swift
[139/243] Compiling MetalANNSCore BoundedSelection.swift
[140/243] Compiling MetalANNSCore IDMap.swift
[141/243] Compiling MetalANNSCore IVFFlatSearch.swift
[142/243] Compiling MetalANNSCore IncrementalBuilder.swift
[143/243] Compiling MetalANNSCore IndexCompactor.swift
[144/243] Compiling MetalANNSCore IndexSerializer.swift
[150/243] Compiling MetalANNSCore RepairConfiguration.swift
[151/243] Compiling MetalANNSCore SIMDDistance.swift
[152/243] Compiling MetalANNSCore SearchBufferPool.swift
[153/243] Compiling MetalANNSCore SearchFilter.swift
[154/243] Compiling MetalANNSCore SearchGPU.swift
[165/243] Compiling GRDB Database+SchemaDefinition.swift
[166/243] Compiling GRDB ForeignKeyDefinition.swift
[167/243] Compiling GRDB IndexDefinition.swift
[168/243] Compiling GRDB TableAlteration.swift
[169/243] Compiling GRDB TableDefinition.swift
[170/243] Compiling GRDB VirtualTableModule.swift
[171/243] Compiling GRDB TableRecord+Association.swift
[172/243] Compiling GRDB TableRecord+QueryInterfaceRequest.swift
[173/243] Compiling GRDB EncodableRecord+Encodable.swift
[174/243] Compiling GRDB EncodableRecord.swift
[175/243] Compiling GRDB FetchableRecord+Decodable.swift
[176/243] Compiling GRDB FetchableRecord+TableRecord.swift
[177/243] Compiling GRDB FetchableRecord.swift
[178/243] Compiling GRDB MutablePersistableRecord+DAO.swift
[179/243] Compiling GRDB MutablePersistableRecord+Delete.swift
[180/243] Compiling GRDB MutablePersistableRecord+Insert.swift
[181/243] Compiling GRDB MutablePersistableRecord+Save.swift
[182/243] Compiling GRDB Configuration.swift
[183/243] Compiling GRDB Cursor.swift
[184/243] Compiling GRDB Database+SQLCipher.swift
[185/243] Compiling GRDB Database+Schema.swift
[186/243] Compiling GRDB Database+Statements.swift
[187/243] Compiling GRDB Database.swift
[188/243] Compiling GRDB DatabaseBackupProgress.swift
[189/243] Compiling GRDB DatabaseCollation.swift
[190/243] Compiling GRDB DatabaseError.swift
[191/243] Compiling GRDB DatabaseFunction.swift
[192/243] Compiling GRDB DatabasePool.swift
[193/243] Compiling GRDB DatabasePublishers.swift
[194/243] Compiling GRDB DatabaseQueue.swift
[195/243] Compiling GRDB DatabaseReader.swift
[196/243] Compiling GRDB DatabaseRegion.swift
[197/243] Compiling GRDB DatabaseRegionObservation.swift
[198/243] Compiling GRDB DatabaseSchemaCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/FlatGPUSearch.swift:488:21: warning: '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.
 486 |                 ones.withUnsafeBufferPointer { onesBuffer in
 487 |                     guard let onesBase = onesBuffer.baseAddress else { return }
 488 |                     cblas_sgemv(
     |                     `- warning: '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.
 489 |                         CblasRowMajor,
 490 |                         CblasNoTrans,
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/FlatGPUSearch.swift:488:21: warning: '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.
 486 |                 ones.withUnsafeBufferPointer { onesBuffer in
 487 |                     guard let onesBase = onesBuffer.baseAddress else { return }
 488 |                     cblas_sgemv(
     |                     `- warning: '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.
 489 |                         CblasRowMajor,
 490 |                         CblasNoTrans,
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/FlatGPUSearch.swift:488:21: warning: '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.
 486 |                 ones.withUnsafeBufferPointer { onesBuffer in
 487 |                     guard let onesBase = onesBuffer.baseAddress else { return }
 488 |                     cblas_sgemv(
     |                     `- warning: '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.
 489 |                         CblasRowMajor,
 490 |                         CblasNoTrans,
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/FlatGPUSearch.swift:488:21: warning: '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.
 486 |                 ones.withUnsafeBufferPointer { onesBuffer in
 487 |                     guard let onesBase = onesBuffer.baseAddress else { return }
 488 |                     cblas_sgemv(
     |                     `- warning: '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.
 489 |                         CblasRowMajor,
 490 |                         CblasNoTrans,
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/FlatGPUSearch.swift:488:21: warning: '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.
 486 |                 ones.withUnsafeBufferPointer { onesBuffer in
 487 |                     guard let onesBase = onesBuffer.baseAddress else { return }
 488 |                     cblas_sgemv(
     |                     `- warning: '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.
 489 |                         CblasRowMajor,
 490 |                         CblasNoTrans,
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:139:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
137 |         }
138 |
139 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
140 |
141 |         let neighborLength = neighborIDs.count * MemoryLayout<UInt32>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum SearchGPU {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:139:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
137 |         }
138 |
139 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
140 |
141 |         let neighborLength = neighborIDs.count * MemoryLayout<UInt32>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum SearchGPU {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:139:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
137 |         }
138 |
139 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
140 |
141 |         let neighborLength = neighborIDs.count * MemoryLayout<UInt32>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum SearchGPU {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:139:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
137 |         }
138 |
139 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
140 |
141 |         let neighborLength = neighborIDs.count * MemoryLayout<UInt32>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum SearchGPU {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:139:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
137 |         }
138 |
139 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
140 |
141 |         let neighborLength = neighborIDs.count * MemoryLayout<UInt32>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum SearchGPU {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:162:24: warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
160 |             guard start < end else { return }
161 |             let rows = end - start
162 |             let dots = dotsScratch + slice * chunkSize
    |                        `- warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
163 |
164 |             context.queryCodes.withUnsafeBufferPointer { queryBuffer in
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:230:13: warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
228 |             }
229 |
230 |             resultsStorage[slice] = heapSortedAscending(heap)
    |             `- warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
231 |         }
232 |
Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 |     public let count: Int
3 |     @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:162:24: warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
160 |             guard start < end else { return }
161 |             let rows = end - start
162 |             let dots = dotsScratch + slice * chunkSize
    |                        `- warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
163 |
164 |             context.queryCodes.withUnsafeBufferPointer { queryBuffer in
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:230:13: warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
228 |             }
229 |
230 |             resultsStorage[slice] = heapSortedAscending(heap)
    |             `- warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
231 |         }
232 |
Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 |     public let count: Int
3 |     @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:162:24: warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
160 |             guard start < end else { return }
161 |             let rows = end - start
162 |             let dots = dotsScratch + slice * chunkSize
    |                        `- warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
163 |
164 |             context.queryCodes.withUnsafeBufferPointer { queryBuffer in
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:230:13: warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
228 |             }
229 |
230 |             resultsStorage[slice] = heapSortedAscending(heap)
    |             `- warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
231 |         }
232 |
Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 |     public let count: Int
3 |     @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:162:24: warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
160 |             guard start < end else { return }
161 |             let rows = end - start
162 |             let dots = dotsScratch + slice * chunkSize
    |                        `- warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
163 |
164 |             context.queryCodes.withUnsafeBufferPointer { queryBuffer in
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:230:13: warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
228 |             }
229 |
230 |             resultsStorage[slice] = heapSortedAscending(heap)
    |             `- warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
231 |         }
232 |
Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 |     public let count: Int
3 |     @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:162:24: warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
160 |             guard start < end else { return }
161 |             let rows = end - start
162 |             let dots = dotsScratch + slice * chunkSize
    |                        `- warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
163 |
164 |             context.queryCodes.withUnsafeBufferPointer { queryBuffer in
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:230:13: warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
228 |             }
229 |
230 |             resultsStorage[slice] = heapSortedAscending(heap)
    |             `- warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
231 |         }
232 |
Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 |     public let count: Int
3 |     @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:162:24: warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
160 |             guard start < end else { return }
161 |             let rows = end - start
162 |             let dots = dotsScratch + slice * chunkSize
    |                        `- warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
163 |
164 |             context.queryCodes.withUnsafeBufferPointer { queryBuffer in
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:230:13: warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
228 |             }
229 |
230 |             resultsStorage[slice] = heapSortedAscending(heap)
    |             `- warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
231 |         }
232 |
Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 |     public let count: Int
3 |     @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:651:9: warning: '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.
649 |         }
650 |
651 |         cblas_sgemm(
    |         `- warning: '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.
652 |             CblasRowMajor,
653 |             CblasNoTrans,
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:684:33: warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
682 |                 var best = 0
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
    |                                 `- warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
685 |                 let qn = rowNormSq[row]
686 |                 for cluster in 0..<nlist {
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:685:26: warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
685 |                 let qn = rowNormSq[row]
    |                          `- warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
686 |                 for cluster in 0..<nlist {
687 |                     let key = distance(
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:690:36: warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
688 |                         dot: rowScores[cluster],
689 |                         queryNormSq: qn,
690 |                         rowNormSq: centroidNormSq[cluster],
    |                                    `- warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
691 |                         metric: metric
692 |                     )
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:698:17: warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
696 |                     }
697 |                 }
698 |                 assignments[row] = best
    |                 `- warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
699 |             }
700 |         }
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:651:9: warning: '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.
649 |         }
650 |
651 |         cblas_sgemm(
    |         `- warning: '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.
652 |             CblasRowMajor,
653 |             CblasNoTrans,
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:684:33: warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
682 |                 var best = 0
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
    |                                 `- warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
685 |                 let qn = rowNormSq[row]
686 |                 for cluster in 0..<nlist {
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:685:26: warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
685 |                 let qn = rowNormSq[row]
    |                          `- warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
686 |                 for cluster in 0..<nlist {
687 |                     let key = distance(
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:690:36: warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
688 |                         dot: rowScores[cluster],
689 |                         queryNormSq: qn,
690 |                         rowNormSq: centroidNormSq[cluster],
    |                                    `- warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
691 |                         metric: metric
692 |                     )
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:698:17: warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
696 |                     }
697 |                 }
698 |                 assignments[row] = best
    |                 `- warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
699 |             }
700 |         }
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:651:9: warning: '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.
649 |         }
650 |
651 |         cblas_sgemm(
    |         `- warning: '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.
652 |             CblasRowMajor,
653 |             CblasNoTrans,
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:684:33: warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
682 |                 var best = 0
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
    |                                 `- warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
685 |                 let qn = rowNormSq[row]
686 |                 for cluster in 0..<nlist {
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:685:26: warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
685 |                 let qn = rowNormSq[row]
    |                          `- warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
686 |                 for cluster in 0..<nlist {
687 |                     let key = distance(
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:690:36: warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
688 |                         dot: rowScores[cluster],
689 |                         queryNormSq: qn,
690 |                         rowNormSq: centroidNormSq[cluster],
    |                                    `- warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
691 |                         metric: metric
692 |                     )
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:698:17: warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
696 |                     }
697 |                 }
698 |                 assignments[row] = best
    |                 `- warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
699 |             }
700 |         }
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:651:9: warning: '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.
649 |         }
650 |
651 |         cblas_sgemm(
    |         `- warning: '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.
652 |             CblasRowMajor,
653 |             CblasNoTrans,
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:684:33: warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
682 |                 var best = 0
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
    |                                 `- warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
685 |                 let qn = rowNormSq[row]
686 |                 for cluster in 0..<nlist {
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:685:26: warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
685 |                 let qn = rowNormSq[row]
    |                          `- warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
686 |                 for cluster in 0..<nlist {
687 |                     let key = distance(
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:690:36: warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
688 |                         dot: rowScores[cluster],
689 |                         queryNormSq: qn,
690 |                         rowNormSq: centroidNormSq[cluster],
    |                                    `- warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
691 |                         metric: metric
692 |                     )
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:698:17: warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
696 |                     }
697 |                 }
698 |                 assignments[row] = best
    |                 `- warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
699 |             }
700 |         }
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:651:9: warning: '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.
649 |         }
650 |
651 |         cblas_sgemm(
    |         `- warning: '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.
652 |             CblasRowMajor,
653 |             CblasNoTrans,
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:684:33: warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
682 |                 var best = 0
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
    |                                 `- warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
685 |                 let qn = rowNormSq[row]
686 |                 for cluster in 0..<nlist {
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:685:26: warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
685 |                 let qn = rowNormSq[row]
    |                          `- warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
686 |                 for cluster in 0..<nlist {
687 |                     let key = distance(
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:690:36: warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
688 |                         dot: rowScores[cluster],
689 |                         queryNormSq: qn,
690 |                         rowNormSq: centroidNormSq[cluster],
    |                                    `- warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
691 |                         metric: metric
692 |                     )
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:698:17: warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
696 |                     }
697 |                 }
698 |                 assignments[row] = best
    |                 `- warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
699 |             }
700 |         }
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
Fetching https://github.com/groue/GRDB.swift.git
[1/113869] Fetching grdb.swift
Fetched https://github.com/groue/GRDB.swift.git from cache (27.56s)
Computing version for https://github.com/groue/GRDB.swift.git
Computed https://github.com/groue/GRDB.swift.git at 7.11.1 (31.16s)
Creating working copy for https://github.com/groue/GRDB.swift.git
Working copy of https://github.com/groue/GRDB.swift.git resolved at 7.11.1
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/4] Write swift-version-2F0A5646E1D333AE.txt
[2/204] Compiling GRDB WALSnapshotTransaction.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:139:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
137 |         }
138 |
139 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
140 |
141 |         let neighborLength = neighborIDs.count * MemoryLayout<UInt32>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum SearchGPU {
[3/204] Compiling GRDB Database+Dump.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:139:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
137 |         }
138 |
139 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
140 |
141 |         let neighborLength = neighborIDs.count * MemoryLayout<UInt32>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum SearchGPU {
[4/204] Compiling GRDB DatabaseReader+dump.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:139:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
137 |         }
138 |
139 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
140 |
141 |         let neighborLength = neighborIDs.count * MemoryLayout<UInt32>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum SearchGPU {
[5/204] Compiling GRDB DumpFormat.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:139:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
137 |         }
138 |
139 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
140 |
141 |         let neighborLength = neighborIDs.count * MemoryLayout<UInt32>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum SearchGPU {
[6/204] Compiling GRDB DebugDumpFormat.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:139:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
137 |         }
138 |
139 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
140 |
141 |         let neighborLength = neighborIDs.count * MemoryLayout<UInt32>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum SearchGPU {
[7/209] Compiling GRDB DatabaseSchemaCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:118:61: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
116 |         }
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
    |                                                             `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
120 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum GPUADCSearch {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:119:60: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
    |                                                            `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
120 |
121 |         var mU32 = UInt32(m)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[8/209] Compiling GRDB DatabaseSchemaSource.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:118:61: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
116 |         }
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
    |                                                             `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
120 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum GPUADCSearch {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:119:60: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
    |                                                            `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
120 |
121 |         var mU32 = UInt32(m)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[9/209] Compiling GRDB DatabaseSnapshot.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:118:61: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
116 |         }
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
    |                                                             `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
120 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum GPUADCSearch {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:119:60: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
    |                                                            `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
120 |
121 |         var mU32 = UInt32(m)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[10/209] Compiling GRDB DatabaseSnapshotPool.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:118:61: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
116 |         }
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
    |                                                             `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
120 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum GPUADCSearch {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:119:60: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
    |                                                            `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
120 |
121 |         var mU32 = UInt32(m)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[11/209] Compiling GRDB DatabaseValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:118:61: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
116 |         }
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
    |                                                             `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
120 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum GPUADCSearch {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:119:60: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
    |                                                            `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
120 |
121 |         var mU32 = UInt32(m)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[12/209] Compiling GRDB Optional.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:90:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
 88 |         try encode(commandBuffer)
 89 |         commandBuffer.commit()
 90 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
 91 |
 92 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:105:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
103 |         try encode(commandBuffer)
104 |         commandBuffer.commit()
105 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
106 |
107 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:99:37: error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 97 |     /// Like execute(), but picks a queue from the pool for pipelining concurrent calls.
 98 |     public func executeOnPool(_ encode: (MTLCommandBuffer) throws -> Void) async throws {
 99 |         let queue = await queuePool.next()
    |                                     `- error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
100 |         guard let commandBuffer = queue.makeCommandBuffer() else {
101 |             throw ANNSError.gpuResourceExhausted("Failed to create command buffer from pool queue")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h:21:11: note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 19 |  */
 20 | API_AVAILABLE(macos(10.11), ios(8.0))
 21 | @protocol MTLCommandQueue <NSObject>
    |           `- note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 22 |
 23 | /*! @brief A string to help identify this object */
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 | import os.log
  4 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:17:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 15 |         }
 16 |
 17 |         let pipeline = try await context.pipelineCache.pipeline(for: "random_init")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 18 |
 19 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  2 | import os.log
  3 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:56:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 54 |
 55 |         let kernelName = vectors.isFloat16 ? "compute_initial_distances_f16" : "compute_initial_distances"
 56 |         let pipeline = try await context.pipelineCache.pipeline(for: kernelName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 57 |
 58 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:139:63: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
137 |         }
138 |
139 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
    |                                                               `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
140 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
141 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:141:65: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
139 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
140 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
141 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
    |                                                                 `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
142 |
143 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:247:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
245 |         }
246 |
247 |         let pipeline = try await context.pipelineCache.pipeline(for: "bitonic_sort_neighbors")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
248 |         let threadgroupWidth = degree / 2
249 |         guard threadgroupWidth <= pipeline.maxTotalThreadsPerThreadgroup else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[13/209] Compiling GRDB StandardLibrary.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:90:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
 88 |         try encode(commandBuffer)
 89 |         commandBuffer.commit()
 90 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
 91 |
 92 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:105:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
103 |         try encode(commandBuffer)
104 |         commandBuffer.commit()
105 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
106 |
107 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:99:37: error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 97 |     /// Like execute(), but picks a queue from the pool for pipelining concurrent calls.
 98 |     public func executeOnPool(_ encode: (MTLCommandBuffer) throws -> Void) async throws {
 99 |         let queue = await queuePool.next()
    |                                     `- error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
100 |         guard let commandBuffer = queue.makeCommandBuffer() else {
101 |             throw ANNSError.gpuResourceExhausted("Failed to create command buffer from pool queue")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h:21:11: note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 19 |  */
 20 | API_AVAILABLE(macos(10.11), ios(8.0))
 21 | @protocol MTLCommandQueue <NSObject>
    |           `- note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 22 |
 23 | /*! @brief A string to help identify this object */
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 | import os.log
  4 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:17:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 15 |         }
 16 |
 17 |         let pipeline = try await context.pipelineCache.pipeline(for: "random_init")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 18 |
 19 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  2 | import os.log
  3 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:56:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 54 |
 55 |         let kernelName = vectors.isFloat16 ? "compute_initial_distances_f16" : "compute_initial_distances"
 56 |         let pipeline = try await context.pipelineCache.pipeline(for: kernelName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 57 |
 58 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:139:63: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
137 |         }
138 |
139 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
    |                                                               `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
140 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
141 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:141:65: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
139 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
140 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
141 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
    |                                                                 `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
142 |
143 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:247:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
245 |         }
246 |
247 |         let pipeline = try await context.pipelineCache.pipeline(for: "bitonic_sort_neighbors")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
248 |         let threadgroupWidth = degree / 2
249 |         guard threadgroupWidth <= pipeline.maxTotalThreadsPerThreadgroup else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[14/209] Compiling GRDB TransactionClock.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:90:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
 88 |         try encode(commandBuffer)
 89 |         commandBuffer.commit()
 90 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
 91 |
 92 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:105:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
103 |         try encode(commandBuffer)
104 |         commandBuffer.commit()
105 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
106 |
107 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:99:37: error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 97 |     /// Like execute(), but picks a queue from the pool for pipelining concurrent calls.
 98 |     public func executeOnPool(_ encode: (MTLCommandBuffer) throws -> Void) async throws {
 99 |         let queue = await queuePool.next()
    |                                     `- error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
100 |         guard let commandBuffer = queue.makeCommandBuffer() else {
101 |             throw ANNSError.gpuResourceExhausted("Failed to create command buffer from pool queue")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h:21:11: note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 19 |  */
 20 | API_AVAILABLE(macos(10.11), ios(8.0))
 21 | @protocol MTLCommandQueue <NSObject>
    |           `- note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 22 |
 23 | /*! @brief A string to help identify this object */
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 | import os.log
  4 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:17:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 15 |         }
 16 |
 17 |         let pipeline = try await context.pipelineCache.pipeline(for: "random_init")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 18 |
 19 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  2 | import os.log
  3 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:56:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 54 |
 55 |         let kernelName = vectors.isFloat16 ? "compute_initial_distances_f16" : "compute_initial_distances"
 56 |         let pipeline = try await context.pipelineCache.pipeline(for: kernelName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 57 |
 58 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:139:63: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
137 |         }
138 |
139 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
    |                                                               `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
140 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
141 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:141:65: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
139 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
140 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
141 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
    |                                                                 `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
142 |
143 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:247:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
245 |         }
246 |
247 |         let pipeline = try await context.pipelineCache.pipeline(for: "bitonic_sort_neighbors")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
248 |         let threadgroupWidth = degree / 2
249 |         guard threadgroupWidth <= pipeline.maxTotalThreadsPerThreadgroup else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[15/209] Compiling GRDB TransactionObserver.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:90:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
 88 |         try encode(commandBuffer)
 89 |         commandBuffer.commit()
 90 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
 91 |
 92 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:105:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
103 |         try encode(commandBuffer)
104 |         commandBuffer.commit()
105 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
106 |
107 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:99:37: error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 97 |     /// Like execute(), but picks a queue from the pool for pipelining concurrent calls.
 98 |     public func executeOnPool(_ encode: (MTLCommandBuffer) throws -> Void) async throws {
 99 |         let queue = await queuePool.next()
    |                                     `- error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
100 |         guard let commandBuffer = queue.makeCommandBuffer() else {
101 |             throw ANNSError.gpuResourceExhausted("Failed to create command buffer from pool queue")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h:21:11: note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 19 |  */
 20 | API_AVAILABLE(macos(10.11), ios(8.0))
 21 | @protocol MTLCommandQueue <NSObject>
    |           `- note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 22 |
 23 | /*! @brief A string to help identify this object */
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 | import os.log
  4 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:17:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 15 |         }
 16 |
 17 |         let pipeline = try await context.pipelineCache.pipeline(for: "random_init")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 18 |
 19 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  2 | import os.log
  3 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:56:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 54 |
 55 |         let kernelName = vectors.isFloat16 ? "compute_initial_distances_f16" : "compute_initial_distances"
 56 |         let pipeline = try await context.pipelineCache.pipeline(for: kernelName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 57 |
 58 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:139:63: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
137 |         }
138 |
139 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
    |                                                               `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
140 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
141 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:141:65: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
139 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
140 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
141 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
    |                                                                 `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
142 |
143 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:247:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
245 |         }
246 |
247 |         let pipeline = try await context.pipelineCache.pipeline(for: "bitonic_sort_neighbors")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
248 |         let threadgroupWidth = degree / 2
249 |         guard threadgroupWidth <= pipeline.maxTotalThreadsPerThreadgroup else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[16/209] Compiling GRDB WALSnapshot.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:90:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
 88 |         try encode(commandBuffer)
 89 |         commandBuffer.commit()
 90 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
 91 |
 92 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:105:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
103 |         try encode(commandBuffer)
104 |         commandBuffer.commit()
105 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
106 |
107 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:99:37: error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 97 |     /// Like execute(), but picks a queue from the pool for pipelining concurrent calls.
 98 |     public func executeOnPool(_ encode: (MTLCommandBuffer) throws -> Void) async throws {
 99 |         let queue = await queuePool.next()
    |                                     `- error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
100 |         guard let commandBuffer = queue.makeCommandBuffer() else {
101 |             throw ANNSError.gpuResourceExhausted("Failed to create command buffer from pool queue")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h:21:11: note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 19 |  */
 20 | API_AVAILABLE(macos(10.11), ios(8.0))
 21 | @protocol MTLCommandQueue <NSObject>
    |           `- note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 22 |
 23 | /*! @brief A string to help identify this object */
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 | import os.log
  4 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:17:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 15 |         }
 16 |
 17 |         let pipeline = try await context.pipelineCache.pipeline(for: "random_init")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 18 |
 19 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  2 | import os.log
  3 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:56:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 54 |
 55 |         let kernelName = vectors.isFloat16 ? "compute_initial_distances_f16" : "compute_initial_distances"
 56 |         let pipeline = try await context.pipelineCache.pipeline(for: kernelName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 57 |
 58 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:139:63: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
137 |         }
138 |
139 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
    |                                                               `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
140 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
141 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:141:65: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
139 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
140 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
141 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
    |                                                                 `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
142 |
143 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:247:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
245 |         }
246 |
247 |         let pipeline = try await context.pipelineCache.pipeline(for: "bitonic_sort_neighbors")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
248 |         let threadgroupWidth = degree / 2
249 |         guard threadgroupWidth <= pipeline.maxTotalThreadsPerThreadgroup else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[17/209] Emitting module MetalANNSCore
[18/209] Compiling MetalANNSCore SearchResult.swift
[19/209] Compiling MetalANNSCore SoftDeletion.swift
[20/209] Compiling MetalANNSCore VectorBuffer.swift
[21/209] Compiling MetalANNSCore VectorStorage.swift
[22/209] Compiling MetalANNSCore resource_bundle_accessor.swift
[23/209] Compiling GRDB SchedulingWatchdog.swift
[24/209] Compiling GRDB SerializedDatabase.swift
[25/209] Compiling GRDB Statement.swift
[26/209] Compiling GRDB DatabaseValueConvertible+RawRepresentable.swift
[27/209] Compiling GRDB JSONRequiredEncoder.swift
[28/209] Compiling GRDB Configuration.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:162:24: warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
160 |             guard start < end else { return }
161 |             let rows = end - start
162 |             let dots = dotsScratch + slice * chunkSize
    |                        `- warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
163 |
164 |             context.queryCodes.withUnsafeBufferPointer { queryBuffer in
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:230:13: warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
228 |             }
229 |
230 |             resultsStorage[slice] = heapSortedAscending(heap)
    |             `- warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
231 |         }
232 |
Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 |     public let count: Int
3 |     @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
[29/209] Compiling GRDB Cursor.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:162:24: warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
160 |             guard start < end else { return }
161 |             let rows = end - start
162 |             let dots = dotsScratch + slice * chunkSize
    |                        `- warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
163 |
164 |             context.queryCodes.withUnsafeBufferPointer { queryBuffer in
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:230:13: warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
228 |             }
229 |
230 |             resultsStorage[slice] = heapSortedAscending(heap)
    |             `- warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
231 |         }
232 |
Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 |     public let count: Int
3 |     @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
[30/209] Compiling GRDB Database+SQLCipher.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:162:24: warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
160 |             guard start < end else { return }
161 |             let rows = end - start
162 |             let dots = dotsScratch + slice * chunkSize
    |                        `- warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
163 |
164 |             context.queryCodes.withUnsafeBufferPointer { queryBuffer in
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:230:13: warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
228 |             }
229 |
230 |             resultsStorage[slice] = heapSortedAscending(heap)
    |             `- warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
231 |         }
232 |
Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 |     public let count: Int
3 |     @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
[31/209] Compiling GRDB Database+Schema.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:162:24: warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
160 |             guard start < end else { return }
161 |             let rows = end - start
162 |             let dots = dotsScratch + slice * chunkSize
    |                        `- warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
163 |
164 |             context.queryCodes.withUnsafeBufferPointer { queryBuffer in
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:230:13: warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
228 |             }
229 |
230 |             resultsStorage[slice] = heapSortedAscending(heap)
    |             `- warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
231 |         }
232 |
Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 |     public let count: Int
3 |     @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
[32/209] Compiling GRDB Database+Statements.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:162:24: warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
160 |             guard start < end else { return }
161 |             let rows = end - start
162 |             let dots = dotsScratch + slice * chunkSize
    |                        `- warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
163 |
164 |             context.queryCodes.withUnsafeBufferPointer { queryBuffer in
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:230:13: warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
228 |             }
229 |
230 |             resultsStorage[slice] = heapSortedAscending(heap)
    |             `- warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
231 |         }
232 |
Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 |     public let count: Int
3 |     @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
[33/209] Compiling GRDB Database.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:162:24: warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
160 |             guard start < end else { return }
161 |             let rows = end - start
162 |             let dots = dotsScratch + slice * chunkSize
    |                        `- warning: capture of 'dotsScratch' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
163 |
164 |             context.queryCodes.withUnsafeBufferPointer { queryBuffer in
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/BoundedExactScan.swift:230:13: warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
228 |             }
229 |
230 |             resultsStorage[slice] = heapSortedAscending(heap)
    |             `- warning: capture of 'resultsStorage' with non-sendable type 'UnsafeMutableBufferPointer<[BoundedExactScan.HeapEntry]>' (aka 'UnsafeMutableBufferPointer<Array<(key: Float, id: UInt32)>>') in a '@Sendable' closure
231 |         }
232 |
Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 |     public let count: Int
3 |     @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
[34/209] Compiling GRDB DatabaseBackupProgress.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
[35/209] Compiling GRDB DatabaseCollation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
[36/209] Compiling GRDB DatabaseError.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
[37/209] Compiling GRDB DatabaseFunction.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
[38/209] Compiling GRDB DatabasePool.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
[39/209] Compiling GRDB DatabaseValueConvertible.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/FlatGPUSearch.swift:488:21: warning: '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.
 486 |                 ones.withUnsafeBufferPointer { onesBuffer in
 487 |                     guard let onesBase = onesBuffer.baseAddress else { return }
 488 |                     cblas_sgemv(
     |                     `- warning: '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.
 489 |                         CblasRowMajor,
 490 |                         CblasNoTrans,
[40/209] Compiling GRDB DatabaseWriter.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/FlatGPUSearch.swift:488:21: warning: '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.
 486 |                 ones.withUnsafeBufferPointer { onesBuffer in
 487 |                     guard let onesBase = onesBuffer.baseAddress else { return }
 488 |                     cblas_sgemv(
     |                     `- warning: '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.
 489 |                         CblasRowMajor,
 490 |                         CblasNoTrans,
[41/209] Compiling GRDB DispatchQueueActor.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/FlatGPUSearch.swift:488:21: warning: '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.
 486 |                 ones.withUnsafeBufferPointer { onesBuffer in
 487 |                     guard let onesBase = onesBuffer.baseAddress else { return }
 488 |                     cblas_sgemv(
     |                     `- warning: '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.
 489 |                         CblasRowMajor,
 490 |                         CblasNoTrans,
[42/209] Compiling GRDB FetchRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/FlatGPUSearch.swift:488:21: warning: '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.
 486 |                 ones.withUnsafeBufferPointer { onesBuffer in
 487 |                     guard let onesBase = onesBuffer.baseAddress else { return }
 488 |                     cblas_sgemv(
     |                     `- warning: '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.
 489 |                         CblasRowMajor,
 490 |                         CblasNoTrans,
[43/209] Compiling GRDB Row.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/FlatGPUSearch.swift:488:21: warning: '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.
 486 |                 ones.withUnsafeBufferPointer { onesBuffer in
 487 |                     guard let onesBase = onesBuffer.baseAddress else { return }
 488 |                     cblas_sgemv(
     |                     `- warning: '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.
 489 |                         CblasRowMajor,
 490 |                         CblasNoTrans,
[44/209] Compiling GRDB RowAdapter.swift
[45/209] Compiling GRDB RowDecodingError.swift
[46/209] Compiling GRDB SQL.swift
[47/209] Compiling GRDB SQLInterpolation.swift
[48/209] Compiling GRDB SQLRequest.swift
[49/209] Compiling GRDB DatabasePublishers.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:651:9: warning: '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.
649 |         }
650 |
651 |         cblas_sgemm(
    |         `- warning: '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.
652 |             CblasRowMajor,
653 |             CblasNoTrans,
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:684:33: warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
682 |                 var best = 0
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
    |                                 `- warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
685 |                 let qn = rowNormSq[row]
686 |                 for cluster in 0..<nlist {
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:685:26: warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
685 |                 let qn = rowNormSq[row]
    |                          `- warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
686 |                 for cluster in 0..<nlist {
687 |                     let key = distance(
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:690:36: warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
688 |                         dot: rowScores[cluster],
689 |                         queryNormSq: qn,
690 |                         rowNormSq: centroidNormSq[cluster],
    |                                    `- warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
691 |                         metric: metric
692 |                     )
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:698:17: warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
696 |                     }
697 |                 }
698 |                 assignments[row] = best
    |                 `- warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
699 |             }
700 |         }
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
[50/209] Compiling GRDB DatabaseQueue.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:651:9: warning: '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.
649 |         }
650 |
651 |         cblas_sgemm(
    |         `- warning: '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.
652 |             CblasRowMajor,
653 |             CblasNoTrans,
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:684:33: warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
682 |                 var best = 0
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
    |                                 `- warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
685 |                 let qn = rowNormSq[row]
686 |                 for cluster in 0..<nlist {
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:685:26: warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
685 |                 let qn = rowNormSq[row]
    |                          `- warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
686 |                 for cluster in 0..<nlist {
687 |                     let key = distance(
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:690:36: warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
688 |                         dot: rowScores[cluster],
689 |                         queryNormSq: qn,
690 |                         rowNormSq: centroidNormSq[cluster],
    |                                    `- warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
691 |                         metric: metric
692 |                     )
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:698:17: warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
696 |                     }
697 |                 }
698 |                 assignments[row] = best
    |                 `- warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
699 |             }
700 |         }
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
[51/209] Compiling GRDB DatabaseReader.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:651:9: warning: '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.
649 |         }
650 |
651 |         cblas_sgemm(
    |         `- warning: '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.
652 |             CblasRowMajor,
653 |             CblasNoTrans,
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:684:33: warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
682 |                 var best = 0
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
    |                                 `- warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
685 |                 let qn = rowNormSq[row]
686 |                 for cluster in 0..<nlist {
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:685:26: warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
685 |                 let qn = rowNormSq[row]
    |                          `- warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
686 |                 for cluster in 0..<nlist {
687 |                     let key = distance(
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:690:36: warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
688 |                         dot: rowScores[cluster],
689 |                         queryNormSq: qn,
690 |                         rowNormSq: centroidNormSq[cluster],
    |                                    `- warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
691 |                         metric: metric
692 |                     )
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:698:17: warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
696 |                     }
697 |                 }
698 |                 assignments[row] = best
    |                 `- warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
699 |             }
700 |         }
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
[52/209] Compiling GRDB DatabaseRegion.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:651:9: warning: '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.
649 |         }
650 |
651 |         cblas_sgemm(
    |         `- warning: '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.
652 |             CblasRowMajor,
653 |             CblasNoTrans,
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:684:33: warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
682 |                 var best = 0
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
    |                                 `- warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
685 |                 let qn = rowNormSq[row]
686 |                 for cluster in 0..<nlist {
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:685:26: warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
685 |                 let qn = rowNormSq[row]
    |                          `- warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
686 |                 for cluster in 0..<nlist {
687 |                     let key = distance(
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:690:36: warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
688 |                         dot: rowScores[cluster],
689 |                         queryNormSq: qn,
690 |                         rowNormSq: centroidNormSq[cluster],
    |                                    `- warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
691 |                         metric: metric
692 |                     )
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:698:17: warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
696 |                     }
697 |                 }
698 |                 assignments[row] = best
    |                 `- warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
699 |             }
700 |         }
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
[53/209] Compiling GRDB DatabaseRegionObservation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:651:9: warning: '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.
649 |         }
650 |
651 |         cblas_sgemm(
    |         `- warning: '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.
652 |             CblasRowMajor,
653 |             CblasNoTrans,
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:684:33: warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
682 |                 var best = 0
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
    |                                 `- warning: capture of 'scores' with non-sendable type 'UnsafeMutablePointer<Float>' in a '@Sendable' closure
685 |                 let qn = rowNormSq[row]
686 |                 for cluster in 0..<nlist {
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:685:26: warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
683 |                 var bestKey = Float.greatestFiniteMagnitude
684 |                 let rowScores = scores.advanced(by: row * nlist)
685 |                 let qn = rowNormSq[row]
    |                          `- warning: capture of 'rowNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
686 |                 for cluster in 0..<nlist {
687 |                     let key = distance(
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:690:36: warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
688 |                         dot: rowScores[cluster],
689 |                         queryNormSq: qn,
690 |                         rowNormSq: centroidNormSq[cluster],
    |                                    `- warning: capture of 'centroidNormSq' with non-sendable type 'UnsafePointer<Float>' in a '@Sendable' closure
691 |                         metric: metric
692 |                     )
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IVFFlatSearch.swift:698:17: warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
696 |                     }
697 |                 }
698 |                 assignments[row] = best
    |                 `- warning: capture of 'assignments' with non-sendable type 'UnsafeMutablePointer<Int>' in a '@Sendable' closure
699 |             }
700 |         }
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
BUILD FAILURE 6.1 macosSpm