Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix[cartesian]: Fixing k offset write utest deactivate #1757

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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