Skip to content

Commit

Permalink
Merge branch 'refactor/kernel_interfaces' of https://github.com/Intel…
Browse files Browse the repository at this point in the history
…Python/numba-dpex into refactor/kernel_interfaces
  • Loading branch information
diptorupd committed Jan 11, 2023
2 parents dd47913 + 3dd71c8 commit 1395e18
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions numba_dpex/tests/kernel_tests/test_ndrange_exceptions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2020 - 2022 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
import dpnp
import dpctl.tensor as dpt
import pytest

import numba_dpex as ndpx
Expand Down Expand Up @@ -29,11 +29,10 @@ def test_ndrange_config_error(error, ndrange):
"""Test if a exception is raised when calling a
ndrange kernel with unspported arguments.
"""
N = 10

a = dpnp.random.random(N)
b = dpnp.random.random(N)
c = dpnp.ones_like(a)
a = dpt.ones(1024, dtype=dpt.int32, device="0")
b = dpt.ones(1024, dtype=dpt.int32, device="0")
c = dpt.zeros(1024, dtype=dpt.int64, device="0")

with pytest.raises(error):
kernel_vector_sum[ndrange](a, b, c)

0 comments on commit 1395e18

Please sign in to comment.