Sign up for our newsletter and get the latest HPC news and analysis.

Porting to Accelerators with Hybrid Fortran

Hybrid Fortran unified code: Separate loop structures for CPU and GPU, automatic code conversion to higher dimensions when needed.

Over at Typhoon Computing, Michel Müller writes programmers looking to port their code to accelerators now have a new tool called Hybrid Fortran. “This python-based preprocessor parses annotations together with your Fortran code structure, declarations, accessors and procedure calls, and then writes separate versions of your code – once for CPU with OpenMP parallelization and once for GPU with CUDA Fortran.”