Hi everyone,

This weekend marks the end of the community bonding period for GSoC '22, and
here’s my progress so far with the GSoC project on Fortran DO CONCURRENT.

I've initialized a GCC mirror on GitHub where I plan to track all patches that
I will create during the GSoC:
<https://github.com/wyphan/gfortran-do-concurrent>

I met with Tobias over a MS Teams call on May 30, 2022. Together, we picked GCC
PR# 102003 as a good starter issue to start delving into the Fortran parser in
GCC. He also guided me through how to debug the compiler using gdb. Tobias,
thanks a lot for spending some of your (technically) vacation time with me!

In the meantime, I’ve implemented a simple build script system for GCC that I
christen "GCCprefab". Before this build system existed, there are only two
relatively easy ways to build GCC painlessly:

1. Using Spack package manager: `spack install gcc'
2. Using the install script for OpenCoarrays
<https://github.com/sourceryinstitute/OpenCoarrays>

The name pays homage to _prefab_ricated buildings such as sheds/barns (even
sections of houses) that are commonly sold in the US at hardware stores such as
Home Depot or Lowe’s. It’s arguably an overengineered solution to my laziness
having to memorize all the different configure flags when building GCC from
sources.

Right now, GCCprefab has the following features:

- One single script written in Bash
- One single argument: a config file written in a custom format inspired by
  Spack spec syntax and the Windows INI / TOML format for configuration files
- Clones the main GCC Git repo, or a custom mirror of your choice
- Upon execution, logs standard output for each phase of the build process into
  a timestamped log file, which is xz-compressed after each phase completes
  successfully
- Licensed under the FSF-compatible Apache 2.0 license

To try it out, you can head over to my GitHub repo:
<https://github.com/wyphan/gccprefab>

Please feel free to open an issue there if you found a bug or to suggest new
features. Pull requests are welcome too!

Also, please feel free to jump in anytime to the discussion thread at the
Fortran-lang Discourse forums:
<
https://fortran-lang.discourse.group/t/gsoc-2022-accelerating-fortran-do-concurrent-in-gcc/3269
>

Thanks,
Wil

Reply via email to