Skip to content

Commit

Permalink
doc: update gcc example in NEWS/index
Browse files Browse the repository at this point in the history
  • Loading branch information
xdelaruelle committed Jan 28, 2025
1 parent eac74a9 commit 2ccffda
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ Quick examples

Here is an example of loading a module on a Linux machine under bash.

$ module load gcc/9.4.0
$ module load gcc/12.4.0
$ which gcc
$ /usr/local/gcc/9.4.0/linux-x86_64/bin/gcc
$ /usr/local/gcc/12.4.0/linux-x86_64/bin/gcc

Now we'll switch to a different version of the module

$ module switch gcc gcc/10
$ module switch gcc/14
$ which gcc
/usr/local/gcc/10.3.0/linux-x86_64/bin/gcc
/usr/local/gcc/14.2.0/linux-x86_64/bin/gcc

And now we'll unload the module altogether

Expand All @@ -56,9 +56,9 @@ And now we'll unload the module altogether

Now we'll log into a different machine, using a different shell (tcsh).

% module load gcc/10.3
% module load gcc/14.2
% which gcc
/usr/local/gcc/10.3.0/linux-aarch64/bin/gcc
/usr/local/gcc/14.2.0/linux-aarch64/bin/gcc

Note that the command line is exactly the same, but the path has
automatically configured to the correct architecture.
Expand Down
12 changes: 6 additions & 6 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ Quick examples
Here is an example of loading a module on a Linux machine under bash.
::

$ module load gcc/9.4.0
$ module load gcc/12.4.0
$ which gcc
$ /usr/local/gcc/9.4.0/linux-x86_64/bin/gcc
$ /usr/local/gcc/12.4.0/linux-x86_64/bin/gcc

Now we'll switch to a different version of the module
::

$ module switch gcc gcc/10
$ module switch gcc/14
$ which gcc
/usr/local/gcc/10.3.0/linux-x86_64/bin/gcc
/usr/local/gcc/14.2.0/linux-x86_64/bin/gcc

And now we'll unload the module altogether
::
Expand All @@ -76,9 +76,9 @@ And now we'll unload the module altogether
Now we'll log into a different machine, using a different shell (tcsh).
::

% module load gcc/10.3
% module load gcc/14.2
% which gcc
/usr/local/gcc/10.3.0/linux-aarch64/bin/gcc
/usr/local/gcc/14.2.0/linux-aarch64/bin/gcc

Note that the command line is exactly the same, but the path has
automatically configured to the correct architecture.
Expand Down

0 comments on commit 2ccffda

Please sign in to comment.