Skip to content

GLM

OpenGL Mathemetics (GLM) is a header-only C++ library which performs operations typically encountered in graphics applications, but can also be relevant to scientific applications. GLM is freely available under an MIT license.

Compiling with GLM

  • module load glm

The compiler wrapper CC will automatically location the required include directory when the module is loaded.

The glm module also defines the environment variable GLM_DIR which carries the root of the installation, if needed.

Version history

  • Module glm/0.9.9.6 installed October 2021 (PE 21.04)
  • Module glm/0.9.9.6 installed January 2021

Install your own version

One can follow the instructions used to install the current version on ARCHER2 via the ARCHER2 Github repository:

$ git clone https://github.com/ARCHER2-HPC/pe-scripts.git
$ cd pe-scripts
$ git checkout modules-2021-10
$ ./sh/glm.sh --prefix=/path/to/install/location
where the --prefix option sets the install location. See the ARCHER2 Github repository for further details.

Resources

The GLM Github repository.