rsnt_translations
56,430
edits
(Marked this version for translation) |
|||
Line 15: | Line 15: | ||
* <tt>EBVERSION<name></tt>: Contains the full version of the software <tt><name></tt> loaded by this module. | * <tt>EBVERSION<name></tt>: Contains the full version of the software <tt><name></tt> loaded by this module. | ||
<!--T:15--> | |||
For example, the module <tt>python/3.10.2</tt> on Narval defines: | For example, the module <tt>python/3.10.2</tt> on Narval defines: | ||
* <tt>EBROOTPYTHON</tt>: <tt>/cvmfs/soft.computecanada.ca/easybuild/software/2020/avx2/Core/python/3.10.2</tt> | * <tt>EBROOTPYTHON</tt>: <tt>/cvmfs/soft.computecanada.ca/easybuild/software/2020/avx2/Core/python/3.10.2</tt> | ||
* <tt>EBVERSIONPYTHON</tt>: <tt>3.10.2</tt> | * <tt>EBVERSIONPYTHON</tt>: <tt>3.10.2</tt> | ||
<!--T:16--> | |||
You can see the environment variables defined by the <tt>python/3.10.2</tt> module using: | You can see the environment variables defined by the <tt>python/3.10.2</tt> module using: | ||
{{Command|module show python/3.10.2 {{!}} grep EB}} | {{Command|module show python/3.10.2 {{!}} grep EB}} | ||
= Installation recipes and logs = | = Installation recipes and logs = <!--T:17--> | ||
EasyBuild keeps a copy of the recipe used to install each software package, as well as a detailed log inside of the installation directory. This is accessible in the directory <tt>$EBROOT<name>/easybuild</tt>. For example, for the <tt>python/3.10.2</tt> module, the installation directory contains, amongst other things: | EasyBuild keeps a copy of the recipe used to install each software package, as well as a detailed log inside of the installation directory. This is accessible in the directory <tt>$EBROOT<name>/easybuild</tt>. For example, for the <tt>python/3.10.2</tt> module, the installation directory contains, amongst other things: | ||
* <tt>$EBROOTPYTHON/easybuild/Python-3.10.2.eb</tt> | * <tt>$EBROOTPYTHON/easybuild/Python-3.10.2.eb</tt> | ||
Line 30: | Line 32: | ||
EasyBuild can be used to install software packages in your own account. However, in most cases, it is preferable to ask our [[Technical support]] to install the software centrally for you. This is because that will ensure that the software package is available on all of our clusters. It will also avoid using your quota, and it will avoid causing undue load on the parallel filesystems. | EasyBuild can be used to install software packages in your own account. However, in most cases, it is preferable to ask our [[Technical support]] to install the software centrally for you. This is because that will ensure that the software package is available on all of our clusters. It will also avoid using your quota, and it will avoid causing undue load on the parallel filesystems. | ||
<!--T:18--> | |||
{{Warning|title=When to use or not use EasyBuild to install software in your home | {{Warning|title=When to use or not use EasyBuild to install software in your home | ||
|content=There are a few use cases in which you may want to use EasyBuild to install software in your own space: | |content=There are a few use cases in which you may want to use EasyBuild to install software in your own space: | ||
Line 36: | Line 39: | ||
* if we are not allowed to install the package centrally for licensing reasons, such as some commercial software packages ([[VASP]] and [[Materials Studio]] in particular) | * if we are not allowed to install the package centrally for licensing reasons, such as some commercial software packages ([[VASP]] and [[Materials Studio]] in particular) | ||
<!--T:19--> | |||
On the contrary, you '''should not''' install software packages in your own space for the following reasons: | On the contrary, you '''should not''' install software packages in your own space for the following reasons: | ||
* if you need a different release version | * if you need a different release version | ||
* if you need a software package built using a different compiler, MPI or CUDA implementation | * if you need a software package built using a different compiler, MPI or CUDA implementation | ||
<!--T:20--> | |||
When in doubt, please ask our [[Technical support]] for advice. }} | When in doubt, please ask our [[Technical support]] for advice. }} | ||
== What is a recipe == | == What is a recipe == <!--T:21--> | ||
{{Note|Writing a recipe from scratch will not be discussed here; you can find more about this in the [https://docs.easybuild.io/en/latest/Writing_easyconfig_files.html EasyBuild documentation]. Modifying a recipe for your particular situation is easier, and it is easier still to find a suitable recipe and use it unmodified.}} | {{Note|Writing a recipe from scratch will not be discussed here; you can find more about this in the [https://docs.easybuild.io/en/latest/Writing_easyconfig_files.html EasyBuild documentation]. Modifying a recipe for your particular situation is easier, and it is easier still to find a suitable recipe and use it unmodified.}} | ||
<!--T:22--> | |||
Recipes, also known as EasyConfig files are text files containing the information EasyBuild needs to build a particular piece of software in a particular environment. They are named following a convention: | Recipes, also known as EasyConfig files are text files containing the information EasyBuild needs to build a particular piece of software in a particular environment. They are named following a convention: | ||
* <tt><name>-<version>-<toolchain name>-<toolchain version>.eb</tt> | * <tt><name>-<version>-<toolchain name>-<toolchain version>.eb</tt> | ||
where <tt><name></tt> is the name of the package, <tt><version></tt> is its version, <tt><toolchain name></tt> is the name of the toolchain and <tt><toolchain version></tt> is its version. More on toolchains later. | where <tt><name></tt> is the name of the package, <tt><version></tt> is its version, <tt><toolchain name></tt> is the name of the toolchain and <tt><toolchain version></tt> is its version. More on toolchains later. | ||
== Finding a recipe == | == Finding a recipe == <!--T:23--> | ||
EasyBuild contains a lot of recipes which may or may not compile with the toolchains we have. The surest way to get a recipe that works is to start from one of the recipes which we have installed. These can be found either in the installation folder, as mentioned above, or in the <tt>/cvmfs/soft.computecanada.ca/easybuild/ebfiles_repo/$EBVERSIONGENTOO</tt> folder. | EasyBuild contains a lot of recipes which may or may not compile with the toolchains we have. The surest way to get a recipe that works is to start from one of the recipes which we have installed. These can be found either in the installation folder, as mentioned above, or in the <tt>/cvmfs/soft.computecanada.ca/easybuild/ebfiles_repo/$EBVERSIONGENTOO</tt> folder. | ||
<!--T:24--> | |||
{{Callout|title=What is in a toolchain? | {{Callout|title=What is in a toolchain? | ||
|content=Toolchains are a combination of compiler, MPI implementation, CUDA version, and mathematical libraries, which are used to compile the software package. They usually hold a rather obscure name such as <tt>gofbc</tt> which, in this case, means it is a combination of GCC, OpenMPI, FlexiBlas and CUDA. You do not however need to remember this naming, since toolchains themselves have recipes, which are also available in the <tt>/cvmfs/soft.computecanada.ca/easybuild/ebfiles_repo/$EBVERSIONGENTOO</tt> directory. For example, the <tt>gofbc</tt> toolchain, version <tt>2020.1.403.114</tt> contains, as per <tt>/cvmfs/soft.computecanada.ca/easybuild/ebfiles_repo/$EBVERSIONGENTOO/gofbc/gofbc-2020.1.403.114.eb</tt>: | |content=Toolchains are a combination of compiler, MPI implementation, CUDA version, and mathematical libraries, which are used to compile the software package. They usually hold a rather obscure name such as <tt>gofbc</tt> which, in this case, means it is a combination of GCC, OpenMPI, FlexiBlas and CUDA. You do not however need to remember this naming, since toolchains themselves have recipes, which are also available in the <tt>/cvmfs/soft.computecanada.ca/easybuild/ebfiles_repo/$EBVERSIONGENTOO</tt> directory. For example, the <tt>gofbc</tt> toolchain, version <tt>2020.1.403.114</tt> contains, as per <tt>/cvmfs/soft.computecanada.ca/easybuild/ebfiles_repo/$EBVERSIONGENTOO/gofbc/gofbc-2020.1.403.114.eb</tt>: | ||
Line 57: | Line 64: | ||
local_gccver = '9.3.0' | local_gccver = '9.3.0' | ||
<!--T:25--> | |||
# specify subtoolchains as builddependencies | # specify subtoolchains as builddependencies | ||
# this way they will be considered as subtoolchains but | # this way they will be considered as subtoolchains but | ||
Line 66: | Line 74: | ||
] | ] | ||
<!--T:26--> | |||
dependencies = [ | dependencies = [ | ||
('GCC', local_gccver), # part of gcccuda | ('GCC', local_gccver), # part of gcccuda | ||
Line 74: | Line 83: | ||
</pre> | </pre> | ||
<!--T:27--> | |||
which means that it contains GCC version 9.3.0, OpenMPI 4.0.3, CUDA 11.4, and FlexiBLAS 3.0.4. The <tt>builddependencies</tt> part means that the <tt>gofbc</tt> toolchain is a superset of the <tt>gompic</tt> and the <tt>gccflexiblascuda</tt> toolchains. When a toolchain is a superset of other toolchains, it allows software packages built with the former to have dependencies on software packages built with the latter, i.e. software packages built with <tt>gofbc</tt> can depend on software packages built with <tt>gompic</tt>, but not the other way around. | which means that it contains GCC version 9.3.0, OpenMPI 4.0.3, CUDA 11.4, and FlexiBLAS 3.0.4. The <tt>builddependencies</tt> part means that the <tt>gofbc</tt> toolchain is a superset of the <tt>gompic</tt> and the <tt>gccflexiblascuda</tt> toolchains. When a toolchain is a superset of other toolchains, it allows software packages built with the former to have dependencies on software packages built with the latter, i.e. software packages built with <tt>gofbc</tt> can depend on software packages built with <tt>gompic</tt>, but not the other way around. | ||
}} | }} | ||
== Installing a software with EasyBuild == | == Installing a software with EasyBuild == <!--T:28--> | ||
Once you have found a recipe matching your needs, copy its recipe from the <tt>/cvmfs/soft.computecanada.ca/easybuild/ebfiles_repo/$EBVERSIONGENTOO</tt> folder, and modify it as needed. Then, run | Once you have found a recipe matching your needs, copy its recipe from the <tt>/cvmfs/soft.computecanada.ca/easybuild/ebfiles_repo/$EBVERSIONGENTOO</tt> folder, and modify it as needed. Then, run | ||
{{Command|eb <recipe.eb>}} | {{Command|eb <recipe.eb>}} | ||
to install it. This will install the software inside of your home directory, in <tt>$HOME/.local/easybuild</tt>. After the installation is completed, exit your session and reconnect to the cluster, and it should be available to load as a module. | to install it. This will install the software inside of your home directory, in <tt>$HOME/.local/easybuild</tt>. After the installation is completed, exit your session and reconnect to the cluster, and it should be available to load as a module. | ||
=== Reinstalling an existing version === | === Reinstalling an existing version === <!--T:29--> | ||
If you are reinstalling the exact same version as one we have installed centrally, but with modified parameters, you may need to use | If you are reinstalling the exact same version as one we have installed centrally, but with modified parameters, you may need to use | ||
{{Command|eb <recipe.eb> --force}} | {{Command|eb <recipe.eb> --force}} | ||
to install a local version in your home. | to install a local version in your home. | ||
=== Installing in a different location === | === Installing in a different location === <!--T:30--> | ||
You may want to install the software package in a different location than your home directory, for example in a project directory. To do so, use the following: | You may want to install the software package in a different location than your home directory, for example in a project directory. To do so, use the following: | ||
{{Command|eb <recipe.eb> --installpath /path/to/your/project/easybuild}} | {{Command|eb <recipe.eb> --installpath /path/to/your/project/easybuild}} |