This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Gfortran on Windows (mingw32) with OpenMP
- From: "François-Xavier Coudert" <fxcoudert at gmail dot com>
- To: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>
- Cc: "Henry Kar Ming Chan" <karminghenry at yahoo dot com>
- Date: Fri, 2 Jun 2006 10:39:19 +0200
- Subject: Gfortran on Windows (mingw32) with OpenMP
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=OCsLDTpKSMPnnPGco+cwv1+g1d9oWmVZs0XXwtxpSZiCjqt0uS+Gz5dXzH0aSJu19WZIuJga/eICREkhLQcqiZHyE4wxYat+vwHw+EEc28zoVaj/i1TRcohhQAiXpBw3kxxtw/7K0u5NdRrbCaAlmg+kMvYL4cco0X3L6ZqLwBA=
Hi all,
I just built a Windows version of gfortran that includes OpenMP
support. It is available for download here:
http://quatramaran.ens.fr/~coudert/gfortran/gfortran-windows-openmp-20060601.exe
This was done using mingw32 and the pthreads library for Win32
(http://sourceware.org/pthreads-win32/). Thanks to all the guys behing
these projects who made this possible!
I don't use OpenMP much myself (and don't use Windows much either), so
I'm calling for people to test this compiler: if you're interested,
download the installer from the link above, install gfortran and test
it with command-lines such as:
gfortran.exe -fopenmp hello_omp.f -o hello_omp.exe
where -fopenmp is the option that enables OpenMP. You can then run the
binary and set the
OMP_NUM_THREADS environment variable to whatever number of threads you
want). The installer also includes a C compiler and standard
development tools.
Please reply to this message, keeping the list in Cc, if you have any
question, comment or bug-report. Once the testing phase is over, I
intend to make this OpenMP-capable version the default for my Windows
binaries of gfortran.
PS: a non-OpenMP gfortran package for Windows is also available
(http://quatramaran.ens.fr/~coudert/gfortran/gfortran-windows-20060531.exe)
Post-PS: when the testing phase is over, I will submit the
corresponding (small) patch for inclusion into mainline, of course...