Skip to content

Commit 7dd62c1

Browse files
Submit to black on files from example/
1 parent cb9aa13 commit 7dd62c1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

examples/cython/sycl_buffer/bench.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
import dpctl
2323

24-
X = np.full((10 ** 4, 4098), 1e-4, dtype="d")
24+
X = np.full((10**4, 4098), 1e-4, dtype="d")
2525

2626
# warm-up
2727
print("=" * 10 + " Executing warm-up " + "=" * 10)

examples/cython/sycl_direct_linkage/bench.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import numpy as np
2020
import syclbuffer_naive as sb
2121

22-
X = np.full((10 ** 4, 4098), 1e-4, dtype="d")
22+
X = np.full((10**4, 4098), 1e-4, dtype="d")
2323

2424
# warm-up
2525
print("=" * 10 + " Executing warm-up " + "=" * 10)

examples/cython/usm_memory/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def gen_option_params(
6161
np.allclose(Xgpu, X_ref, atol=1e-5),
6262
)
6363

64-
n_opts = 3 * 10 ** 6
64+
n_opts = 3 * 10**6
6565

6666
# compute on CPU sycl device
6767

examples/pybind11/use_dpctl_syclqueue/example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
print("")
3737
print("Computing modular reduction using SYCL on a NumPy array")
3838

39-
X = np.random.randint(low=1, high=2 ** 16 - 1, size=10 ** 6, dtype=np.longlong)
39+
X = np.random.randint(low=1, high=2**16 - 1, size=10**6, dtype=np.longlong)
4040
modulus_p = 347
4141

4242
Y = eg.offloaded_array_mod(

examples/python/usm_memory_host_access.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
# populate buffer from host one byte at a type
3535
for i in range(len(ms)):
3636
ir = i % 256
37-
msv[i] = ir ** 2 % 256
37+
msv[i] = ir**2 % 256
3838

3939
mh = dpmem.MemoryUSMHost(64)
4040
mhv = memoryview(mh)

0 commit comments

Comments
 (0)