diff --git a/examples/03-dpnp2numba-dpex.py b/examples/03-dpnp2numba-dpex.py index 3c2f6ac..daf8bf9 100644 --- a/examples/03-dpnp2numba-dpex.py +++ b/examples/03-dpnp2numba-dpex.py @@ -27,10 +27,12 @@ import dpnp as np from numba_dpex import njit -@njit(parallel=True, fastmath=True) + +@njit(fastmath=True) def sum_it(x): # Device queue is inferred from x. The kernel is submitted to that queue return np.sum(x) + x = np.empty(3) try: x = np.asarray([1, 2, 3], device="gpu") diff --git a/examples/04-dpctl_device_query.py b/examples/04-dpctl_device_query.py index 01acaff..1188730 100644 --- a/examples/04-dpctl_device_query.py +++ b/examples/04-dpctl_device_query.py @@ -30,4 +30,3 @@ print("GPU devices:", dpctl.get_devices(device_type="gpu")) # Get the list of all GPU devices print("Number of GPU devices", dpctl.get_num_devices(device_type="gpu")) # Get the number of GPU devices print("Has CPU devices?", dpctl.has_cpu_devices()) # Check if there are CPU devices -print("Has host device?", dpctl.has_host_device()) # Check if there is the host device