This repository contains example files and setup instructions for demonstrating Pyccel, a Python-to-Fortran/C accelerator, presented at the Open Source Software for Fusion Energy (OSSFE) conference.
Pyccel is a Python package designed to translate performance-critical Python code into optimized, compiled Fortran or C extensions, significantly accelerating numerical computations while retaining the flexibility and ease-of-use of Python.
docker build -t pyccel_env .
docker run -it -v $(pwd):/workspace pyccel_env
Inside your container:
pyccel ossfe_demo.py
Run the compiled version seamlessly within Python:
from ossfe_demo import greet_ossfe
greet_ossfe()