Skip to content

Commit

Permalink
hotfix[cartesian]: Fixing k offset write utest deactivate (#1757)
Browse files Browse the repository at this point in the history
Missed a utest in #1755
  • Loading branch information
FlorianDeconinck authored Nov 29, 2024
1 parent 8860584 commit d9b38f4
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -582,13 +582,17 @@ def test_K_offset_write(backend):
# Cuda generates bad code for the K offset
if backend == "cuda":
pytest.skip("cuda K-offset write generates bad code")
if backend in ["gt:gpu", "dace:gpu"]:
if backend in ["dace:gpu"]:
import cupy as cp

if cp.cuda.runtime.runtimeGetVersion() < 12000:
pytest.skip(
f"{backend} backend with CUDA 11 and/or GCC 10.3 is not capable of K offset write, update CUDA/GCC if possible"
)
if backend in ["gt:gpu"]:
pytest.skip(
f"{backend} backend is not capable of K offset write, bug remains unsolved: https://github.com/GridTools/gt4py/issues/1754"
)

arraylib = get_array_library(backend)
array_shape = (1, 1, 4)
Expand Down Expand Up @@ -660,7 +664,7 @@ def backward(A: Field[np.float64], B: Field[np.float64], scalar: np.float64):
def test_K_offset_write_conditional(backend):
if backend == "cuda":
pytest.skip("Cuda backend is not capable of K offset write")
if backend in ["gt:gpu", "dace:gpu"]:
if backend in ["dace:gpu"]:
import cupy as cp

if cp.cuda.runtime.runtimeGetVersion() < 12000:
Expand Down

0 comments on commit d9b38f4

Please sign in to comment.