Modules and the module load command are instructed upon how to be used in the Using Modules article found Here. Spack is a package management tool that has simple syntax.
Spack load
Some packages and modules have what are called dependencies. A dependency is when a package requires the loading of another package in order to work correctly.
Spack greatly simplifies handling dependencies. The loading of a package with the spack load command will also load all of the packages dependencies.
The spack load command uses the following syntax:
$ spack load packagenameSpack list vs Spack find
Spack list works similarly to the module avail command; however, unlike module avail, spack list shows all the packages available upstream to our own RIT Research Computing Spack. That means, just because it's listed does not mean it will work on our system. Instead, use spack find, which shows all the packages actually available. Of course if you see a package in spack list that is not in spack find, you can ask if it possible we can make it available.
Entering this command will bring up a list of all the available packages that spack could load.
$ spack listEntering this command will bring up a list of all the available packages that spack can actually load and available to you.
$ spack findWhen to use spack or module load
Sometimes it can be unclear whether to load with module or with spack.
As a general rule, if it is a licensed application such as Matlab.
For example if you enter the commands module avail, and spack list while on the rc cluster, both return a loadable package of py-torchvision.
Generally speaking, you should always use spack load when possible. This is because you will always get the correct version and it will also handle all dependencies.
If there are any further questions, or there is an issue with the documentation, please contact rc-help@rit.edu for additional assistance.This wiki page is deprecated. You can find this documentation on our new documentation site: https://research-computing.git-pages.rit.edu/docs/module_load_vs_spack_load.html