Skip to content

Commit

Permalink
Removed some duplicate comments, as that was already in a node. Make …
Browse files Browse the repository at this point in the history
…sure it's clear the EESSI environment needs to be loaded before loading the module that was build on top
  • Loading branch information
Caspar van Leeuwen committed Oct 30, 2023
1 parent c5b59a3 commit 863fa02
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions docs/using_eessi/building_on_eessi.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,25 @@ eb netCDF-4.9.0-gompi-2022a.eb
!!! Note
If this netCDF module is available by the time you are trying, you can force a local rebuild by adding the `--force` argument in order to experiment with building locally, or pick a different EasyConfig to build.

### Adding your module directory to the `MODULEPATH`
Finally, we need to make sure this module is available on our `MODULEPATH`. The path where EasyBuild installs modules by default is `${EASYBUILD_INSTALLPATH}/modules/all`. You can add it to your modulepath by running:
### Using the newly build module
First, you'll need to add the subdirectory of the `EASYBUILD_INSTALLPATH` that contains the modules to the `MODULEPATH`. You can do that using:

```
module use ${EASYBUILD_INSTALLPATH}/modules/all
```

You may want to do this as part of your `.bashrc` (unless your system is heterogenous, since then the `module use` path may then be different per run - see the note above).
you may want to do this as part of your `.bashrc`.

!!! Note
Be careful adding to the `MODULEPATH` in your `.bashrc` if you are on a cluster with heterogeneous architectures. You don't want to pick up on a module that was not compiled for the correct architectures accidentally.

Since your module is build on top of the EESSI environment, that needs to be loaded first (as described [here](../using_eessi/setting_up_environment.md)), if you haven't already done so.

Now, we should be able to load our newly build module:
Finally, you should be able to load our newly build module:
```
module load netCDF/4.9.0-gompi-2022a
```

!!! Note
Be careful adding to the `MODULEPATH` in your `.bashrc` if you are on a cluster with heterogeneous architectures. You don't want to pick up on a module that was not compiled for the correct architectures accidentally.

## Manually building software op top of EESSI
Building software on top of EESSI would require your linker to use the same system-dependencies as the software in EESSI does. In other words: it requires you to link against libraries from the compatibility layer, instead of from your host OS.

Expand Down

0 comments on commit 863fa02

Please sign in to comment.