~magnusmorton/delayrepay

5b9ae49a140b70416f04774ff108054e2ea08e4f — Magnus Morton 6 months ago c41ab9c
removed contrived
1 files changed, 0 insertions(+), 26 deletions(-)

D tests/contrived.py
D tests/contrived.py => tests/contrived.py +0 -26
@@ 1,26 0,0 @@
import sys
import importlib
from time import perf_counter

pkg = sys.argv[1]
np = importlib.import_module(pkg)


LAPTOP_MAX = 19999000

size = LAPTOP_MAX
data = np.random.random((size,))
x = np.random.random((size,))
y = np.random.random((size,))
z = np.random.random((size,))
xx = np.random.random((size,))
yy = np.random.random((size,))
zz = np.random.random((size,))

#@cupy.fuse(kernel_name='func')
res = data * x * y * z * xx + yy/zz * data * 2
#then = perf_counter()
print(res)
#now = perf_counter()

#rint(f"time: {now-then}")