summaryrefslogtreecommitdiff
path: root/TS/baselines/gpu/randlist.py
diff options
context:
space:
mode:
authorJuan Gomez Luna <juan.gomez@safari.ethz.ch>2021-06-16 19:46:05 +0200
committerJuan Gomez Luna <juan.gomez@safari.ethz.ch>2021-06-16 19:46:05 +0200
commit3de4b495fb176eba9a0eb517a4ce05903cb67acb (patch)
treefc6776a94549d2d4039898f183dbbeb2ce013ba9 /TS/baselines/gpu/randlist.py
parentef5c3688c486b80a56d3c1cded25f2b2387f2668 (diff)
PrIM -- first commit
Diffstat (limited to 'TS/baselines/gpu/randlist.py')
-rw-r--r--TS/baselines/gpu/randlist.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/TS/baselines/gpu/randlist.py b/TS/baselines/gpu/randlist.py
new file mode 100644
index 0000000..6ebb4d8
--- /dev/null
+++ b/TS/baselines/gpu/randlist.py
@@ -0,0 +1,12 @@
+import os
+import sys
+import random
+
+
+#Generates a random list of floating point values between 0 and 10
+fd = open(sys.argv[2], "w")
+
+for i in range(0, int(sys.argv[1])):
+ fd.write(str(random.randint(0, 1000000000) / float(100000000)) + "\n")
+
+fd.close()