This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
guide:dell [2012/03/02 16:51] kevin created |
guide:dell [2021/12/09 16:42] (current) |
||
|---|---|---|---|
| Line 19: | Line 19: | ||
| These differences lead to methods of code development which are distinct from the rest of // | These differences lead to methods of code development which are distinct from the rest of // | ||
| However all the Dell nodes see the same ''/ | However all the Dell nodes see the same ''/ | ||
| + | |||
| + | |||
| + | =====Modifications to shell initialization scripts===== | ||
| + | |||
| + | The following modifications should be made to the shell initialization scripts of new users; current users will need to make these changes individually. These changes are effective only on the Dell nodes (to be exact, on any node which has a file ''/ | ||
| + | |||
| + | **'' | ||
| + | |||
| + | |||
| + | <code bash> | ||
| + | # Added for new Dell nodes: | ||
| + | if [ -f / | ||
| + | . /etc/bashrc | ||
| + | # Initialize CHPC modules: | ||
| + | . / | ||
| + | module load dell/ | ||
| + | fi | ||
| + | </ | ||
| + | |||
| + | |||
| + | **'' | ||
| + | |||
| + | <code bash> | ||
| + | # Added for new Dell nodes: | ||
| + | if [ -f / | ||
| + | . ~/.bashrc | ||
| + | fi | ||
| + | </ | ||
| + | |||
| + | |||
| + | These changes initialize the environment so that Dell-specific software is loaded into the search paths. | ||
| + | '' | ||
| + | |||
| + | **Please note that these changes are essential for proper operation of an account using the Dell compute nodes.** | ||
| + | |||
| + | Custom changes to '' | ||
| + | * customisations should appear in the files //after// the above sections | ||
| + | * customisations should //not overwrite// settings to '' | ||
| + | |||
| + | |||
| + | =====Code Development===== | ||
| + | |||
| + | To ensure compatibility of user code with the Dell nodes it is recommended that binaries intended to run on these are recompiled in the target environment. To this end, one node has been configured as a new login node: '' | ||
| + | Users should login to '' | ||
| + | |||
| + | ssh dell-login01 | ||
| + | |||
| + | Standard linux utilities and the GCC compilers are available on this node, but the Intel compilers 12.0 and Intel MPI are already loaded into the environment by the '' | ||
| + | |||
| + | icc -O3 -ip -xHOST -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread prog.c -o prog | ||
| + | |||
| + | where we are also dynamically linking the Intel MKL library (also recommended). Note that for MPI code, the above would become: | ||
| + | |||
| + | mpicc -O3 -ip -xHOST -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread prog.c -o prog | ||
| + | |||
| + | or using '' | ||
| + | |||
| + | Note that the '' | ||
| + | |||