Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 1003 Bytes

File metadata and controls

46 lines (27 loc) · 1003 Bytes

OSSFE Tutorial

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.


What is Pyccel?

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.


How to Run the Demo

1. Build and Run Docker Container

docker build -t pyccel_env .
docker run -it -v $(pwd):/workspace pyccel_env

2. Compile Python Code with Pyccel

Inside your container:

pyccel ossfe_demo.py

3. Execute Compiled Code

Run the compiled version seamlessly within Python:

from ossfe_demo import greet_ossfe
greet_ossfe()

Resources