Is Fortran or C++ code better optimized?

Hi Damian

just a few comments.

Parallel programming with Fortran and coarrrays (ISO standard), Fortran and MPI (MPI standard) and Fortran and openmp (openmp standard) are effectively hardware and operating system independent.

The Fortran examples Jane and I’ve written with all 3 of the above (coarrays, mpi and openmp) work with a wide range of compilers, hardware and operating systems.

Here is an MPI link

Here is an mpi link

Parallel programming with Fortran and gpus is limited to a quite narrow range of hardware, compilers and operating systems.

The system I’m on at the moment has an nvidia gpu, but Fortran access to it is restricted to the Nvidia compiler and toolsuite, and only from Linux. The Nvidia Fortran compiler is largely a Fortran 2003 standard compiler.

As a developer if I was going to develop portable parallel Fortran code most of my efforts would concentrate on coarrays, mpi and openmp.

I’ve been involved in Fortran for a long time and remember doing the initial system set up and install of a combined DEC and FPS system at Imperial College. Academics had to rewrite their code to run on the system. Porting from IBM, CDC, ICL, Cray etc to run on the system took a lot of effort.

Where are DEC and FPS now?

Just my 2 cents worth.

Ian Chivers

If anyone is interested we’ve written a small number of nvidia gpu examples
and have compared gpu offload with mpi, open mp and coarray solutions.

the notes and examples are available from our web sites.

6 Likes