Skip to content

Commit a4e17a1

Browse files
Exclude cuda branch from coverage report
1 parent dadfe9d commit a4e17a1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

dpnp/fft/dpnp_utils_fft.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,9 @@ def _fft(a, norm, out, forward, in_place, c2c, axes, batch_fft=True):
397397

398398
# cuFFT requires input arrays to be C-contiguous (row-major)
399399
# for correct execution
400-
if dpnp.is_cuda_backend(a) and not a.flags.c_contiguous:
400+
if (
401+
dpnp.is_cuda_backend(a) and not a.flags.c_contiguous
402+
): # pragma: no cover
401403
a = dpnp.ascontiguousarray(a)
402404

403405
# w/a for cuFFT to avoid "Invalid strides" error when
@@ -406,7 +408,7 @@ def _fft(a, norm, out, forward, in_place, c2c, axes, batch_fft=True):
406408
# TODO: Remove this ones the OneMath issue is resolved
407409
# https://github.com/uxlfoundation/oneMath/issues/631
408410
cufft_wa = dpnp.is_cuda_backend(a) and a.shape[-1] == 1 and len(axes) > 1
409-
if cufft_wa:
411+
if cufft_wa: # pragma: no cover
410412
a = dpnp.moveaxis(a, -1, -2)
411413

412414
a_strides = _standardize_strides_to_nonzero(a.strides, a.shape)
@@ -417,7 +419,7 @@ def _fft(a, norm, out, forward, in_place, c2c, axes, batch_fft=True):
417419
res = _scale_result(res, a.shape, norm, forward, index)
418420

419421
# Revert swapped axes
420-
if cufft_wa:
422+
if cufft_wa: # pragma: no cover
421423
res = dpnp.moveaxis(res, -1, -2)
422424

423425
if batch_fft:

0 commit comments

Comments
 (0)