PIC - Portable Fortran Utility Library

User Guide to PIC

A portable Fortran utility library for scientific computing


PIC (a Huastec word meaning “otter”) is a portable Fortran utility library providing commonly needed features with first-class support across multiple compilers.

Why PIC?

The Fortran ecosystem lacks a standard library that compiles reliably across all compilers. While the Fortran stdlib project aims to fill this gap, it doesn’t build on compilers like nvfortran. PIC exists to provide portable utilities that work everywhere.

Key Features:

  • Strings, logging, timers, arrays, sorting, hashing

  • Tested on GNU, Intel, NVIDIA HPC, LFortran, Cray, and Flang

  • Two build systems: CMake and FPM

  • MIT licensed and open source

Quick Start:

program main
   use pic, only: pic_print_banner
   implicit none

   call pic_print_banner()

end program main

Indices and tables