From 206cc599ec1f16ea6f8439ed97dc5b00c82261f2 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Mon, 7 Sep 2026 09:55:26 -0400 Subject: [PATCH 1/3] Add 32-bit Core CI lane via test_groups.toml Opt into SciML/.github arch=x86 testing with a matrix-only Core alias. --- test/test_groups.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_groups.toml b/test/test_groups.toml index 2185e4e..a93fa55 100644 --- a/test/test_groups.toml +++ b/test/test_groups.toml @@ -1,6 +1,12 @@ [Core] versions = ["lts", "1", "pre"] +["Core 32-bit"] +group = "Core" +versions = ["1"] +os = ["ubuntu-latest"] +arch = "x86" + [AD] versions = ["lts", "1"] From b5e4baac8525bb56088fc05e3c6f18e933ae4bb2 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Mon, 7 Sep 2026 10:20:37 -0400 Subject: [PATCH 2/3] Use coarser fastpower grids on 32-bit Dense 0.001-step product grids overflow Int32 allocation sizes on x86 (`invalid GenericMemory size`). Keep full grids on 64-bit; thin them on 32-bit while covering the same domains for the new CI lane. Co-authored-by: Cursor --- test/fast_pow_tests.jl | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/test/fast_pow_tests.jl b/test/fast_pow_tests.jl index 97714bf..698d232 100644 --- a/test/fast_pow_tests.jl +++ b/test/fast_pow_tests.jl @@ -3,11 +3,21 @@ using Test @test fastpower(1, 1) isa Float64 @test fastpower(1.0, 1.0) isa Float64 -errors = [abs(^(x, y) - fastpower(x, y)) for x in 0.001:0.001:1, y in 0.08:0.001:0.5] + +# Dense grids below allocate O(nx*ny) Float64s. On 32-bit the product length / +# allocation size overflows Int32 (`invalid GenericMemory size`), so use a +# coarser grid when WORD_SIZE != 64 while still covering the same domains. +const X_FINE = Sys.WORD_SIZE == 64 ? (0.001:0.001:1) : (0.001:0.01:1) +const Y_FINE = Sys.WORD_SIZE == 64 ? (0.08:0.001:0.5) : (0.08:0.01:0.5) +const Y_WIDE = Sys.WORD_SIZE == 64 ? (0.08:0.001:1000.0) : (0.08:0.05:1000.0) +const X_WIDE = Sys.WORD_SIZE == 64 ? (0.001:0.001:100) : (0.001:0.05:100) +const Y_UNIT = Sys.WORD_SIZE == 64 ? (0.08:0.001:1.0) : (0.08:0.01:1.0) + +errors = [abs(^(x, y) - fastpower(x, y)) for x in X_FINE, y in Y_FINE] @test maximum(errors) < 1.0e-4 -errors = [abs(^(x, y) - fastpower(x, y)) for x in 0.001:0.001:1, y in 0.08:0.001:1000.0] +errors = [abs(^(x, y) - fastpower(x, y)) for x in X_FINE, y in Y_WIDE] @test maximum(errors) < 1.0e-3 -errors = [abs(^(x, y) - fastpower(x, y)) for x in 0.001:0.001:100, y in 0.08:0.001:1.0] +errors = [abs(^(x, y) - fastpower(x, y)) for x in X_WIDE, y in Y_UNIT] @test maximum(errors) < 1.0e-2 From effc99b9272487b833065a12f888c9d7976e4946 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Mon, 7 Sep 2026 10:23:19 -0400 Subject: [PATCH 3/3] Retrigger CI for 32-bit lane Co-authored-by: Cursor