The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build DL4S, reference 0.4.1 (1f90f8), with Swift 6.0 for Linux on 2 Nov 2024 00:56:17 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

    |                 |- note: annotate 'intervalFormatter' with '@MainActor' if property should only be accessed from the main actor
    |                 `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
184 |     let totalSeconds = Int(interval)
185 |
/host/spi-builder-workspace/Sources/DL4S/Util.swift:251:37: warning: generic parameter 'Element' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
248 |
249 |
250 | public struct Progress<Element>: Sequence {
    |                        `- note: 'Element' previously declared here
251 |     private struct ProgressIterator<Element>: IteratorProtocol {
    |                                     `- warning: generic parameter 'Element' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
252 |         var baseIterator: AnyIterator<Element>
253 |         let totalUnitCount: Int
/host/spi-builder-workspace/Sources/DL4S/Util.swift:240:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
238 |         let empty = String(repeating: " ", count: 30 - (currentUnitCount * 30 / totalUnitCount))
239 |         print("\r\u{1b}[K\(label) [\(filled)\(empty)] (\(currentUnitCount)/\(totalUnitCount) - \(remainingString)) \(formatUserInfo(userInfo))", terminator: "")
240 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
241 |     }
242 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
/host/spi-builder-workspace/Sources/DL4S/Util.swift:278:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
276 |
277 |             Swift.print("\r\033[K\(label)[\(filled)\(empty)] \(userInfo)", terminator: "")
278 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
279 |         }
280 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
[11/81] Compiling DL4S Tensor.swift
/host/spi-builder-workspace/Sources/DL4S/Util.swift:93:1: warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 91 | }
 92 |
 93 | extension Slice: Equatable where Element: Hashable {
    | |- warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 94 |     public static func == (lhs: Slice<Base>, rhs: Slice<Base>) -> Bool {
 95 |         return lhs.count == rhs.count && !zip(lhs, rhs).map(==).contains(false)
/host/spi-builder-workspace/Sources/DL4S/Util.swift:99:1: warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 97 | }
 98 |
 99 | extension Slice: Hashable where Element: Hashable {
    | |- warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
100 |     public func hash(into hasher: inout Hasher) {
101 |         for element in self {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/DL4S/Util.swift:183:17: warning: let 'intervalFormatter' is not concurrency-safe because non-'Sendable' type '(TimeInterval) -> String' (aka '(Double) -> String') may have shared mutable state; this is an error in the Swift 6 language mode
181 |
182 |
183 | fileprivate let intervalFormatter: (TimeInterval) -> String = { interval in
    |                 |- warning: let 'intervalFormatter' is not concurrency-safe because non-'Sendable' type '(TimeInterval) -> String' (aka '(Double) -> String') may have shared mutable state; this is an error in the Swift 6 language mode
    |                 |- note: annotate 'intervalFormatter' with '@MainActor' if property should only be accessed from the main actor
    |                 `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
184 |     let totalSeconds = Int(interval)
185 |
/host/spi-builder-workspace/Sources/DL4S/Util.swift:251:37: warning: generic parameter 'Element' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
248 |
249 |
250 | public struct Progress<Element>: Sequence {
    |                        `- note: 'Element' previously declared here
251 |     private struct ProgressIterator<Element>: IteratorProtocol {
    |                                     `- warning: generic parameter 'Element' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
252 |         var baseIterator: AnyIterator<Element>
253 |         let totalUnitCount: Int
/host/spi-builder-workspace/Sources/DL4S/Util.swift:240:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
238 |         let empty = String(repeating: " ", count: 30 - (currentUnitCount * 30 / totalUnitCount))
239 |         print("\r\u{1b}[K\(label) [\(filled)\(empty)] (\(currentUnitCount)/\(totalUnitCount) - \(remainingString)) \(formatUserInfo(userInfo))", terminator: "")
240 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
241 |     }
242 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
/host/spi-builder-workspace/Sources/DL4S/Util.swift:278:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
276 |
277 |             Swift.print("\r\033[K\(label)[\(filled)\(empty)] \(userInfo)", terminator: "")
278 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
279 |         }
280 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
[12/81] Compiling DL4S TensorExt.swift
/host/spi-builder-workspace/Sources/DL4S/Util.swift:93:1: warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 91 | }
 92 |
 93 | extension Slice: Equatable where Element: Hashable {
    | |- warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 94 |     public static func == (lhs: Slice<Base>, rhs: Slice<Base>) -> Bool {
 95 |         return lhs.count == rhs.count && !zip(lhs, rhs).map(==).contains(false)
/host/spi-builder-workspace/Sources/DL4S/Util.swift:99:1: warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 97 | }
 98 |
 99 | extension Slice: Hashable where Element: Hashable {
    | |- warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
100 |     public func hash(into hasher: inout Hasher) {
101 |         for element in self {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/DL4S/Util.swift:183:17: warning: let 'intervalFormatter' is not concurrency-safe because non-'Sendable' type '(TimeInterval) -> String' (aka '(Double) -> String') may have shared mutable state; this is an error in the Swift 6 language mode
181 |
182 |
183 | fileprivate let intervalFormatter: (TimeInterval) -> String = { interval in
    |                 |- warning: let 'intervalFormatter' is not concurrency-safe because non-'Sendable' type '(TimeInterval) -> String' (aka '(Double) -> String') may have shared mutable state; this is an error in the Swift 6 language mode
    |                 |- note: annotate 'intervalFormatter' with '@MainActor' if property should only be accessed from the main actor
    |                 `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
184 |     let totalSeconds = Int(interval)
185 |
/host/spi-builder-workspace/Sources/DL4S/Util.swift:251:37: warning: generic parameter 'Element' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
248 |
249 |
250 | public struct Progress<Element>: Sequence {
    |                        `- note: 'Element' previously declared here
251 |     private struct ProgressIterator<Element>: IteratorProtocol {
    |                                     `- warning: generic parameter 'Element' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
252 |         var baseIterator: AnyIterator<Element>
253 |         let totalUnitCount: Int
/host/spi-builder-workspace/Sources/DL4S/Util.swift:240:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
238 |         let empty = String(repeating: " ", count: 30 - (currentUnitCount * 30 / totalUnitCount))
239 |         print("\r\u{1b}[K\(label) [\(filled)\(empty)] (\(currentUnitCount)/\(totalUnitCount) - \(remainingString)) \(formatUserInfo(userInfo))", terminator: "")
240 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
241 |     }
242 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
/host/spi-builder-workspace/Sources/DL4S/Util.swift:278:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
276 |
277 |             Swift.print("\r\033[K\(label)[\(filled)\(empty)] \(userInfo)", terminator: "")
278 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
279 |         }
280 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
[13/81] Compiling DL4S Util.swift
/host/spi-builder-workspace/Sources/DL4S/Util.swift:93:1: warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 91 | }
 92 |
 93 | extension Slice: Equatable where Element: Hashable {
    | |- warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 94 |     public static func == (lhs: Slice<Base>, rhs: Slice<Base>) -> Bool {
 95 |         return lhs.count == rhs.count && !zip(lhs, rhs).map(==).contains(false)
/host/spi-builder-workspace/Sources/DL4S/Util.swift:99:1: warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 97 | }
 98 |
 99 | extension Slice: Hashable where Element: Hashable {
    | |- warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
100 |     public func hash(into hasher: inout Hasher) {
101 |         for element in self {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/DL4S/Util.swift:183:17: warning: let 'intervalFormatter' is not concurrency-safe because non-'Sendable' type '(TimeInterval) -> String' (aka '(Double) -> String') may have shared mutable state; this is an error in the Swift 6 language mode
181 |
182 |
183 | fileprivate let intervalFormatter: (TimeInterval) -> String = { interval in
    |                 |- warning: let 'intervalFormatter' is not concurrency-safe because non-'Sendable' type '(TimeInterval) -> String' (aka '(Double) -> String') may have shared mutable state; this is an error in the Swift 6 language mode
    |                 |- note: annotate 'intervalFormatter' with '@MainActor' if property should only be accessed from the main actor
    |                 `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
184 |     let totalSeconds = Int(interval)
185 |
/host/spi-builder-workspace/Sources/DL4S/Util.swift:251:37: warning: generic parameter 'Element' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
248 |
249 |
250 | public struct Progress<Element>: Sequence {
    |                        `- note: 'Element' previously declared here
251 |     private struct ProgressIterator<Element>: IteratorProtocol {
    |                                     `- warning: generic parameter 'Element' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
252 |         var baseIterator: AnyIterator<Element>
253 |         let totalUnitCount: Int
/host/spi-builder-workspace/Sources/DL4S/Util.swift:240:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
238 |         let empty = String(repeating: " ", count: 30 - (currentUnitCount * 30 / totalUnitCount))
239 |         print("\r\u{1b}[K\(label) [\(filled)\(empty)] (\(currentUnitCount)/\(totalUnitCount) - \(remainingString)) \(formatUserInfo(userInfo))", terminator: "")
240 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
241 |     }
242 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
/host/spi-builder-workspace/Sources/DL4S/Util.swift:278:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
276 |
277 |             Swift.print("\r\033[K\(label)[\(filled)\(empty)] \(userInfo)", terminator: "")
278 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
279 |         }
280 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
[14/81] Compiling DL4S Assertions.swift
/host/spi-builder-workspace/Sources/DL4S/Assertions.swift:29:1: warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
27 |
28 |
29 | extension FileHandle: TextOutputStream {
   | |- warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
30 |     public func write(_ string: String) {
31 |         self.write(string.data(using: .utf8)!)
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:38:16: warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |     public typealias Device = CPU
 37 |
 38 |     static var traceAllocations: Bool = false {
    |                |- warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'traceAllocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'traceAllocations' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |         didSet {
 40 |             allocations.removeAll()
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:43:24: warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 41 |         }
 42 |     }
 43 |     private static var allocations: [UnsafeMutableRawBufferPointer: [String]] = [:]
    |                        |- warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'allocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'allocations' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 |     private static let sema = DispatchSemaphore(value: 1)
 45 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:85:44: warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 83 |             DispatchQueue.global().asyncAfter(deadline: .now() + .seconds(5)) {
 84 |                 sema.wait()
 85 |                 if let trace = allocations[buffer] {
    |                                            `- warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 86 |                     print("[ALLOC TRACE]: buffer of size \(capacity) not freed after 3 seconds.")
 87 |                     print("[ALLOC TRACE] [begin callstack]")
Swift.UnsafeMutableRawBufferPointer:1:23: note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawBufferPointer {
  |                       `- note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
2 |     @inlinable public init(start: UnsafeMutableRawPointer?, count: Int)
3 | }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:110:13: warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 |         }
109 |         DispatchQueue.global().async {
110 |             buffer.memory.deallocate()
    |             `- warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |         }
112 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/Buffer.swift:30:15: note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 28 |
 29 | /// A buffer that holds a region of memory with a given length
 30 | public struct Buffer<Element, Device: DeviceType>: Hashable {
    |               `- note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 31 |     let memory: Device.Memory.RawBuffer
 32 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:933:41: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 931 |             }
 932 |
 933 |             dstMem.advanced(by: dstIdx).assign(from: sourceMem.advanced(by: srcIdx), count: copyCount)
     |                                         |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                         `- note: use 'update(from:count:)' instead
 934 |         }
 935 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1018:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1016 |                 }
1017 |
1018 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                          `- note: use 'update(from:count:)' instead
1019 |             }
1020 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1098:50: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1096 |             let dstIdx = count - srcIdx - 1
1097 |
1098 |             dstPtr.advanced(by: dstIdx * stride).assign(from: srcPtr.advanced(by: srcIdx * stride), count: stride)
     |                                                  |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                                  `- note: use 'update(from:count:)' instead
1099 |         }
1100 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:461:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
459 |         #else
460 |         for i in 0 ..< count {
461 |             dst[i] = exp(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
462 |         }
463 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:475:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
473 |         #else
474 |         for i in 0 ..< count {
475 |             dst[i] = log(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
476 |         }
477 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:489:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
487 |         #else
488 |         for i in 0 ..< count {
489 |             dst[i] = tanh(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
490 |         }
491 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:503:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
501 |         #else
502 |         for i in 0 ..< count {
503 |             dst[i] = sqrt(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
504 |         }
505 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:525:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
523 |         #else
524 |         for i in 0 ..< count {
525 |             dst[i] = sin(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
526 |         }
527 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:539:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
537 |         #else
538 |         for i in 0 ..< count {
539 |             dst[i] = cos(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
540 |         }
541 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:553:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
551 |         #else
552 |         for i in 0 ..< count {
553 |             dst[i] = tan(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
554 |         }
555 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | #if os(Linux)
[15/81] Compiling DL4S Buffer.swift
/host/spi-builder-workspace/Sources/DL4S/Assertions.swift:29:1: warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
27 |
28 |
29 | extension FileHandle: TextOutputStream {
   | |- warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
30 |     public func write(_ string: String) {
31 |         self.write(string.data(using: .utf8)!)
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:38:16: warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |     public typealias Device = CPU
 37 |
 38 |     static var traceAllocations: Bool = false {
    |                |- warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'traceAllocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'traceAllocations' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |         didSet {
 40 |             allocations.removeAll()
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:43:24: warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 41 |         }
 42 |     }
 43 |     private static var allocations: [UnsafeMutableRawBufferPointer: [String]] = [:]
    |                        |- warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'allocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'allocations' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 |     private static let sema = DispatchSemaphore(value: 1)
 45 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:85:44: warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 83 |             DispatchQueue.global().asyncAfter(deadline: .now() + .seconds(5)) {
 84 |                 sema.wait()
 85 |                 if let trace = allocations[buffer] {
    |                                            `- warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 86 |                     print("[ALLOC TRACE]: buffer of size \(capacity) not freed after 3 seconds.")
 87 |                     print("[ALLOC TRACE] [begin callstack]")
Swift.UnsafeMutableRawBufferPointer:1:23: note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawBufferPointer {
  |                       `- note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
2 |     @inlinable public init(start: UnsafeMutableRawPointer?, count: Int)
3 | }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:110:13: warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 |         }
109 |         DispatchQueue.global().async {
110 |             buffer.memory.deallocate()
    |             `- warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |         }
112 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/Buffer.swift:30:15: note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 28 |
 29 | /// A buffer that holds a region of memory with a given length
 30 | public struct Buffer<Element, Device: DeviceType>: Hashable {
    |               `- note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 31 |     let memory: Device.Memory.RawBuffer
 32 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:933:41: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 931 |             }
 932 |
 933 |             dstMem.advanced(by: dstIdx).assign(from: sourceMem.advanced(by: srcIdx), count: copyCount)
     |                                         |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                         `- note: use 'update(from:count:)' instead
 934 |         }
 935 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1018:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1016 |                 }
1017 |
1018 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                          `- note: use 'update(from:count:)' instead
1019 |             }
1020 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1098:50: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1096 |             let dstIdx = count - srcIdx - 1
1097 |
1098 |             dstPtr.advanced(by: dstIdx * stride).assign(from: srcPtr.advanced(by: srcIdx * stride), count: stride)
     |                                                  |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                                  `- note: use 'update(from:count:)' instead
1099 |         }
1100 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:461:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
459 |         #else
460 |         for i in 0 ..< count {
461 |             dst[i] = exp(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
462 |         }
463 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:475:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
473 |         #else
474 |         for i in 0 ..< count {
475 |             dst[i] = log(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
476 |         }
477 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:489:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
487 |         #else
488 |         for i in 0 ..< count {
489 |             dst[i] = tanh(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
490 |         }
491 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:503:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
501 |         #else
502 |         for i in 0 ..< count {
503 |             dst[i] = sqrt(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
504 |         }
505 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:525:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
523 |         #else
524 |         for i in 0 ..< count {
525 |             dst[i] = sin(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
526 |         }
527 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:539:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
537 |         #else
538 |         for i in 0 ..< count {
539 |             dst[i] = cos(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
540 |         }
541 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:553:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
551 |         #else
552 |         for i in 0 ..< count {
553 |             dst[i] = tan(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
554 |         }
555 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | #if os(Linux)
[16/81] Compiling DL4S CPU.swift
/host/spi-builder-workspace/Sources/DL4S/Assertions.swift:29:1: warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
27 |
28 |
29 | extension FileHandle: TextOutputStream {
   | |- warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
30 |     public func write(_ string: String) {
31 |         self.write(string.data(using: .utf8)!)
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:38:16: warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |     public typealias Device = CPU
 37 |
 38 |     static var traceAllocations: Bool = false {
    |                |- warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'traceAllocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'traceAllocations' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |         didSet {
 40 |             allocations.removeAll()
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:43:24: warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 41 |         }
 42 |     }
 43 |     private static var allocations: [UnsafeMutableRawBufferPointer: [String]] = [:]
    |                        |- warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'allocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'allocations' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 |     private static let sema = DispatchSemaphore(value: 1)
 45 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:85:44: warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 83 |             DispatchQueue.global().asyncAfter(deadline: .now() + .seconds(5)) {
 84 |                 sema.wait()
 85 |                 if let trace = allocations[buffer] {
    |                                            `- warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 86 |                     print("[ALLOC TRACE]: buffer of size \(capacity) not freed after 3 seconds.")
 87 |                     print("[ALLOC TRACE] [begin callstack]")
Swift.UnsafeMutableRawBufferPointer:1:23: note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawBufferPointer {
  |                       `- note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
2 |     @inlinable public init(start: UnsafeMutableRawPointer?, count: Int)
3 | }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:110:13: warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 |         }
109 |         DispatchQueue.global().async {
110 |             buffer.memory.deallocate()
    |             `- warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |         }
112 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/Buffer.swift:30:15: note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 28 |
 29 | /// A buffer that holds a region of memory with a given length
 30 | public struct Buffer<Element, Device: DeviceType>: Hashable {
    |               `- note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 31 |     let memory: Device.Memory.RawBuffer
 32 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:933:41: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 931 |             }
 932 |
 933 |             dstMem.advanced(by: dstIdx).assign(from: sourceMem.advanced(by: srcIdx), count: copyCount)
     |                                         |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                         `- note: use 'update(from:count:)' instead
 934 |         }
 935 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1018:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1016 |                 }
1017 |
1018 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                          `- note: use 'update(from:count:)' instead
1019 |             }
1020 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1098:50: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1096 |             let dstIdx = count - srcIdx - 1
1097 |
1098 |             dstPtr.advanced(by: dstIdx * stride).assign(from: srcPtr.advanced(by: srcIdx * stride), count: stride)
     |                                                  |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                                  `- note: use 'update(from:count:)' instead
1099 |         }
1100 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:461:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
459 |         #else
460 |         for i in 0 ..< count {
461 |             dst[i] = exp(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
462 |         }
463 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:475:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
473 |         #else
474 |         for i in 0 ..< count {
475 |             dst[i] = log(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
476 |         }
477 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:489:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
487 |         #else
488 |         for i in 0 ..< count {
489 |             dst[i] = tanh(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
490 |         }
491 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:503:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
501 |         #else
502 |         for i in 0 ..< count {
503 |             dst[i] = sqrt(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
504 |         }
505 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:525:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
523 |         #else
524 |         for i in 0 ..< count {
525 |             dst[i] = sin(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
526 |         }
527 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:539:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
537 |         #else
538 |         for i in 0 ..< count {
539 |             dst[i] = cos(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
540 |         }
541 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:553:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
551 |         #else
552 |         for i in 0 ..< count {
553 |             dst[i] = tan(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
554 |         }
555 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | #if os(Linux)
[17/81] Compiling DL4S CPUEngine.swift
/host/spi-builder-workspace/Sources/DL4S/Assertions.swift:29:1: warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
27 |
28 |
29 | extension FileHandle: TextOutputStream {
   | |- warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
30 |     public func write(_ string: String) {
31 |         self.write(string.data(using: .utf8)!)
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:38:16: warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |     public typealias Device = CPU
 37 |
 38 |     static var traceAllocations: Bool = false {
    |                |- warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'traceAllocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'traceAllocations' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |         didSet {
 40 |             allocations.removeAll()
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:43:24: warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 41 |         }
 42 |     }
 43 |     private static var allocations: [UnsafeMutableRawBufferPointer: [String]] = [:]
    |                        |- warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'allocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'allocations' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 |     private static let sema = DispatchSemaphore(value: 1)
 45 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:85:44: warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 83 |             DispatchQueue.global().asyncAfter(deadline: .now() + .seconds(5)) {
 84 |                 sema.wait()
 85 |                 if let trace = allocations[buffer] {
    |                                            `- warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 86 |                     print("[ALLOC TRACE]: buffer of size \(capacity) not freed after 3 seconds.")
 87 |                     print("[ALLOC TRACE] [begin callstack]")
Swift.UnsafeMutableRawBufferPointer:1:23: note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawBufferPointer {
  |                       `- note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
2 |     @inlinable public init(start: UnsafeMutableRawPointer?, count: Int)
3 | }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:110:13: warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 |         }
109 |         DispatchQueue.global().async {
110 |             buffer.memory.deallocate()
    |             `- warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |         }
112 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/Buffer.swift:30:15: note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 28 |
 29 | /// A buffer that holds a region of memory with a given length
 30 | public struct Buffer<Element, Device: DeviceType>: Hashable {
    |               `- note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 31 |     let memory: Device.Memory.RawBuffer
 32 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:933:41: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 931 |             }
 932 |
 933 |             dstMem.advanced(by: dstIdx).assign(from: sourceMem.advanced(by: srcIdx), count: copyCount)
     |                                         |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                         `- note: use 'update(from:count:)' instead
 934 |         }
 935 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1018:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1016 |                 }
1017 |
1018 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                          `- note: use 'update(from:count:)' instead
1019 |             }
1020 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1098:50: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1096 |             let dstIdx = count - srcIdx - 1
1097 |
1098 |             dstPtr.advanced(by: dstIdx * stride).assign(from: srcPtr.advanced(by: srcIdx * stride), count: stride)
     |                                                  |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                                  `- note: use 'update(from:count:)' instead
1099 |         }
1100 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:461:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
459 |         #else
460 |         for i in 0 ..< count {
461 |             dst[i] = exp(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
462 |         }
463 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:475:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
473 |         #else
474 |         for i in 0 ..< count {
475 |             dst[i] = log(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
476 |         }
477 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:489:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
487 |         #else
488 |         for i in 0 ..< count {
489 |             dst[i] = tanh(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
490 |         }
491 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:503:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
501 |         #else
502 |         for i in 0 ..< count {
503 |             dst[i] = sqrt(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
504 |         }
505 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:525:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
523 |         #else
524 |         for i in 0 ..< count {
525 |             dst[i] = sin(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
526 |         }
527 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:539:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
537 |         #else
538 |         for i in 0 ..< count {
539 |             dst[i] = cos(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
540 |         }
541 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:553:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
551 |         #else
552 |         for i in 0 ..< count {
553 |             dst[i] = tan(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
554 |         }
555 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | #if os(Linux)
[18/81] Compiling DL4S CPUDouble.swift
/host/spi-builder-workspace/Sources/DL4S/Assertions.swift:29:1: warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
27 |
28 |
29 | extension FileHandle: TextOutputStream {
   | |- warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
30 |     public func write(_ string: String) {
31 |         self.write(string.data(using: .utf8)!)
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:38:16: warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |     public typealias Device = CPU
 37 |
 38 |     static var traceAllocations: Bool = false {
    |                |- warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'traceAllocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'traceAllocations' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |         didSet {
 40 |             allocations.removeAll()
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:43:24: warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 41 |         }
 42 |     }
 43 |     private static var allocations: [UnsafeMutableRawBufferPointer: [String]] = [:]
    |                        |- warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'allocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'allocations' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 |     private static let sema = DispatchSemaphore(value: 1)
 45 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:85:44: warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 83 |             DispatchQueue.global().asyncAfter(deadline: .now() + .seconds(5)) {
 84 |                 sema.wait()
 85 |                 if let trace = allocations[buffer] {
    |                                            `- warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 86 |                     print("[ALLOC TRACE]: buffer of size \(capacity) not freed after 3 seconds.")
 87 |                     print("[ALLOC TRACE] [begin callstack]")
Swift.UnsafeMutableRawBufferPointer:1:23: note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawBufferPointer {
  |                       `- note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
2 |     @inlinable public init(start: UnsafeMutableRawPointer?, count: Int)
3 | }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:110:13: warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 |         }
109 |         DispatchQueue.global().async {
110 |             buffer.memory.deallocate()
    |             `- warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |         }
112 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/Buffer.swift:30:15: note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 28 |
 29 | /// A buffer that holds a region of memory with a given length
 30 | public struct Buffer<Element, Device: DeviceType>: Hashable {
    |               `- note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 31 |     let memory: Device.Memory.RawBuffer
 32 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:933:41: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 931 |             }
 932 |
 933 |             dstMem.advanced(by: dstIdx).assign(from: sourceMem.advanced(by: srcIdx), count: copyCount)
     |                                         |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                         `- note: use 'update(from:count:)' instead
 934 |         }
 935 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1018:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1016 |                 }
1017 |
1018 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                          `- note: use 'update(from:count:)' instead
1019 |             }
1020 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1098:50: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1096 |             let dstIdx = count - srcIdx - 1
1097 |
1098 |             dstPtr.advanced(by: dstIdx * stride).assign(from: srcPtr.advanced(by: srcIdx * stride), count: stride)
     |                                                  |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                                  `- note: use 'update(from:count:)' instead
1099 |         }
1100 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:461:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
459 |         #else
460 |         for i in 0 ..< count {
461 |             dst[i] = exp(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
462 |         }
463 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:475:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
473 |         #else
474 |         for i in 0 ..< count {
475 |             dst[i] = log(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
476 |         }
477 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:489:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
487 |         #else
488 |         for i in 0 ..< count {
489 |             dst[i] = tanh(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
490 |         }
491 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:503:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
501 |         #else
502 |         for i in 0 ..< count {
503 |             dst[i] = sqrt(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
504 |         }
505 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:525:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
523 |         #else
524 |         for i in 0 ..< count {
525 |             dst[i] = sin(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
526 |         }
527 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:539:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
537 |         #else
538 |         for i in 0 ..< count {
539 |             dst[i] = cos(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
540 |         }
541 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:553:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
551 |         #else
552 |         for i in 0 ..< count {
553 |             dst[i] = tan(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
554 |         }
555 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | #if os(Linux)
[19/81] Compiling DL4S CPUFloat.swift
/host/spi-builder-workspace/Sources/DL4S/Assertions.swift:29:1: warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
27 |
28 |
29 | extension FileHandle: TextOutputStream {
   | |- warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
30 |     public func write(_ string: String) {
31 |         self.write(string.data(using: .utf8)!)
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:38:16: warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |     public typealias Device = CPU
 37 |
 38 |     static var traceAllocations: Bool = false {
    |                |- warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'traceAllocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'traceAllocations' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |         didSet {
 40 |             allocations.removeAll()
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:43:24: warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 41 |         }
 42 |     }
 43 |     private static var allocations: [UnsafeMutableRawBufferPointer: [String]] = [:]
    |                        |- warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'allocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'allocations' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 |     private static let sema = DispatchSemaphore(value: 1)
 45 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:85:44: warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 83 |             DispatchQueue.global().asyncAfter(deadline: .now() + .seconds(5)) {
 84 |                 sema.wait()
 85 |                 if let trace = allocations[buffer] {
    |                                            `- warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 86 |                     print("[ALLOC TRACE]: buffer of size \(capacity) not freed after 3 seconds.")
 87 |                     print("[ALLOC TRACE] [begin callstack]")
Swift.UnsafeMutableRawBufferPointer:1:23: note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawBufferPointer {
  |                       `- note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
2 |     @inlinable public init(start: UnsafeMutableRawPointer?, count: Int)
3 | }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:110:13: warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 |         }
109 |         DispatchQueue.global().async {
110 |             buffer.memory.deallocate()
    |             `- warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |         }
112 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/Buffer.swift:30:15: note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 28 |
 29 | /// A buffer that holds a region of memory with a given length
 30 | public struct Buffer<Element, Device: DeviceType>: Hashable {
    |               `- note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 31 |     let memory: Device.Memory.RawBuffer
 32 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:933:41: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 931 |             }
 932 |
 933 |             dstMem.advanced(by: dstIdx).assign(from: sourceMem.advanced(by: srcIdx), count: copyCount)
     |                                         |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                         `- note: use 'update(from:count:)' instead
 934 |         }
 935 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1018:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1016 |                 }
1017 |
1018 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                          `- note: use 'update(from:count:)' instead
1019 |             }
1020 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1098:50: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1096 |             let dstIdx = count - srcIdx - 1
1097 |
1098 |             dstPtr.advanced(by: dstIdx * stride).assign(from: srcPtr.advanced(by: srcIdx * stride), count: stride)
     |                                                  |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                                  `- note: use 'update(from:count:)' instead
1099 |         }
1100 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:461:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
459 |         #else
460 |         for i in 0 ..< count {
461 |             dst[i] = exp(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
462 |         }
463 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:475:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
473 |         #else
474 |         for i in 0 ..< count {
475 |             dst[i] = log(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
476 |         }
477 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:489:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
487 |         #else
488 |         for i in 0 ..< count {
489 |             dst[i] = tanh(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
490 |         }
491 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:503:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
501 |         #else
502 |         for i in 0 ..< count {
503 |             dst[i] = sqrt(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
504 |         }
505 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:525:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
523 |         #else
524 |         for i in 0 ..< count {
525 |             dst[i] = sin(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
526 |         }
527 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:539:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
537 |         #else
538 |         for i in 0 ..< count {
539 |             dst[i] = cos(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
540 |         }
541 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:553:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
551 |         #else
552 |         for i in 0 ..< count {
553 |             dst[i] = tan(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
554 |         }
555 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | #if os(Linux)
[20/81] Compiling DL4S CPUGeneric.swift
/host/spi-builder-workspace/Sources/DL4S/Assertions.swift:29:1: warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
27 |
28 |
29 | extension FileHandle: TextOutputStream {
   | |- warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
30 |     public func write(_ string: String) {
31 |         self.write(string.data(using: .utf8)!)
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:38:16: warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |     public typealias Device = CPU
 37 |
 38 |     static var traceAllocations: Bool = false {
    |                |- warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'traceAllocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'traceAllocations' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |         didSet {
 40 |             allocations.removeAll()
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:43:24: warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 41 |         }
 42 |     }
 43 |     private static var allocations: [UnsafeMutableRawBufferPointer: [String]] = [:]
    |                        |- warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'allocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'allocations' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 |     private static let sema = DispatchSemaphore(value: 1)
 45 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:85:44: warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 83 |             DispatchQueue.global().asyncAfter(deadline: .now() + .seconds(5)) {
 84 |                 sema.wait()
 85 |                 if let trace = allocations[buffer] {
    |                                            `- warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 86 |                     print("[ALLOC TRACE]: buffer of size \(capacity) not freed after 3 seconds.")
 87 |                     print("[ALLOC TRACE] [begin callstack]")
Swift.UnsafeMutableRawBufferPointer:1:23: note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawBufferPointer {
  |                       `- note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
2 |     @inlinable public init(start: UnsafeMutableRawPointer?, count: Int)
3 | }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:110:13: warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 |         }
109 |         DispatchQueue.global().async {
110 |             buffer.memory.deallocate()
    |             `- warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |         }
112 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/Buffer.swift:30:15: note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 28 |
 29 | /// A buffer that holds a region of memory with a given length
 30 | public struct Buffer<Element, Device: DeviceType>: Hashable {
    |               `- note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 31 |     let memory: Device.Memory.RawBuffer
 32 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:933:41: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 931 |             }
 932 |
 933 |             dstMem.advanced(by: dstIdx).assign(from: sourceMem.advanced(by: srcIdx), count: copyCount)
     |                                         |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                         `- note: use 'update(from:count:)' instead
 934 |         }
 935 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1018:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1016 |                 }
1017 |
1018 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                          `- note: use 'update(from:count:)' instead
1019 |             }
1020 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1098:50: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1096 |             let dstIdx = count - srcIdx - 1
1097 |
1098 |             dstPtr.advanced(by: dstIdx * stride).assign(from: srcPtr.advanced(by: srcIdx * stride), count: stride)
     |                                                  |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                                  `- note: use 'update(from:count:)' instead
1099 |         }
1100 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:461:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
459 |         #else
460 |         for i in 0 ..< count {
461 |             dst[i] = exp(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
462 |         }
463 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:475:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
473 |         #else
474 |         for i in 0 ..< count {
475 |             dst[i] = log(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
476 |         }
477 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:489:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
487 |         #else
488 |         for i in 0 ..< count {
489 |             dst[i] = tanh(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
490 |         }
491 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:503:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
501 |         #else
502 |         for i in 0 ..< count {
503 |             dst[i] = sqrt(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
504 |         }
505 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:525:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
523 |         #else
524 |         for i in 0 ..< count {
525 |             dst[i] = sin(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
526 |         }
527 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:539:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
537 |         #else
538 |         for i in 0 ..< count {
539 |             dst[i] = cos(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
540 |         }
541 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:553:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
551 |         #else
552 |         for i in 0 ..< count {
553 |             dst[i] = tan(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
554 |         }
555 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | #if os(Linux)
[21/81] Compiling DL4S CPUInt32.swift
/host/spi-builder-workspace/Sources/DL4S/Assertions.swift:29:1: warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
27 |
28 |
29 | extension FileHandle: TextOutputStream {
   | |- warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
30 |     public func write(_ string: String) {
31 |         self.write(string.data(using: .utf8)!)
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:38:16: warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |     public typealias Device = CPU
 37 |
 38 |     static var traceAllocations: Bool = false {
    |                |- warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'traceAllocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'traceAllocations' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |         didSet {
 40 |             allocations.removeAll()
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:43:24: warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 41 |         }
 42 |     }
 43 |     private static var allocations: [UnsafeMutableRawBufferPointer: [String]] = [:]
    |                        |- warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'allocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'allocations' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 |     private static let sema = DispatchSemaphore(value: 1)
 45 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:85:44: warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 83 |             DispatchQueue.global().asyncAfter(deadline: .now() + .seconds(5)) {
 84 |                 sema.wait()
 85 |                 if let trace = allocations[buffer] {
    |                                            `- warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 86 |                     print("[ALLOC TRACE]: buffer of size \(capacity) not freed after 3 seconds.")
 87 |                     print("[ALLOC TRACE] [begin callstack]")
Swift.UnsafeMutableRawBufferPointer:1:23: note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawBufferPointer {
  |                       `- note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
2 |     @inlinable public init(start: UnsafeMutableRawPointer?, count: Int)
3 | }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:110:13: warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 |         }
109 |         DispatchQueue.global().async {
110 |             buffer.memory.deallocate()
    |             `- warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |         }
112 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/Buffer.swift:30:15: note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 28 |
 29 | /// A buffer that holds a region of memory with a given length
 30 | public struct Buffer<Element, Device: DeviceType>: Hashable {
    |               `- note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 31 |     let memory: Device.Memory.RawBuffer
 32 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:933:41: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 931 |             }
 932 |
 933 |             dstMem.advanced(by: dstIdx).assign(from: sourceMem.advanced(by: srcIdx), count: copyCount)
     |                                         |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                         `- note: use 'update(from:count:)' instead
 934 |         }
 935 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1018:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1016 |                 }
1017 |
1018 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                          `- note: use 'update(from:count:)' instead
1019 |             }
1020 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1098:50: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1096 |             let dstIdx = count - srcIdx - 1
1097 |
1098 |             dstPtr.advanced(by: dstIdx * stride).assign(from: srcPtr.advanced(by: srcIdx * stride), count: stride)
     |                                                  |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                                  `- note: use 'update(from:count:)' instead
1099 |         }
1100 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:461:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
459 |         #else
460 |         for i in 0 ..< count {
461 |             dst[i] = exp(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
462 |         }
463 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:475:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
473 |         #else
474 |         for i in 0 ..< count {
475 |             dst[i] = log(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
476 |         }
477 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:489:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
487 |         #else
488 |         for i in 0 ..< count {
489 |             dst[i] = tanh(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
490 |         }
491 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:503:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
501 |         #else
502 |         for i in 0 ..< count {
503 |             dst[i] = sqrt(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
504 |         }
505 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:525:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
523 |         #else
524 |         for i in 0 ..< count {
525 |             dst[i] = sin(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
526 |         }
527 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:539:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
537 |         #else
538 |         for i in 0 ..< count {
539 |             dst[i] = cos(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
540 |         }
541 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:553:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
551 |         #else
552 |         for i in 0 ..< count {
553 |             dst[i] = tan(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
554 |         }
555 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | #if os(Linux)
[22/81] Compiling DL4S CPUNumeric.swift
/host/spi-builder-workspace/Sources/DL4S/Assertions.swift:29:1: warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
27 |
28 |
29 | extension FileHandle: TextOutputStream {
   | |- warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
30 |     public func write(_ string: String) {
31 |         self.write(string.data(using: .utf8)!)
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:38:16: warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |     public typealias Device = CPU
 37 |
 38 |     static var traceAllocations: Bool = false {
    |                |- warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'traceAllocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'traceAllocations' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |         didSet {
 40 |             allocations.removeAll()
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:43:24: warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 41 |         }
 42 |     }
 43 |     private static var allocations: [UnsafeMutableRawBufferPointer: [String]] = [:]
    |                        |- warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'allocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'allocations' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 |     private static let sema = DispatchSemaphore(value: 1)
 45 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:85:44: warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 83 |             DispatchQueue.global().asyncAfter(deadline: .now() + .seconds(5)) {
 84 |                 sema.wait()
 85 |                 if let trace = allocations[buffer] {
    |                                            `- warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 86 |                     print("[ALLOC TRACE]: buffer of size \(capacity) not freed after 3 seconds.")
 87 |                     print("[ALLOC TRACE] [begin callstack]")
Swift.UnsafeMutableRawBufferPointer:1:23: note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawBufferPointer {
  |                       `- note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
2 |     @inlinable public init(start: UnsafeMutableRawPointer?, count: Int)
3 | }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:110:13: warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 |         }
109 |         DispatchQueue.global().async {
110 |             buffer.memory.deallocate()
    |             `- warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |         }
112 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/Buffer.swift:30:15: note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 28 |
 29 | /// A buffer that holds a region of memory with a given length
 30 | public struct Buffer<Element, Device: DeviceType>: Hashable {
    |               `- note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 31 |     let memory: Device.Memory.RawBuffer
 32 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:933:41: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 931 |             }
 932 |
 933 |             dstMem.advanced(by: dstIdx).assign(from: sourceMem.advanced(by: srcIdx), count: copyCount)
     |                                         |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                         `- note: use 'update(from:count:)' instead
 934 |         }
 935 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1018:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1016 |                 }
1017 |
1018 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                          `- note: use 'update(from:count:)' instead
1019 |             }
1020 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1098:50: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1096 |             let dstIdx = count - srcIdx - 1
1097 |
1098 |             dstPtr.advanced(by: dstIdx * stride).assign(from: srcPtr.advanced(by: srcIdx * stride), count: stride)
     |                                                  |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                                  `- note: use 'update(from:count:)' instead
1099 |         }
1100 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:461:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
459 |         #else
460 |         for i in 0 ..< count {
461 |             dst[i] = exp(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
462 |         }
463 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:475:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
473 |         #else
474 |         for i in 0 ..< count {
475 |             dst[i] = log(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
476 |         }
477 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:489:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
487 |         #else
488 |         for i in 0 ..< count {
489 |             dst[i] = tanh(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
490 |         }
491 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:503:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
501 |         #else
502 |         for i in 0 ..< count {
503 |             dst[i] = sqrt(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
504 |         }
505 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:525:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
523 |         #else
524 |         for i in 0 ..< count {
525 |             dst[i] = sin(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
526 |         }
527 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:539:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
537 |         #else
538 |         for i in 0 ..< count {
539 |             dst[i] = cos(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
540 |         }
541 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:553:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
551 |         #else
552 |         for i in 0 ..< count {
553 |             dst[i] = tan(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
554 |         }
555 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | #if os(Linux)
[23/81] Compiling DL4S Engine.swift
/host/spi-builder-workspace/Sources/DL4S/Assertions.swift:29:1: warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
27 |
28 |
29 | extension FileHandle: TextOutputStream {
   | |- warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
30 |     public func write(_ string: String) {
31 |         self.write(string.data(using: .utf8)!)
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:38:16: warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |     public typealias Device = CPU
 37 |
 38 |     static var traceAllocations: Bool = false {
    |                |- warning: static property 'traceAllocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'traceAllocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'traceAllocations' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |         didSet {
 40 |             allocations.removeAll()
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:43:24: warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 41 |         }
 42 |     }
 43 |     private static var allocations: [UnsafeMutableRawBufferPointer: [String]] = [:]
    |                        |- warning: static property 'allocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'allocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'allocations' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 |     private static let sema = DispatchSemaphore(value: 1)
 45 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:85:44: warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 83 |             DispatchQueue.global().asyncAfter(deadline: .now() + .seconds(5)) {
 84 |                 sema.wait()
 85 |                 if let trace = allocations[buffer] {
    |                                            `- warning: capture of 'buffer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 86 |                     print("[ALLOC TRACE]: buffer of size \(capacity) not freed after 3 seconds.")
 87 |                     print("[ALLOC TRACE] [begin callstack]")
Swift.UnsafeMutableRawBufferPointer:1:23: note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawBufferPointer {
  |                       `- note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
2 |     @inlinable public init(start: UnsafeMutableRawPointer?, count: Int)
3 | }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPU.swift:110:13: warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 |         }
109 |         DispatchQueue.global().async {
110 |             buffer.memory.deallocate()
    |             `- warning: capture of 'buffer' with non-sendable type 'Buffer<Element, CPU>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |         }
112 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/Buffer.swift:30:15: note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 28 |
 29 | /// A buffer that holds a region of memory with a given length
 30 | public struct Buffer<Element, Device: DeviceType>: Hashable {
    |               `- note: consider making generic struct 'Buffer' conform to the 'Sendable' protocol
 31 |     let memory: Device.Memory.RawBuffer
 32 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:933:41: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 931 |             }
 932 |
 933 |             dstMem.advanced(by: dstIdx).assign(from: sourceMem.advanced(by: srcIdx), count: copyCount)
     |                                         |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                         `- note: use 'update(from:count:)' instead
 934 |         }
 935 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1018:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1016 |                 }
1017 |
1018 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                          `- note: use 'update(from:count:)' instead
1019 |             }
1020 |
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1098:50: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
1096 |             let dstIdx = count - srcIdx - 1
1097 |
1098 |             dstPtr.advanced(by: dstIdx * stride).assign(from: srcPtr.advanced(by: srcIdx * stride), count: stride)
     |                                                  |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
     |                                                  `- note: use 'update(from:count:)' instead
1099 |         }
1100 |     }
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:461:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
459 |         #else
460 |         for i in 0 ..< count {
461 |             dst[i] = exp(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
462 |         }
463 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:475:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
473 |         #else
474 |         for i in 0 ..< count {
475 |             dst[i] = log(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
476 |         }
477 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:489:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
487 |         #else
488 |         for i in 0 ..< count {
489 |             dst[i] = tanh(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
490 |         }
491 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:503:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
501 |         #else
502 |         for i in 0 ..< count {
503 |             dst[i] = sqrt(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
504 |         }
505 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:525:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
523 |         #else
524 |         for i in 0 ..< count {
525 |             dst[i] = sin(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
526 |         }
527 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:539:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
537 |         #else
538 |         for i in 0 ..< count {
539 |             dst[i] = cos(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
540 |         }
541 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUDouble.swift:553:22: error: function produces expected type 'Double'; did you mean to call it with '()'?
551 |         #else
552 |         for i in 0 ..< count {
553 |             dst[i] = tan(src[i])
    |                      `- error: function produces expected type 'Double'; did you mean to call it with '()'?
554 |         }
555 |         #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | #if os(Linux)
[24/81] Compiling DL4S Random.swift
/host/spi-builder-workspace/Sources/DL4S/Random.swift:38:28: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |
 37 | struct WyHash: RandomNumberGenerator {
 38 |     fileprivate static var shared = WyHash(seed: 0)
    |                            |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |
 40 |     private var state: UInt64
/host/spi-builder-workspace/Sources/DL4S/SummaryWriter.swift:47:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
45 |         }
46 |         if !FileManager.default.fileExists(atPath: eventsFile.path) {
47 |             FileManager.default.createFile(atPath: eventsFile.path, contents: nil, attributes: nil)
   |                                 `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
48 |         }
49 |
/host/spi-builder-workspace/Sources/DL4S/Tensor/Graph.swift:135:42: warning: static property 'operationStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
133 | /// operation groups are not captured.
134 | public enum OperationGroup {
135 |     @ThreadLocal static private(set) var operationStack: [(id: UInt64, name: String)] = []
    |                                          |- warning: static property 'operationStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                                          |- note: convert 'operationStack' to a 'let' constant to make 'Sendable' shared state immutable
    |                                          |- note: annotate 'operationStack' with '@MainActor' if property should only be accessed from the main actor
    |                                          `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
136 |
137 |     @inline(__always)
[25/81] Compiling DL4S SummaryWriter.swift
/host/spi-builder-workspace/Sources/DL4S/Random.swift:38:28: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |
 37 | struct WyHash: RandomNumberGenerator {
 38 |     fileprivate static var shared = WyHash(seed: 0)
    |                            |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |
 40 |     private var state: UInt64
/host/spi-builder-workspace/Sources/DL4S/SummaryWriter.swift:47:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
45 |         }
46 |         if !FileManager.default.fileExists(atPath: eventsFile.path) {
47 |             FileManager.default.createFile(atPath: eventsFile.path, contents: nil, attributes: nil)
   |                                 `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
48 |         }
49 |
/host/spi-builder-workspace/Sources/DL4S/Tensor/Graph.swift:135:42: warning: static property 'operationStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
133 | /// operation groups are not captured.
134 | public enum OperationGroup {
135 |     @ThreadLocal static private(set) var operationStack: [(id: UInt64, name: String)] = []
    |                                          |- warning: static property 'operationStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                                          |- note: convert 'operationStack' to a 'let' constant to make 'Sendable' shared state immutable
    |                                          |- note: annotate 'operationStack' with '@MainActor' if property should only be accessed from the main actor
    |                                          `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
136 |
137 |     @inline(__always)
[26/81] Compiling DL4S Context.swift
/host/spi-builder-workspace/Sources/DL4S/Random.swift:38:28: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |
 37 | struct WyHash: RandomNumberGenerator {
 38 |     fileprivate static var shared = WyHash(seed: 0)
    |                            |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |
 40 |     private var state: UInt64
/host/spi-builder-workspace/Sources/DL4S/SummaryWriter.swift:47:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
45 |         }
46 |         if !FileManager.default.fileExists(atPath: eventsFile.path) {
47 |             FileManager.default.createFile(atPath: eventsFile.path, contents: nil, attributes: nil)
   |                                 `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
48 |         }
49 |
/host/spi-builder-workspace/Sources/DL4S/Tensor/Graph.swift:135:42: warning: static property 'operationStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
133 | /// operation groups are not captured.
134 | public enum OperationGroup {
135 |     @ThreadLocal static private(set) var operationStack: [(id: UInt64, name: String)] = []
    |                                          |- warning: static property 'operationStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                                          |- note: convert 'operationStack' to a 'let' constant to make 'Sendable' shared state immutable
    |                                          |- note: annotate 'operationStack' with '@MainActor' if property should only be accessed from the main actor
    |                                          `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
136 |
137 |     @inline(__always)
[27/81] Compiling DL4S Graph.swift
/host/spi-builder-workspace/Sources/DL4S/Random.swift:38:28: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |
 37 | struct WyHash: RandomNumberGenerator {
 38 |     fileprivate static var shared = WyHash(seed: 0)
    |                            |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |
 40 |     private var state: UInt64
/host/spi-builder-workspace/Sources/DL4S/SummaryWriter.swift:47:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
45 |         }
46 |         if !FileManager.default.fileExists(atPath: eventsFile.path) {
47 |             FileManager.default.createFile(atPath: eventsFile.path, contents: nil, attributes: nil)
   |                                 `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
48 |         }
49 |
/host/spi-builder-workspace/Sources/DL4S/Tensor/Graph.swift:135:42: warning: static property 'operationStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
133 | /// operation groups are not captured.
134 | public enum OperationGroup {
135 |     @ThreadLocal static private(set) var operationStack: [(id: UInt64, name: String)] = []
    |                                          |- warning: static property 'operationStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                                          |- note: convert 'operationStack' to a 'let' constant to make 'Sendable' shared state immutable
    |                                          |- note: annotate 'operationStack' with '@MainActor' if property should only be accessed from the main actor
    |                                          `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
136 |
137 |     @inline(__always)
[28/81] Compiling DL4S Binary.swift
/host/spi-builder-workspace/Sources/DL4S/Random.swift:38:28: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |
 37 | struct WyHash: RandomNumberGenerator {
 38 |     fileprivate static var shared = WyHash(seed: 0)
    |                            |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |
 40 |     private var state: UInt64
/host/spi-builder-workspace/Sources/DL4S/SummaryWriter.swift:47:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
45 |         }
46 |         if !FileManager.default.fileExists(atPath: eventsFile.path) {
47 |             FileManager.default.createFile(atPath: eventsFile.path, contents: nil, attributes: nil)
   |                                 `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
48 |         }
49 |
/host/spi-builder-workspace/Sources/DL4S/Tensor/Graph.swift:135:42: warning: static property 'operationStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
133 | /// operation groups are not captured.
134 | public enum OperationGroup {
135 |     @ThreadLocal static private(set) var operationStack: [(id: UInt64, name: String)] = []
    |                                          |- warning: static property 'operationStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                                          |- note: convert 'operationStack' to a 'let' constant to make 'Sendable' shared state immutable
    |                                          |- note: annotate 'operationStack' with '@MainActor' if property should only be accessed from the main actor
    |                                          `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
136 |
137 |     @inline(__always)
[29/81] Compiling DL4S Conv.swift
/host/spi-builder-workspace/Sources/DL4S/Random.swift:38:28: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |
 37 | struct WyHash: RandomNumberGenerator {
 38 |     fileprivate static var shared = WyHash(seed: 0)
    |                            |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |
 40 |     private var state: UInt64
/host/spi-builder-workspace/Sources/DL4S/SummaryWriter.swift:47:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
45 |         }
46 |         if !FileManager.default.fileExists(atPath: eventsFile.path) {
47 |             FileManager.default.createFile(atPath: eventsFile.path, contents: nil, attributes: nil)
   |                                 `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
48 |         }
49 |
/host/spi-builder-workspace/Sources/DL4S/Tensor/Graph.swift:135:42: warning: static property 'operationStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
133 | /// operation groups are not captured.
134 | public enum OperationGroup {
135 |     @ThreadLocal static private(set) var operationStack: [(id: UInt64, name: String)] = []
    |                                          |- warning: static property 'operationStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                                          |- note: convert 'operationStack' to a 'let' constant to make 'Sendable' shared state immutable
    |                                          |- note: annotate 'operationStack' with '@MainActor' if property should only be accessed from the main actor
    |                                          `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
136 |
137 |     @inline(__always)
[30/81] Compiling DL4S Loss.swift
/host/spi-builder-workspace/Sources/DL4S/Random.swift:38:28: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |
 37 | struct WyHash: RandomNumberGenerator {
 38 |     fileprivate static var shared = WyHash(seed: 0)
    |                            |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |
 40 |     private var state: UInt64
/host/spi-builder-workspace/Sources/DL4S/SummaryWriter.swift:47:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
45 |         }
46 |         if !FileManager.default.fileExists(atPath: eventsFile.path) {
47 |             FileManager.default.createFile(atPath: eventsFile.path, contents: nil, attributes: nil)
   |                                 `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
48 |         }
49 |
/host/spi-builder-workspace/Sources/DL4S/Tensor/Graph.swift:135:42: warning: static property 'operationStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
133 | /// operation groups are not captured.
134 | public enum OperationGroup {
135 |     @ThreadLocal static private(set) var operationStack: [(id: UInt64, name: String)] = []
    |                                          |- warning: static property 'operationStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                                          |- note: convert 'operationStack' to a 'let' constant to make 'Sendable' shared state immutable
    |                                          |- note: annotate 'operationStack' with '@MainActor' if property should only be accessed from the main actor
    |                                          `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
136 |
137 |     @inline(__always)
[31/81] Compiling DL4S Matrix.swift
/host/spi-builder-workspace/Sources/DL4S/Random.swift:38:28: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |
 37 | struct WyHash: RandomNumberGenerator {
 38 |     fileprivate static var shared = WyHash(seed: 0)
    |                            |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |
 40 |     private var state: UInt64
/host/spi-builder-workspace/Sources/DL4S/SummaryWriter.swift:47:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
45 |         }
46 |         if !FileManager.default.fileExists(atPath: eventsFile.path) {
47 |             FileManager.default.createFile(atPath: eventsFile.path, contents: nil, attributes: nil)
   |                                 `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
48 |         }
49 |
/host/spi-builder-workspace/Sources/DL4S/Tensor/Graph.swift:135:42: warning: static property 'operationStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
133 | /// operation groups are not captured.
134 | public enum OperationGroup {
135 |     @ThreadLocal static private(set) var operationStack: [(id: UInt64, name: String)] = []
    |                                          |- warning: static property 'operationStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                                          |- note: convert 'operationStack' to a 'let' constant to make 'Sendable' shared state immutable
    |                                          |- note: annotate 'operationStack' with '@MainActor' if property should only be accessed from the main actor
    |                                          `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
136 |
137 |     @inline(__always)
[32/81] Compiling DL4S Reduce.swift
/host/spi-builder-workspace/Sources/DL4S/Random.swift:38:28: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |
 37 | struct WyHash: RandomNumberGenerator {
 38 |     fileprivate static var shared = WyHash(seed: 0)
    |                            |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |
 40 |     private var state: UInt64
/host/spi-builder-workspace/Sources/DL4S/SummaryWriter.swift:47:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
45 |         }
46 |         if !FileManager.default.fileExists(atPath: eventsFile.path) {
47 |             FileManager.default.createFile(atPath: eventsFile.path, contents: nil, attributes: nil)
   |                                 `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
48 |         }
49 |
/host/spi-builder-workspace/Sources/DL4S/Tensor/Graph.swift:135:42: warning: static property 'operationStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
133 | /// operation groups are not captured.
134 | public enum OperationGroup {
135 |     @ThreadLocal static private(set) var operationStack: [(id: UInt64, name: String)] = []
    |                                          |- warning: static property 'operationStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                                          |- note: convert 'operationStack' to a 'let' constant to make 'Sendable' shared state immutable
    |                                          |- note: annotate 'operationStack' with '@MainActor' if property should only be accessed from the main actor
    |                                          `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
136 |
137 |     @inline(__always)
[33/81] Compiling DL4S GPU.swift
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:28:1: warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 26 | import Foundation
 27 |
 28 | extension UnsafeMutableRawBufferPointer: Hashable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 29 |     public static func == (lhs: UnsafeMutableRawBufferPointer, rhs: UnsafeMutableRawBufferPointer) -> Bool {
 30 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:91:1: warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 89 | }
 90 |
 91 | extension UnsafeMutableBufferPointer: Equatable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 92 |     public static func == (lhs: UnsafeMutableBufferPointer<Element>, rhs: UnsafeMutableBufferPointer<Element>) -> Bool {
 93 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:99:24: warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 97 | enum CPUAllocator {
 98 |     private static let maxCache: Int = 1_000_000_000 // 1GB
 99 |     private static var usedCache: Int = 0
    |                        |- warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'usedCache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'usedCache' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:101:24: warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 99 |     private static var usedCache: Int = 0
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
    |                        |- warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'freeBuffers' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'freeBuffers' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 |     private static var unusedCache: Int {
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:63:27: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 61 |         precondition(self.count >= count, "Out of bounds write")
 62 |         //memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
 63 |         self.baseAddress!.assign(from: ptr.baseAddress!, count: count)
    |                           |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
    |                           `- note: use 'update(from:count:)' instead
 64 |     }
 65 |
[34/81] Compiling DL4S Allocator.swift
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:28:1: warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 26 | import Foundation
 27 |
 28 | extension UnsafeMutableRawBufferPointer: Hashable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 29 |     public static func == (lhs: UnsafeMutableRawBufferPointer, rhs: UnsafeMutableRawBufferPointer) -> Bool {
 30 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:91:1: warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 89 | }
 90 |
 91 | extension UnsafeMutableBufferPointer: Equatable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 92 |     public static func == (lhs: UnsafeMutableBufferPointer<Element>, rhs: UnsafeMutableBufferPointer<Element>) -> Bool {
 93 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:99:24: warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 97 | enum CPUAllocator {
 98 |     private static let maxCache: Int = 1_000_000_000 // 1GB
 99 |     private static var usedCache: Int = 0
    |                        |- warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'usedCache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'usedCache' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:101:24: warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 99 |     private static var usedCache: Int = 0
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
    |                        |- warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'freeBuffers' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'freeBuffers' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 |     private static var unusedCache: Int {
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:63:27: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 61 |         precondition(self.count >= count, "Out of bounds write")
 62 |         //memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
 63 |         self.baseAddress!.assign(from: ptr.baseAddress!, count: count)
    |                           |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
    |                           `- note: use 'update(from:count:)' instead
 64 |     }
 65 |
[35/81] Compiling DL4S MemoryOps.swift
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:28:1: warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 26 | import Foundation
 27 |
 28 | extension UnsafeMutableRawBufferPointer: Hashable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 29 |     public static func == (lhs: UnsafeMutableRawBufferPointer, rhs: UnsafeMutableRawBufferPointer) -> Bool {
 30 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:91:1: warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 89 | }
 90 |
 91 | extension UnsafeMutableBufferPointer: Equatable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 92 |     public static func == (lhs: UnsafeMutableBufferPointer<Element>, rhs: UnsafeMutableBufferPointer<Element>) -> Bool {
 93 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:99:24: warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 97 | enum CPUAllocator {
 98 |     private static let maxCache: Int = 1_000_000_000 // 1GB
 99 |     private static var usedCache: Int = 0
    |                        |- warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'usedCache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'usedCache' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:101:24: warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 99 |     private static var usedCache: Int = 0
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
    |                        |- warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'freeBuffers' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'freeBuffers' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 |     private static var unusedCache: Int {
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:63:27: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 61 |         precondition(self.count >= count, "Out of bounds write")
 62 |         //memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
 63 |         self.baseAddress!.assign(from: ptr.baseAddress!, count: count)
    |                           |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
    |                           `- note: use 'update(from:count:)' instead
 64 |     }
 65 |
[36/81] Compiling DL4S Activation.swift
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:28:1: warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 26 | import Foundation
 27 |
 28 | extension UnsafeMutableRawBufferPointer: Hashable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 29 |     public static func == (lhs: UnsafeMutableRawBufferPointer, rhs: UnsafeMutableRawBufferPointer) -> Bool {
 30 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:91:1: warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 89 | }
 90 |
 91 | extension UnsafeMutableBufferPointer: Equatable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 92 |     public static func == (lhs: UnsafeMutableBufferPointer<Element>, rhs: UnsafeMutableBufferPointer<Element>) -> Bool {
 93 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:99:24: warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 97 | enum CPUAllocator {
 98 |     private static let maxCache: Int = 1_000_000_000 // 1GB
 99 |     private static var usedCache: Int = 0
    |                        |- warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'usedCache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'usedCache' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:101:24: warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 99 |     private static var usedCache: Int = 0
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
    |                        |- warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'freeBuffers' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'freeBuffers' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 |     private static var unusedCache: Int {
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:63:27: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 61 |         precondition(self.count >= count, "Out of bounds write")
 62 |         //memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
 63 |         self.baseAddress!.assign(from: ptr.baseAddress!, count: count)
    |                           |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
    |                           `- note: use 'update(from:count:)' instead
 64 |     }
 65 |
[37/81] Compiling DL4S BasicRNN.swift
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:28:1: warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 26 | import Foundation
 27 |
 28 | extension UnsafeMutableRawBufferPointer: Hashable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 29 |     public static func == (lhs: UnsafeMutableRawBufferPointer, rhs: UnsafeMutableRawBufferPointer) -> Bool {
 30 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:91:1: warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 89 | }
 90 |
 91 | extension UnsafeMutableBufferPointer: Equatable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 92 |     public static func == (lhs: UnsafeMutableBufferPointer<Element>, rhs: UnsafeMutableBufferPointer<Element>) -> Bool {
 93 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:99:24: warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 97 | enum CPUAllocator {
 98 |     private static let maxCache: Int = 1_000_000_000 // 1GB
 99 |     private static var usedCache: Int = 0
    |                        |- warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'usedCache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'usedCache' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:101:24: warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 99 |     private static var usedCache: Int = 0
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
    |                        |- warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'freeBuffers' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'freeBuffers' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 |     private static var unusedCache: Int {
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:63:27: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 61 |         precondition(self.count >= count, "Out of bounds write")
 62 |         //memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
 63 |         self.baseAddress!.assign(from: ptr.baseAddress!, count: count)
    |                           |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
    |                           `- note: use 'update(from:count:)' instead
 64 |     }
 65 |
[38/81] Compiling DL4S BatchNorm.swift
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:28:1: warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 26 | import Foundation
 27 |
 28 | extension UnsafeMutableRawBufferPointer: Hashable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 29 |     public static func == (lhs: UnsafeMutableRawBufferPointer, rhs: UnsafeMutableRawBufferPointer) -> Bool {
 30 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:91:1: warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 89 | }
 90 |
 91 | extension UnsafeMutableBufferPointer: Equatable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 92 |     public static func == (lhs: UnsafeMutableBufferPointer<Element>, rhs: UnsafeMutableBufferPointer<Element>) -> Bool {
 93 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:99:24: warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 97 | enum CPUAllocator {
 98 |     private static let maxCache: Int = 1_000_000_000 // 1GB
 99 |     private static var usedCache: Int = 0
    |                        |- warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'usedCache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'usedCache' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:101:24: warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 99 |     private static var usedCache: Int = 0
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
    |                        |- warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'freeBuffers' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'freeBuffers' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 |     private static var unusedCache: Int {
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:63:27: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 61 |         precondition(self.count >= count, "Out of bounds write")
 62 |         //memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
 63 |         self.baseAddress!.assign(from: ptr.baseAddress!, count: count)
    |                           |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
    |                           `- note: use 'update(from:count:)' instead
 64 |     }
 65 |
[39/81] Compiling DL4S BidirectionalRNN.swift
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:28:1: warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 26 | import Foundation
 27 |
 28 | extension UnsafeMutableRawBufferPointer: Hashable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 29 |     public static func == (lhs: UnsafeMutableRawBufferPointer, rhs: UnsafeMutableRawBufferPointer) -> Bool {
 30 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:91:1: warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 89 | }
 90 |
 91 | extension UnsafeMutableBufferPointer: Equatable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 92 |     public static func == (lhs: UnsafeMutableBufferPointer<Element>, rhs: UnsafeMutableBufferPointer<Element>) -> Bool {
 93 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:99:24: warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 97 | enum CPUAllocator {
 98 |     private static let maxCache: Int = 1_000_000_000 // 1GB
 99 |     private static var usedCache: Int = 0
    |                        |- warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'usedCache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'usedCache' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:101:24: warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 99 |     private static var usedCache: Int = 0
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
    |                        |- warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'freeBuffers' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'freeBuffers' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 |     private static var unusedCache: Int {
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:63:27: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 61 |         precondition(self.count >= count, "Out of bounds write")
 62 |         //memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
 63 |         self.baseAddress!.assign(from: ptr.baseAddress!, count: count)
    |                           |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
    |                           `- note: use 'update(from:count:)' instead
 64 |     }
 65 |
[40/81] Compiling DL4S Convolution.swift
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:28:1: warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 26 | import Foundation
 27 |
 28 | extension UnsafeMutableRawBufferPointer: Hashable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 29 |     public static func == (lhs: UnsafeMutableRawBufferPointer, rhs: UnsafeMutableRawBufferPointer) -> Bool {
 30 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:91:1: warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 89 | }
 90 |
 91 | extension UnsafeMutableBufferPointer: Equatable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 92 |     public static func == (lhs: UnsafeMutableBufferPointer<Element>, rhs: UnsafeMutableBufferPointer<Element>) -> Bool {
 93 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:99:24: warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 97 | enum CPUAllocator {
 98 |     private static let maxCache: Int = 1_000_000_000 // 1GB
 99 |     private static var usedCache: Int = 0
    |                        |- warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'usedCache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'usedCache' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:101:24: warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 99 |     private static var usedCache: Int = 0
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
    |                        |- warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'freeBuffers' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'freeBuffers' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 |     private static var unusedCache: Int {
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:63:27: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 61 |         precondition(self.count >= count, "Out of bounds write")
 62 |         //memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
 63 |         self.baseAddress!.assign(from: ptr.baseAddress!, count: count)
    |                           |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
    |                           `- note: use 'update(from:count:)' instead
 64 |     }
 65 |
[41/81] Compiling DL4S Dense.swift
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:28:1: warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 26 | import Foundation
 27 |
 28 | extension UnsafeMutableRawBufferPointer: Hashable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 29 |     public static func == (lhs: UnsafeMutableRawBufferPointer, rhs: UnsafeMutableRawBufferPointer) -> Bool {
 30 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:91:1: warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 89 | }
 90 |
 91 | extension UnsafeMutableBufferPointer: Equatable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 92 |     public static func == (lhs: UnsafeMutableBufferPointer<Element>, rhs: UnsafeMutableBufferPointer<Element>) -> Bool {
 93 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:99:24: warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 97 | enum CPUAllocator {
 98 |     private static let maxCache: Int = 1_000_000_000 // 1GB
 99 |     private static var usedCache: Int = 0
    |                        |- warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'usedCache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'usedCache' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:101:24: warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 99 |     private static var usedCache: Int = 0
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
    |                        |- warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'freeBuffers' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'freeBuffers' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 |     private static var unusedCache: Int {
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:63:27: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 61 |         precondition(self.count >= count, "Out of bounds write")
 62 |         //memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
 63 |         self.baseAddress!.assign(from: ptr.baseAddress!, count: count)
    |                           |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
    |                           `- note: use 'update(from:count:)' instead
 64 |     }
 65 |
[42/81] Compiling DL4S Dropout.swift
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:28:1: warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 26 | import Foundation
 27 |
 28 | extension UnsafeMutableRawBufferPointer: Hashable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 29 |     public static func == (lhs: UnsafeMutableRawBufferPointer, rhs: UnsafeMutableRawBufferPointer) -> Bool {
 30 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:91:1: warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 89 | }
 90 |
 91 | extension UnsafeMutableBufferPointer: Equatable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 92 |     public static func == (lhs: UnsafeMutableBufferPointer<Element>, rhs: UnsafeMutableBufferPointer<Element>) -> Bool {
 93 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:99:24: warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 97 | enum CPUAllocator {
 98 |     private static let maxCache: Int = 1_000_000_000 // 1GB
 99 |     private static var usedCache: Int = 0
    |                        |- warning: static property 'usedCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'usedCache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'usedCache' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:101:24: warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 99 |     private static var usedCache: Int = 0
100 |
101 |     private static var freeBuffers: [Int: [UnsafeMutableRawBufferPointer]] = [:]
    |                        |- warning: static property 'freeBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'freeBuffers' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'freeBuffers' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 |     private static var unusedCache: Int {
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:63:27: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
 61 |         precondition(self.count >= count, "Out of bounds write")
 62 |         //memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
 63 |         self.baseAddress!.assign(from: ptr.baseAddress!, count: count)
    |                           |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
    |                           `- note: use 'update(from:count:)' instead
 64 |     }
 65 |
[43/81] Compiling DL4S Embedding.swift
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Sequential.swift:91:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 89 |
 90 | /// A layer builder can be used to create sequences of layers
 91 | @_functionBuilder
    |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 92 | public enum LayerBuilder {}
 93 |
[44/81] Compiling DL4S GRU.swift
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Sequential.swift:91:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 89 |
 90 | /// A layer builder can be used to create sequences of layers
 91 | @_functionBuilder
    |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 92 | public enum LayerBuilder {}
 93 |
[45/81] Compiling DL4S LSTM.swift
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Sequential.swift:91:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 89 |
 90 | /// A layer builder can be used to create sequences of layers
 91 | @_functionBuilder
    |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 92 | public enum LayerBuilder {}
 93 |
[46/81] Compiling DL4S Layer.swift
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Sequential.swift:91:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 89 |
 90 | /// A layer builder can be used to create sequences of layers
 91 | @_functionBuilder
    |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 92 | public enum LayerBuilder {}
 93 |
[47/81] Compiling DL4S LayerNorm.swift
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Sequential.swift:91:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 89 |
 90 | /// A layer builder can be used to create sequences of layers
 91 | @_functionBuilder
    |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 92 | public enum LayerBuilder {}
 93 |
[48/81] Compiling DL4S Pooling.swift
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Sequential.swift:91:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 89 |
 90 | /// A layer builder can be used to create sequences of layers
 91 | @_functionBuilder
    |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 92 | public enum LayerBuilder {}
 93 |
[49/81] Compiling DL4S RNN.swift
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Sequential.swift:91:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 89 |
 90 | /// A layer builder can be used to create sequences of layers
 91 | @_functionBuilder
    |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 92 | public enum LayerBuilder {}
 93 |
[50/81] Compiling DL4S Residual.swift
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Sequential.swift:91:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 89 |
 90 | /// A layer builder can be used to create sequences of layers
 91 | @_functionBuilder
    |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 92 | public enum LayerBuilder {}
 93 |
[51/81] Compiling DL4S Sequential.swift
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Sequential.swift:91:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 89 |
 90 | /// A layer builder can be used to create sequences of layers
 91 | @_functionBuilder
    |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 92 | public enum LayerBuilder {}
 93 |
[52/81] Compiling DL4S ShapeLayer.swift
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Sequential.swift:91:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 89 |
 90 | /// A layer builder can be used to create sequences of layers
 91 | @_functionBuilder
    |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 92 | public enum LayerBuilder {}
 93 |
[53/81] Compiling DL4S TransformerEncoderBlock.swift
[54/81] Compiling DL4S TransformerUtil.swift
[55/81] Compiling DL4S VGG.swift
[56/81] Compiling DL4S VGG11.swift
[57/81] Compiling DL4S VGG13.swift
[58/81] Compiling DL4S VGG16.swift
[59/81] Compiling DL4S VGG19.swift
[60/81] Compiling DL4S Adadelta.swift
[61/81] Compiling DL4S Adagrad.swift
[62/81] Compiling DL4S Adam.swift
[63/81] Compiling DL4S AlexNet.swift
[64/81] Compiling DL4S ResNet.swift
[65/81] Compiling DL4S MultiHeadAttention.swift
[66/81] Compiling DL4S PointwiseFeedForward.swift
[67/81] Compiling DL4S PositionalEncoding.swift
[68/81] Compiling DL4S ScaledDotProductAttention.swift
[69/81] Compiling DL4S Transformer.swift
[70/81] Compiling DL4S TransformerDecoder.swift
[71/81] Compiling DL4S TransformerDecoderBlock.swift
[72/81] Compiling DL4S TransformerEncoder.swift
[73/81] Compiling DL4S LearningRate.swift
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:29:1: warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 27 |
 28 |
 29 | extension Int32: NumericType {
    | |- warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 30 |     public func format(maxDecimals: Int) -> String {
 31 |         return "\(self)"
[74/81] Compiling DL4S Momentum.swift
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:29:1: warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 27 |
 28 |
 29 | extension Int32: NumericType {
    | |- warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 30 |     public func format(maxDecimals: Int) -> String {
 31 |         return "\(self)"
[75/81] Compiling DL4S Optim.swift
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:29:1: warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 27 |
 28 |
 29 | extension Int32: NumericType {
    | |- warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 30 |     public func format(maxDecimals: Int) -> String {
 31 |         return "\(self)"
[76/81] Compiling DL4S RMSProp.swift
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:29:1: warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 27 |
 28 |
 29 | extension Int32: NumericType {
    | |- warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 30 |     public func format(maxDecimals: Int) -> String {
 31 |         return "\(self)"
[77/81] Compiling DL4S SGD.swift
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:29:1: warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 27 |
 28 |
 29 | extension Int32: NumericType {
    | |- warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 30 |     public func format(maxDecimals: Int) -> String {
 31 |         return "\(self)"
[78/81] Compiling DL4S Double.swift
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:29:1: warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 27 |
 28 |
 29 | extension Int32: NumericType {
    | |- warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 30 |     public func format(maxDecimals: Int) -> String {
 31 |         return "\(self)"
[79/81] Compiling DL4S Float.swift
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:29:1: warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 27 |
 28 |
 29 | extension Int32: NumericType {
    | |- warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 30 |     public func format(maxDecimals: Int) -> String {
 31 |         return "\(self)"
[80/81] Compiling DL4S Int32.swift
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:29:1: warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 27 |
 28 |
 29 | extension Int32: NumericType {
    | |- warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 30 |     public func format(maxDecimals: Int) -> String {
 31 |         return "\(self)"
[81/81] Compiling DL4S NumericType.swift
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:29:1: warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 27 |
 28 |
 29 | extension Int32: NumericType {
    | |- warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 30 |     public func format(maxDecimals: Int) -> String {
 31 |         return "\(self)"
BUILD FAILURE 6.0 linux