Skip to content

Commit efe26d4

Browse files
committed
tests: Add safemath for icc in sparse_time_function test
1 parent 851f488 commit efe26d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_dimension.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Dimension, DefaultDimension, SubDimension, switchconfig,
1111
SubDomain, Lt, Le, Gt, Ge, Ne, Buffer, sin, SpaceDimension,
1212
CustomDimension, dimensions, configuration)
13-
from devito.arch.compiler import OneapiCompiler
13+
from devito.arch.compiler import IntelCompiler, OneapiCompiler
1414
from devito.ir.iet import (Conditional, Expression, Iteration, FindNodes,
1515
FindSymbols, retrieve_iteration_tree)
1616
from devito.symbolics import indexify, retrieve_functions, IntDiv
@@ -1384,7 +1384,7 @@ def test_affiness(self):
13841384
assert all(i.is_Affine for i in iterations)
13851385

13861386
@switchconfig(condition=isinstance(configuration['compiler'],
1387-
OneapiCompiler), safe_math=True)
1387+
(IntelCompiler, OneapiCompiler)), safe_math=True)
13881388
def test_sparse_time_function(self):
13891389
nt = 20
13901390

0 commit comments

Comments
 (0)