Skip to content

Commit

Permalink
Merge pull request #566 from aturner-epcc/aturner-epcc/gcc12
Browse files Browse the repository at this point in the history
Adds note on how to use GCC 12
  • Loading branch information
juanfrh authored Dec 20, 2023
2 parents 499000a + 1a143f1 commit 6046a0f
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion docs/user-guide/dev-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ environments.
!!! warning
Intel compilers are not currently available on ARCHER2.


### GNU compiler collection (GCC)

The commonly used open source GNU compiler collection is available and
Expand Down Expand Up @@ -368,6 +367,25 @@ Due to MODULEPATH changes, the following have been reloaded:
`-fallow-argument-mismatch` to reduce the error to a warning. The same
effect may be achieved via `-std=legacy`.

#### Using GCC 12.x on ARCHER2

GCC 12.x compilers are available on ARCHER2 for users who wish to access
newer features (particularly C++ features).

Testing by the CSE service has
identified that some software regression tests produce different results
from the reference values when using software compiled with gfortran from
GCC 12.x so we do not recommend its general use by users. Users should
carefully check results from software built using compilers from GCC 12.x
before using it for their research projects.

You can access GCC 12.x by using the commands:

```
module load extra-compilers
module load PrgEnv-gnu
```

#### Reference material

- C/C++ documentation
Expand Down

0 comments on commit 6046a0f

Please sign in to comment.