-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.py
28 lines (22 loc) · 947 Bytes
/
run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import sys
def main(implementation=None):
if implementation == 'py':
from python_source.py.py_cellular import main as _main
elif implementation == 'py_opt':
from python_source.py.py_opt_cellular import main as _main
elif implementation == 'cy':
from python_source.cy.cy_py_cellular import main as _main
elif implementation == 'cy_opt':
from python_source.cy.cy_py_opt_cellular import main as _main
elif implementation == 'cy_opt_old':
from python_source.cy.cy_py_opt_old_cellular import main as _main
elif implementation == 'cppyy_opt':
from python_source.cppyy.cppyy_opt_cellular import main as _main
elif implementation == 'pybind11_opt':
from python_source.pybind11.pybind11_opt_cellular import main as _main
else:
print('Unknown implementation: ', implementation)
exit(0)
_main()
if __name__ == '__main__':
main(sys.argv[1])