13
13
get_all_dtypes ,
14
14
get_complex_dtypes ,
15
15
get_float_dtypes ,
16
+ is_cuda_device ,
16
17
)
17
18
18
19
@@ -470,6 +471,13 @@ def setup_method(self):
470
471
@pytest .mark .parametrize ("norm" , ["forward" , "backward" , "ortho" ])
471
472
@pytest .mark .parametrize ("order" , ["C" , "F" ])
472
473
def test_fftn (self , dtype , axes , norm , order ):
474
+ if is_cuda_device ():
475
+ if order == "C" and axes == (0 , 1 , 2 ):
476
+ pass
477
+ elif order == "F" and axes == (- 1 , - 4 , - 2 ):
478
+ pass
479
+ else :
480
+ pytest .skip ("SAT-7587" )
473
481
x1 = numpy .random .uniform (- 10 , 10 , 120 )
474
482
x2 = numpy .random .uniform (- 10 , 10 , 120 )
475
483
a_np = numpy .array (x1 + 1j * x2 , dtype = dtype ).reshape (
@@ -512,6 +520,9 @@ def test_fftn_repeated_axes(self, axes):
512
520
@pytest .mark .parametrize ("axes" , [(2 , 3 , 3 , 2 ), (0 , 0 , 3 , 3 )])
513
521
@pytest .mark .parametrize ("s" , [(5 , 4 , 3 , 3 ), (7 , 8 , 10 , 9 )])
514
522
def test_fftn_repeated_axes_with_s (self , axes , s ):
523
+ if is_cuda_device ():
524
+ if axes == (0 , 0 , 3 , 3 ) and s == (7 , 8 , 10 , 9 ):
525
+ pytest .skip ("SAT-7587" )
515
526
x1 = numpy .random .uniform (- 10 , 10 , 120 )
516
527
x2 = numpy .random .uniform (- 10 , 10 , 120 )
517
528
a_np = numpy .array (x1 + 1j * x2 , dtype = numpy .complex64 ).reshape (
@@ -535,6 +546,11 @@ def test_fftn_repeated_axes_with_s(self, axes, s):
535
546
@pytest .mark .parametrize ("axes" , [(0 , 1 , 2 , 3 ), (1 , 2 , 1 , 2 ), (2 , 2 , 2 , 3 )])
536
547
@pytest .mark .parametrize ("s" , [(2 , 3 , 4 , 5 ), (5 , 4 , 7 , 8 ), (2 , 5 , 1 , 2 )])
537
548
def test_fftn_out (self , axes , s ):
549
+ if is_cuda_device ():
550
+ if axes == (0 , 1 , 2 , 3 ):
551
+ pytest .skip ("SAT-7587" )
552
+ elif s == (2 , 5 , 1 , 2 ) and axes in [(1 , 2 , 1 , 2 ), (2 , 2 , 2 , 3 )]:
553
+ pytest .skip ("SAT-7587" )
538
554
x1 = numpy .random .uniform (- 10 , 10 , 120 )
539
555
x2 = numpy .random .uniform (- 10 , 10 , 120 )
540
556
a_np = numpy .array (x1 + 1j * x2 , dtype = numpy .complex64 ).reshape (
@@ -1141,6 +1157,9 @@ def test_rfftn_repeated_axes_with_s(self, axes, s):
1141
1157
@pytest .mark .parametrize ("axes" , [(0 , 1 , 2 , 3 ), (1 , 2 , 1 , 2 ), (2 , 2 , 2 , 3 )])
1142
1158
@pytest .mark .parametrize ("s" , [(2 , 3 , 4 , 5 ), (5 , 6 , 7 , 9 ), (2 , 5 , 1 , 2 )])
1143
1159
def test_rfftn_out (self , axes , s ):
1160
+ if is_cuda_device ():
1161
+ if axes == (0 , 1 , 2 , 3 ) and s == (2 , 5 , 1 , 2 ):
1162
+ pytest .skip ("SAT-7587" )
1144
1163
x1 = numpy .random .uniform (- 10 , 10 , 120 )
1145
1164
a_np = numpy .array (x1 , dtype = numpy .float32 ).reshape (2 , 3 , 4 , 5 )
1146
1165
a = dpnp .asarray (a_np )
0 commit comments