Legacy Fortran to Python: High Performance Transpilation
Mohamed Wahib
In collab. with Anshu Dubey [ANL] 26th OCTOBER 2017 Dagstuhl Seminar
Legacy Fortran to Python: High Performance Transpilation Mohamed - - PowerPoint PPT Presentation
Legacy Fortran to Python: High Performance Transpilation Mohamed Wahib In collab. with Anshu Dubey [ANL] 26 th OCTOBER 2017 Dagstuhl Seminar This code is my asset, supercomputers, architectures come and ago; my code will be used in
Mohamed Wahib
In collab. with Anshu Dubey [ANL] 26th OCTOBER 2017 Dagstuhl Seminar
2
3
4
(i.e. #if #def )
(i.e. will the DSL be around in 5~10 years?)
“home” application
your original slow code
might not be readable
systematic solution, as DSLs
5
6
7
Fortran (Application) Annotated Python Behavior /Performance Metadata Hot Kernels Fortran (v1) Hot Kernels Fortran (v2) Runtime Translate Extract Interpret (CPython) Compile (f2py) Syntax Generate
8
9
Annotated Python Fortran (Opt. Target 1) Fortran (Opt. Target 2) Fortran Translate Generate
10
11
12
Defined subset (ex: adopting constraints enforced on FLASH kernel programmers)
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30