The Swift Package Index logo.Swift Package Index

Build Information

Failed to build alpaca.swift, reference v0.1.0 (e89aff), with Swift 6.1 for Android on 3 Nov 2026 06:18:00 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/torinriley/alpaca.git
Reference: v0.1.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/torinriley/alpaca
 * tag               v0.1.0     -> FETCH_HEAD
HEAD is now at e89affe Prepare 0.1.0: install via version tag, citation metadata, changelog, release notes
Cloned https://github.com/torinriley/alpaca.git
Revision (git rev-parse @):
e89affe14b1576f47856f1a1a9472f2f17a8e3bf
SUCCESS checkout https://github.com/torinriley/alpaca.git at v0.1.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/torinriley/alpaca.git
https://github.com/torinriley/alpaca.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1af1ef9e2b8f7a959ad4dced2035c22f050ae85f531ed2857472423d8f2ef4d3
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
Building for debugging...
[0/16] Write sources
[6/16] Copying Kernels
[7/16] Write swift-version-24593BA9C3E375BF.txt
[9/32] Emitting module AlpacaCore
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[10/33] Compiling AlpacaCore LlamaWeights.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/33] Compiling AlpacaCore Tensor.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/33] Compiling AlpacaCore TensorError.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[13/33] Compiling AlpacaCore MemoryBudget.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:51:54: error: no exact matches in call to global function 'exp'
 49 |     public static func silu(_ x: Tensor) throws -> Tensor {
 50 |         try requireF32(x, name: "silu")
 51 |         let v = try x.toFloatArray().map { $0 / (1 + exp(-$0)) }
    |                                                      `- error: no exact matches in call to global function 'exp'
 52 |         return try Tensor(v, shape: x.shape)
 53 |     }
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:51:47: error: binary operator '/' cannot be applied to two 'Float' operands
 49 |     public static func silu(_ x: Tensor) throws -> Tensor {
 50 |         try requireF32(x, name: "silu")
 51 |         let v = try x.toFloatArray().map { $0 / (1 + exp(-$0)) }
    |                                               |- error: binary operator '/' cannot be applied to two 'Float' operands
    |                                               `- note: overloads for '/' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float)
 52 |         return try Tensor(v, shape: x.shape)
 53 |     }
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:51:59: error: cannot convert value of type 'Float' to expected argument type 'Double'
 49 |     public static func silu(_ x: Tensor) throws -> Tensor {
 50 |         try requireF32(x, name: "silu")
 51 |         let v = try x.toFloatArray().map { $0 / (1 + exp(-$0)) }
    |                                                           `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 52 |         return try Tensor(v, shape: x.shape)
 53 |     }
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:51:52: error: binary operator '+' cannot be applied to operands of type 'Float' and 'CGFloat'
 49 |     public static func silu(_ x: Tensor) throws -> Tensor {
 50 |         try requireF32(x, name: "silu")
 51 |         let v = try x.toFloatArray().map { $0 / (1 + exp(-$0)) }
    |                                                    |- error: binary operator '+' cannot be applied to operands of type 'Float' and 'CGFloat'
    |                                                    `- note: overloads for '+' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Float, Float)
 52 |         return try Tensor(v, shape: x.shape)
 53 |     }
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:171:44: error: no exact matches in call to global function 'exp'
169 |             for i in 0..<d { mx = max(mx, v[base + i]) }
170 |             var sum: Float = 0
171 |             for i in 0..<d { v[base + i] = exp(v[base + i] - mx); sum += v[base + i] }
    |                                            `- error: no exact matches in call to global function 'exp'
172 |             for i in 0..<d { v[base + i] /= sum }
173 |         }
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:171:44: error: no 'exp' candidates produce the expected contextual result type 'Float'
169 |             for i in 0..<d { mx = max(mx, v[base + i]) }
170 |             var sum: Float = 0
171 |             for i in 0..<d { v[base + i] = exp(v[base + i] - mx); sum += v[base + i] }
    |                                            `- error: no 'exp' candidates produce the expected contextual result type 'Float'
172 |             for i in 0..<d { v[base + i] /= sum }
173 |         }
Foundation.exp:1:13: note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:128:8: note: 'exp' produces 'Double', not the expected contextual result type 'Float'
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: 'exp' produces 'Double', not the expected contextual result type 'Float'
129 | float expf(float __x);
130 | long double expl(long double __x);
[14/33] Compiling AlpacaCore CPUOps.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:51:54: error: no exact matches in call to global function 'exp'
 49 |     public static func silu(_ x: Tensor) throws -> Tensor {
 50 |         try requireF32(x, name: "silu")
 51 |         let v = try x.toFloatArray().map { $0 / (1 + exp(-$0)) }
    |                                                      `- error: no exact matches in call to global function 'exp'
 52 |         return try Tensor(v, shape: x.shape)
 53 |     }
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:51:47: error: binary operator '/' cannot be applied to two 'Float' operands
 49 |     public static func silu(_ x: Tensor) throws -> Tensor {
 50 |         try requireF32(x, name: "silu")
 51 |         let v = try x.toFloatArray().map { $0 / (1 + exp(-$0)) }
    |                                               |- error: binary operator '/' cannot be applied to two 'Float' operands
    |                                               `- note: overloads for '/' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float)
 52 |         return try Tensor(v, shape: x.shape)
 53 |     }
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:51:59: error: cannot convert value of type 'Float' to expected argument type 'Double'
 49 |     public static func silu(_ x: Tensor) throws -> Tensor {
 50 |         try requireF32(x, name: "silu")
 51 |         let v = try x.toFloatArray().map { $0 / (1 + exp(-$0)) }
    |                                                           `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 52 |         return try Tensor(v, shape: x.shape)
 53 |     }
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:51:52: error: binary operator '+' cannot be applied to operands of type 'Float' and 'CGFloat'
 49 |     public static func silu(_ x: Tensor) throws -> Tensor {
 50 |         try requireF32(x, name: "silu")
 51 |         let v = try x.toFloatArray().map { $0 / (1 + exp(-$0)) }
    |                                                    |- error: binary operator '+' cannot be applied to operands of type 'Float' and 'CGFloat'
    |                                                    `- note: overloads for '+' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Float, Float)
 52 |         return try Tensor(v, shape: x.shape)
 53 |     }
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:171:44: error: no exact matches in call to global function 'exp'
169 |             for i in 0..<d { mx = max(mx, v[base + i]) }
170 |             var sum: Float = 0
171 |             for i in 0..<d { v[base + i] = exp(v[base + i] - mx); sum += v[base + i] }
    |                                            `- error: no exact matches in call to global function 'exp'
172 |             for i in 0..<d { v[base + i] /= sum }
173 |         }
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:171:44: error: no 'exp' candidates produce the expected contextual result type 'Float'
169 |             for i in 0..<d { mx = max(mx, v[base + i]) }
170 |             var sum: Float = 0
171 |             for i in 0..<d { v[base + i] = exp(v[base + i] - mx); sum += v[base + i] }
    |                                            `- error: no 'exp' candidates produce the expected contextual result type 'Float'
172 |             for i in 0..<d { v[base + i] /= sum }
173 |         }
Foundation.exp:1:13: note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:128:8: note: 'exp' produces 'Double', not the expected contextual result type 'Float'
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: 'exp' produces 'Double', not the expected contextual result type 'Float'
129 | float expf(float __x);
130 | long double expl(long double __x);
[15/33] Compiling AlpacaCore Sampler.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[16/33] Compiling AlpacaCore DType.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[17/33] Compiling AlpacaCore Quantization.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[18/33] Compiling AlpacaCore ErrorMetrics.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[19/33] Compiling AlpacaCore TensorStorage.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[20/33] Compiling AlpacaCore KVCache.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[21/33] Compiling AlpacaCore LlamaCPUModel.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[22/33] Compiling AlpacaCore LlamaConfig.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[23/33] Emitting module AlpacaTokenizers
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[24/33] Compiling AlpacaTokenizers BPETokenizer.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[25/33] Compiling AlpacaTokenizers ByteLevel.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1af1ef9e2b8f7a959ad4dced2035c22f050ae85f531ed2857472423d8f2ef4d3
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/9] Write swift-version-24593BA9C3E375BF.txt
[2/25] Compiling AlpacaCore LlamaCPUModel.swift
[3/25] Compiling AlpacaCore LlamaConfig.swift
[4/26] Compiling AlpacaCore TensorStorage.swift
[5/26] Compiling AlpacaCore KVCache.swift
[6/26] Compiling AlpacaCore Tensor.swift
[7/26] Compiling AlpacaCore TensorError.swift
[8/26] Compiling AlpacaCore Quantization.swift
[9/26] Compiling AlpacaCore ErrorMetrics.swift
[10/26] Compiling AlpacaCore Sampler.swift
[11/26] Compiling AlpacaCore DType.swift
[12/26] Compiling AlpacaTokenizers ByteLevel.swift
[13/26] Compiling AlpacaTokenizers BPETokenizer.swift
[14/26] Emitting module AlpacaTokenizers
[15/27] Compiling AlpacaCore LlamaWeights.swift
[16/27] Emitting module AlpacaCore
[17/27] Compiling AlpacaCore MemoryBudget.swift
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:51:52: error: binary operator '+' cannot be applied to operands of type 'Float' and 'CGFloat'
 49 |     public static func silu(_ x: Tensor) throws -> Tensor {
 50 |         try requireF32(x, name: "silu")
 51 |         let v = try x.toFloatArray().map { $0 / (1 + exp(-$0)) }
    |                                                    |- error: binary operator '+' cannot be applied to operands of type 'Float' and 'CGFloat'
    |                                                    `- note: overloads for '+' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Float, Float)
 52 |         return try Tensor(v, shape: x.shape)
 53 |     }
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:51:47: error: binary operator '/' cannot be applied to two 'Float' operands
 49 |     public static func silu(_ x: Tensor) throws -> Tensor {
 50 |         try requireF32(x, name: "silu")
 51 |         let v = try x.toFloatArray().map { $0 / (1 + exp(-$0)) }
    |                                               |- error: binary operator '/' cannot be applied to two 'Float' operands
    |                                               `- note: overloads for '/' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float)
 52 |         return try Tensor(v, shape: x.shape)
 53 |     }
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:51:59: error: cannot convert value of type 'Float' to expected argument type 'Double'
 49 |     public static func silu(_ x: Tensor) throws -> Tensor {
 50 |         try requireF32(x, name: "silu")
 51 |         let v = try x.toFloatArray().map { $0 / (1 + exp(-$0)) }
    |                                                           `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 52 |         return try Tensor(v, shape: x.shape)
 53 |     }
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:51:54: error: no exact matches in call to global function 'exp'
 49 |     public static func silu(_ x: Tensor) throws -> Tensor {
 50 |         try requireF32(x, name: "silu")
 51 |         let v = try x.toFloatArray().map { $0 / (1 + exp(-$0)) }
    |                                                      `- error: no exact matches in call to global function 'exp'
 52 |         return try Tensor(v, shape: x.shape)
 53 |     }
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:171:44: error: no exact matches in call to global function 'exp'
169 |             for i in 0..<d { mx = max(mx, v[base + i]) }
170 |             var sum: Float = 0
171 |             for i in 0..<d { v[base + i] = exp(v[base + i] - mx); sum += v[base + i] }
    |                                            `- error: no exact matches in call to global function 'exp'
172 |             for i in 0..<d { v[base + i] /= sum }
173 |         }
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:171:44: error: no 'exp' candidates produce the expected contextual result type 'Float'
169 |             for i in 0..<d { mx = max(mx, v[base + i]) }
170 |             var sum: Float = 0
171 |             for i in 0..<d { v[base + i] = exp(v[base + i] - mx); sum += v[base + i] }
    |                                            `- error: no 'exp' candidates produce the expected contextual result type 'Float'
172 |             for i in 0..<d { v[base + i] /= sum }
173 |         }
Foundation.exp:1:13: note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:128:8: note: 'exp' produces 'Double', not the expected contextual result type 'Float'
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: 'exp' produces 'Double', not the expected contextual result type 'Float'
129 | float expf(float __x);
130 | long double expl(long double __x);
[18/27] Compiling AlpacaCore CPUOps.swift
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:51:52: error: binary operator '+' cannot be applied to operands of type 'Float' and 'CGFloat'
 49 |     public static func silu(_ x: Tensor) throws -> Tensor {
 50 |         try requireF32(x, name: "silu")
 51 |         let v = try x.toFloatArray().map { $0 / (1 + exp(-$0)) }
    |                                                    |- error: binary operator '+' cannot be applied to operands of type 'Float' and 'CGFloat'
    |                                                    `- note: overloads for '+' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Float, Float)
 52 |         return try Tensor(v, shape: x.shape)
 53 |     }
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:51:47: error: binary operator '/' cannot be applied to two 'Float' operands
 49 |     public static func silu(_ x: Tensor) throws -> Tensor {
 50 |         try requireF32(x, name: "silu")
 51 |         let v = try x.toFloatArray().map { $0 / (1 + exp(-$0)) }
    |                                               |- error: binary operator '/' cannot be applied to two 'Float' operands
    |                                               `- note: overloads for '/' exist with these partially matching parameter lists: (CGFloat, CGFloat), (Double, Double), (Duration, Double), (Float, Float)
 52 |         return try Tensor(v, shape: x.shape)
 53 |     }
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:51:59: error: cannot convert value of type 'Float' to expected argument type 'Double'
 49 |     public static func silu(_ x: Tensor) throws -> Tensor {
 50 |         try requireF32(x, name: "silu")
 51 |         let v = try x.toFloatArray().map { $0 / (1 + exp(-$0)) }
    |                                                           `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 52 |         return try Tensor(v, shape: x.shape)
 53 |     }
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:51:54: error: no exact matches in call to global function 'exp'
 49 |     public static func silu(_ x: Tensor) throws -> Tensor {
 50 |         try requireF32(x, name: "silu")
 51 |         let v = try x.toFloatArray().map { $0 / (1 + exp(-$0)) }
    |                                                      `- error: no exact matches in call to global function 'exp'
 52 |         return try Tensor(v, shape: x.shape)
 53 |     }
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:171:44: error: no exact matches in call to global function 'exp'
169 |             for i in 0..<d { mx = max(mx, v[base + i]) }
170 |             var sum: Float = 0
171 |             for i in 0..<d { v[base + i] = exp(v[base + i] - mx); sum += v[base + i] }
    |                                            `- error: no exact matches in call to global function 'exp'
172 |             for i in 0..<d { v[base + i] /= sum }
173 |         }
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/AlpacaCore/Operations/CPUOps.swift:171:44: error: no 'exp' candidates produce the expected contextual result type 'Float'
169 |             for i in 0..<d { mx = max(mx, v[base + i]) }
170 |             var sum: Float = 0
171 |             for i in 0..<d { v[base + i] = exp(v[base + i] - mx); sum += v[base + i] }
    |                                            `- error: no 'exp' candidates produce the expected contextual result type 'Float'
172 |             for i in 0..<d { v[base + i] /= sum }
173 |         }
Foundation.exp:1:13: note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/math.h:128:8: note: 'exp' produces 'Double', not the expected contextual result type 'Float'
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: 'exp' produces 'Double', not the expected contextual result type 'Float'
129 | float expf(float __x);
130 | long double expl(long double __x);
BUILD FAILURE 6.1 android