Skip to content

Commit

Permalink
Removed device selection in atomic_op.py to pass CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
mingjie-intel committed Dec 7, 2022
1 parent 0a8262a commit aa52db8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 2 additions & 7 deletions numba_dpex/examples/kernel/atomic_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

import numba_dpex as ndpex

N = 10


@ndpex.kernel
def atomic_reduction(a):
Expand All @@ -16,14 +14,11 @@ def atomic_reduction(a):


def main():
try:
a = np.arange(N, device="gpu")
except:
print("No GPU device")
N = 10
a = np.arange(N)

print("Using device ...")
print(a.device)
print("a=", a)

atomic_reduction[N, ndpex.DEFAULT_LOCAL_SIZE](a)
print("Reduction sum =", a[0])
Expand Down
1 change: 0 additions & 1 deletion numba_dpex/examples/kernel/interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# SPDX-License-Identifier: Apache-2.0

import dpnp as np
import numpy
from numba import float32
from numpy.testing import assert_almost_equal

Expand Down

0 comments on commit aa52db8

Please sign in to comment.