Skip to content

Commit 2967856

Browse files
sakchalsyurkevi
authored andcommitted
benchmark fixes
1 parent d1115e2 commit 2967856

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

examples/benchmarks/bench_blas.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/python
22

33
#######################################################
4-
# Copyright (c) 2015, ArrayFire
4+
# Copyright (c) 2024, ArrayFire
55
# All rights reserved.
66
#
77
# This file is distributed under 3-clause BSD license.
@@ -15,7 +15,6 @@
1515

1616
import arrayfire as af
1717

18-
# TODO: Remove -1 from sync() after default value has been put in
1918
try:
2019
import numpy as np
2120
except ImportError:

examples/benchmarks/bench_fft.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
#!/usr/bin/python
2+
3+
#######################################################
4+
# Copyright (c) 2024, ArrayFire
5+
# All rights reserved.
6+
#
7+
# This file is distributed under 3-clause BSD license.
8+
# The complete license agreement can be obtained at:
19
# http://arrayfire.com/licenses/BSD-3-Clause
210
########################################################
311

examples/benchmarks/monte_carlo_pi.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,10 @@
1313
from random import random
1414
from time import time
1515

16-
import arrayfire as af
16+
import numpy as np
1717

18-
try:
19-
import numpy as np
20-
except ImportError:
21-
np = None # type: ignore[assignment]
18+
import arrayfire as af
2219

23-
#TODO: Remove Python2 support?
24-
# alias range / xrange because xrange is faster than range in python2
2520
try:
2621
frange = xrange # type: ignore[name-defined]
2722
except NameError:

0 commit comments

Comments
 (0)