11using Devito, PyCall, Test
22
3- @testset " ABox Expanding Source" begin
3+ @test_skip @ testset " ABox Expanding Source" begin
44 g = Grid (shape= (8 ,8 ), extent= (7.0 ,7.0 ))
55 nt = 3
66 coords = [0.5 2.5 ; 2.5 2.5 ; 0.5 4.5 ; 2.5 4.5 ]
2020# TODO (9/2/2025) - failing with decoupler, mloubout is looking into the issue
2121if get (ENV , " DEVITO_DECOUPLER" , " 0" ) != " 1"
2222 # TODO - 2024-08-15 JKW these two ABox tests are broken -- some kind of API change?
23- @testset " ABox Time Function" begin
23+ @test_skip @ testset " ABox Time Function" begin
2424 g = Grid (shape= (5 ,5 ), extent= (4.0 ,4.0 ))
2525 nt = 3
2626 coords = [2. 2. ;]
4646
4747# TODO (9/2/2025)- failing with decoupler, mloubout is looking into the issue
4848if get (ENV , " DEVITO_DECOUPLER" , " 0" ) != " 1"
49- @testset " ABox Intersection Time Function" begin
49+ @test_skip @ testset " ABox Intersection Time Function" begin
5050 mid = SubDomain (" mid" ,[(" middle" ,2 ,2 ),(" middle" ,0 ,0 )])
5151 g = Grid (shape= (5 ,5 ), extent= (4.0 ,4.0 ), subdomains= mid)
5252 nt = 3
@@ -73,7 +73,7 @@ if get(ENV, "DEVITO_DECOUPLER", "0") != "1"
7373 end
7474end
7575
76- @testset " FloatX dtypes with $(mytype) , $(DT) , $(CT) " for mytype ∈ [Float32, Float64], (nb, DT, CT) in zip ([8 , 16 ], [FloatX8, FloatX16], [UInt8, UInt16])
76+ @test_skip @ testset " FloatX dtypes with $(mytype) , $(DT) , $(CT) " for mytype ∈ [Float32, Float64], (nb, DT, CT) in zip ([8 , 16 ], [FloatX8, FloatX16], [UInt8, UInt16])
7777 g = Grid (shape= (5 ,5 ))
7878 dtype = DT (1.5f0 , 4.5f0 )
7979 atol = Devito. scale (dtype)
116116 @test all (data (f) .== 1.5f0 )
117117end
118118
119- @testset " FloatX addition" for DT ∈ (FloatX8, FloatX16)
119+ @test_skip @ testset " FloatX addition" for DT ∈ (FloatX8, FloatX16)
120120 dtype = DT (1.5f0 , 4.5f0 )
121121 a = dtype (1.5f0 )
122122 b = dtype (1.5f0 )
125125 @test Base.:+ (a,1.5f0 ) ≈ dtype (1.5f0 + 1.5f0 ). value
126126end
127127
128- @testset " FloatX subtraction" for DT ∈ (FloatX8, FloatX16)
128+ @test_skip @ testset " FloatX subtraction" for DT ∈ (FloatX8, FloatX16)
129129 dtype = DT (1.5f0 , 4.5f0 )
130130 a = dtype (3.0f0 )
131131 b = dtype (1.5f0 )
134134 @test Base.:- (a,1.5f0 ) ≈ dtype (3.0f0 - 1.5f0 ). value
135135end
136136
137- @testset " FloatX multiplication" for DT ∈ (FloatX8, FloatX16)
137+ @test_skip @ testset " FloatX multiplication" for DT ∈ (FloatX8, FloatX16)
138138 dtype = DT (1.5f0 , 4.5f0 )
139139 a = dtype (1.5f0 )
140140 b = dtype (1.5f0 )
143143 @test Base.:* (a,1.5f0 ) ≈ dtype (1.5f0 * 1.5f0 ). value
144144end
145145
146- @testset " FloatX division" for DT ∈ (FloatX8, FloatX16)
146+ @test_skip @ testset " FloatX division" for DT ∈ (FloatX8, FloatX16)
147147 dtype = DT (1.5f0 , 4.5f0 )
148148 a = dtype (3.0f0 )
149149 b = dtype (1.5f0 )
152152 @test Base.:/ (a,1.5f0 ) ≈ dtype (3.0f0 / 1.5f0 ). value
153153end
154154
155- @testset " FloatX comparison" for DT ∈ (FloatX8, FloatX16)
155+ @test_skip @ testset " FloatX comparison" for DT ∈ (FloatX8, FloatX16)
156156 dtype = DT (1.5f0 , 4.5f0 )
157157 a = dtype (1.5f0 )
158158 b = dtype (1.5f0 )
@@ -164,20 +164,26 @@ end
164164 @test Base. isapprox (a,1.5f0 )
165165end
166166
167- @testset " FloatX convert" for DT ∈ (FloatX8, FloatX16)
167+ @test_skip @ testset " FloatX convert" for DT ∈ (FloatX8, FloatX16)
168168 dtype = DT (1.5f0 , 4.5f0 )
169169 a = dtype (1.5f0 )
170170 @test Base. convert (typeof (a),1.5f0 ) == a
171171 @test Base. convert (Float32,a) ≈ 1.5f0
172172end
173173
174- @testset " FloatX eps with $(mytype) , $(DT) , $(CT) " for mytype ∈ [Float32, Float64], (DT, CT) in zip ([FloatX8, FloatX16], [UInt8, UInt16])
175- g = Grid (shape= (5 ,5 ))
176- dtype = DT (mytype (1.5 ), mytype (4.5 ))
177- @test eps (dtype) ≈ eps (mytype)
174+ @testset " FloatX promote_rule tests" begin
175+ fmin,fmax = 1.5 , 4.5
176+ f32u08 = Devito. FloatX {fmin,fmax,Float32,UInt8} (Float32 (2 ))
177+ f32u16 = Devito. FloatX {fmin,fmax,Float32,UInt16} (Float32 (2 ))
178+ f64u08 = Devito. FloatX {fmin,fmax,Float64,UInt8} (Float64 (2 ))
179+ f64u16 = Devito. FloatX {fmin,fmax,Float64,UInt16} (Float64 (2 ))
180+ @test promote_type (typeof (f32u08), typeof (f32u16)) == typeof (f32u16)
181+ @test promote_type (typeof (f64u08), typeof (f64u16)) == typeof (f64u16)
182+ @test promote_type (typeof (f32u08), typeof (f64u08)) == typeof (f64u08)
183+ @test promote_type (typeof (f32u08), typeof (f64u16)) == typeof (f64u16)
178184end
179185
180- @testset " FloatX arrays with $(mytype) , $(DT) , $(CT) , autopad=$(autopad) " for mytype ∈ [Float32, Float64], (DT, CT) in zip ([FloatX8, FloatX16], [UInt8, UInt16]), autopad ∈ (true ,false )
186+ @test_skip @ testset " FloatX arrays with $(mytype) , $(DT) , $(CT) , autopad=$(autopad) " for mytype ∈ [Float32, Float64], (DT, CT) in zip ([FloatX8, FloatX16], [UInt8, UInt16]), autopad ∈ (true ,false )
181187 configuration! (" autopadding" , autopad)
182188 g = Grid (shape= (5 ,5 ))
183189 dtype = DT (mytype (- 1.1 ), mytype (+ 1.1 ))
@@ -189,11 +195,17 @@ end
189195 @test isapprox (Devito. decompress .(data (f)), Devito. decompress .(data (g)))
190196end
191197
198+ @test_skip @testset " FloatX eps with $(mytype) , $(DT) , $(CT) " for mytype ∈ [Float32, Float64], (DT, CT) in zip ([FloatX8, FloatX16], [UInt8, UInt16])
199+ g = Grid (shape= (5 ,5 ))
200+ dtype = DT (mytype (1.5 ), mytype (4.5 ))
201+ @test eps (dtype) ≈ eps (mytype)
202+ end
203+
192204devito_arch = get (ENV , " DEVITO_ARCH" , " gcc" )
193205
194206# TODO (9/2/2025) - failing with decoupler, mloubout is looking into the issue
195207if get (ENV , " DEVITO_DECOUPLER" , " 0" ) != " 1"
196- @testset " CCall with printf" begin
208+ @test_skip @ testset " CCall with printf" begin
197209 # CCall test written to use gcc
198210 carch = devito_arch in [" gcc" , " clang" ] ? devito_arch : " gcc"
199211 @pywith switchconfig (;compiler= get (ENV , " CC" , carch)) begin
@@ -225,7 +237,7 @@ compression = []
225237(lowercase (devito_arch) == " nvc" ) && (push! (compression, " bitcomp" ))
226238(lowercase (devito_arch) in [" gcc" , " clang" ]) && (push! (compression, " cvxcompress" ))
227239
228- @testset " Serialization with compression=$(compression) " for compression in compression
240+ @test_skip @ testset " Serialization with compression=$(compression) " for compression in compression
229241 if compression == " bitcomp"
230242 configuration! (" compiler" , " nvc" )
231243 else
@@ -268,7 +280,7 @@ compression = []
268280 end
269281end
270282
271- @testset " Serialization serial2str" begin
283+ @test_skip @ testset " Serialization serial2str" begin
272284 nt = 11
273285 space_order = 8
274286 grid = Grid (shape= (21 ,21 ,21 ), dtype= Float32)
287299end
288300
289301# JKW: removing for now, not sure what is even being tested here
290- # @testset "Serialization with CCall T=$T" for T in (Float32,Float64)
302+ # @test_skip @ testset "Serialization with CCall T=$T" for T in (Float32,Float64)
291303# space_order = 2
292304# time_M = 3
293305# filename = "testserialization.bin"
0 commit comments