Skip to content

Commit eca1824

Browse files
committed
adding enumerate method for choosing backend
1 parent 8747407 commit eca1824

File tree

17 files changed

+63
-52
lines changed

17 files changed

+63
-52
lines changed

examples/local/abcTasks/py_source/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
def main():
55

66
# Initialize taskr with the wanted compute manager backend and number of PUs
7-
t = taskr.taskr("threading", 2)
7+
t = taskr.taskr(taskr.HiCRBackend.threading, 2)
88

99
# Get the runtime
1010
runtime = t.get_runtime()

examples/local/conditionVariable/py_source/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
def main():
2727

2828
# Initialize taskr with the wanted compute manager backend and number of PUs
29-
t = taskr.taskr("nosv")
29+
t = taskr.taskr()
3030

3131
# Get the runtime
3232
runtime = t.get_runtime()

examples/local/energySaver/py_source/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def main():
3030
print(sys.argv, workTaskCount, secondsDelay, iterations)
3131

3232
# Initialize taskr with the wanted compute manager backend and number of PUs
33-
t = taskr.taskr("threading")
33+
t = taskr.taskr(taskr.HiCRBackend.threading)
3434

3535
# Get the runtime
3636
runtime = t.get_runtime()

examples/local/fibonacci/py_source/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def main():
2525
if len(sys.argv) > 1: initialValue = int(sys.argv[1])
2626

2727
# Initialize taskr with the wanted compute manager backend and number of PUs
28-
t = taskr.taskr("nosv")
28+
t = taskr.taskr(taskr.HiCRBackend.nosv)
2929

3030
# Get the runtime
3131
runtime = t.get_runtime()

examples/local/manyParallel/py_source/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def main():
2626
if len(sys.argv) > 2: branchCount = int(sys.argv[2])
2727

2828
# Initialize taskr with the wanted compute manager backend and number of PUs
29-
t = taskr.taskr("threading")
29+
t = taskr.taskr(taskr.HiCRBackend.threading)
3030

3131
# Get the runtime
3232
runtime = t.get_runtime()

examples/local/multiJob/py_source/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
def main():
2323

2424
# Initialize taskr with the wanted compute manager backend and number of PUs
25-
t = taskr.taskr("threading")
25+
t = taskr.taskr(taskr.HiCRBackend.threading)
2626

2727
# Get the runtime
2828
runtime = t.get_runtime()

examples/local/mutex/py_source/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
def main():
2121

2222
# Initialize taskr with the wanted compute manager backend and number of PUs
23-
t = taskr.taskr("threading")
23+
t = taskr.taskr(taskr.HiCRBackend.threading)
2424

2525
# Get the runtime
2626
runtime = t.get_runtime()

examples/local/pendingOperation/py_source/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
def main():
2121

2222
# Initialize taskr with the wanted compute manager backend and number of PUs
23-
t = taskr.taskr("nosv")
23+
t = taskr.taskr(taskr.HiCRBackend.nosv)
2424

2525
# Get the runtime
2626
runtime = t.get_runtime()

examples/local/resourceList/py_source/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def main():
4141
sys.exit(1)
4242

4343
# Initialize taskr with the wanted compute manager backend and number of PUs
44-
t = taskr.taskr("threading", coreSubset)
44+
t = taskr.taskr(taskr.HiCRBackend.threading, coreSubset)
4545

4646
# Get the runtime
4747
runtime = t.get_runtime()

examples/local/simple/py_source/main.py

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

2020
def main():
2121
# Initialize taskr with the wanted compute manager backend and number of PUs
22-
t = taskr.taskr("nosv")
22+
t = taskr.taskr(taskr.HiCRBackend.nosv, 2)
2323

2424
# Get the runtime
2525
runtime = t.get_runtime()

0 commit comments

Comments
 (0)