Build Information
Failed to build MetalANNS, reference main (139604), with Swift 6.1 for macOS (SPM) on 24 Aug 2026 16:46:24 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
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));
/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));
/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));
[182/243] Compiling MetalANNSCore RepairConfiguration.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 {
/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 {
[187/243] Compiling MetalANNSCore AccelerateBackend.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)
[188/243] Compiling MetalANNSCore BatchIncrementalBuilder.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)
[189/243] Compiling MetalANNSCore BeamSearchCPU.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)
[190/243] Compiling MetalANNSCore BinaryVectorBuffer.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)
[191/243] Compiling MetalANNSCore BoundedExactScan.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)
[192/243] Compiling MetalANNSCore BoundedSelection.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)
[193/243] Compiling MetalANNSCore CommandQueuePool.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,
[194/243] Compiling MetalANNSCore ComputeBackend.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,
[195/243] Compiling MetalANNSCore DiskBackedVectorBuffer.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,
[196/243] Compiling MetalANNSCore Errors.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,
[197/243] Compiling MetalANNSCore FlatGPUSearch.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/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 (28.24s)
Computing version for https://github.com/groue/GRDB.swift.git
Computed https://github.com/groue/GRDB.swift.git at 7.11.1 (31.87s)
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 DatabaseBackupProgress.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 DatabaseCollation.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 DatabaseError.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 DatabaseFunction.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 DatabasePool.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] Emitting module MetalANNSCore
[8/209] Compiling MetalANNSCore SearchResult.swift
[9/209] Compiling MetalANNSCore SoftDeletion.swift
[10/209] Compiling MetalANNSCore VectorBuffer.swift
[11/209] Compiling MetalANNSCore VectorStorage.swift
[12/209] Compiling MetalANNSCore resource_bundle_accessor.swift
[13/209] Compiling GRDB DatabasePublishers.swift
[14/209] Compiling GRDB DatabaseQueue.swift
[15/209] Compiling GRDB DatabaseReader.swift
[16/209] Compiling GRDB DatabaseRegion.swift
[17/209] Compiling GRDB DatabaseRegionObservation.swift
[18/209] Compiling GRDB NSNull.swift
[19/209] Compiling GRDB NSNumber.swift
[20/209] Compiling GRDB NSString.swift
[21/209] Compiling GRDB SQLiteDateParser.swift
[22/209] Compiling GRDB URL.swift
[23/209] Compiling GRDB UUID.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));
[24/209] Compiling GRDB DatabaseValueConvertible+Decodable.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));
[25/209] Compiling GRDB DatabaseValueConvertible+Encodable.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));
[26/209] Compiling GRDB DatabaseValueConvertible+RawRepresentable.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));
[27/209] Compiling GRDB JSONRequiredEncoder.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));
[28/209] Compiling GRDB DatabaseDateComponents.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));
[29/209] Compiling GRDB DatabaseValueConvertible+ReferenceConvertible.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));
[30/209] Compiling GRDB Date.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));
[31/209] Compiling GRDB Decimal.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));
[32/209] Compiling GRDB NSData.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));
[33/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)
[34/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)
[35/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)
[36/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)
[37/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)
[38/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)
[39/209] Compiling GRDB WALSnapshotTransaction.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 Database+Dump.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 DatabaseReader+dump.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 DumpFormat.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 DebugDumpFormat.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 Optional.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 {
[45/209] Compiling GRDB StandardLibrary.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 {
[46/209] Compiling GRDB TransactionClock.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 {
[47/209] Compiling GRDB TransactionObserver.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 {
[48/209] Compiling GRDB WALSnapshot.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 {
[49/209] Compiling GRDB DatabaseSchemaCache.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 StatementAuthorizer.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 StatementColumnConvertible.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 CGFloat.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 Data.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