CMS Compilation/Linux: Difference between revisions
mNo edit summary |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:CMS Compilation - Linux}} | {{DISPLAYTITLE:CMS Compilation - Linux}} | ||
Linux compilation of CMS now includes the XMDF Libraries (as of CMS v5.4.5). We have successfully built CMS on the following systems: | |||
Linux compilation of CMS now includes the XMDF Libraries (as of CMS v5.4.5) | *Red Hat Enterprise Linux 8.x with GNU compiler | ||
*ERDC HPC, Carpenter (see specialized details below) | |||
Additional systems will be tested later and more guidance will be added to this page. | |||
==Requirements== | |||
*You must have CMAKE software 3.5 or above | *You must have CMAKE software 3.5 or above | ||
*You must have the HDF5 (and Zlib) libraries installed on your system. | *You must have the HDF5 (and Zlib) libraries installed on your system. | ||
Instructions (updated 06/23/25) | ==Instructions (updated 06/23/25)== | ||
#Clone repository or unzip CMS Source into a folder. | #Clone repository or unzip CMS Source into a folder. | ||
#Go to the root directory of the repo. | #Go to the root directory of the repo. | ||
#Type `cmake .` at the prompt | #Type `cmake .` at the prompt (do not enter the ` characters) | ||
#Type `make clean` | #Type `make clean` | ||
#Type `make` | #Type `make` | ||
- This will make the XMDF library and the CMS executable using the XMDF library.<br>- There may be a few warnings during XMDF compilation, but it should create a working library. | |||
If no errors, an executable named '<nowiki/>'''cms'<nowiki/>''' will be in the '<nowiki/>'''source'''' directory. Move and rename the executable as needed. | |||
==HPC Compilation== | |||
We have successfully compiled and tested the CMS installation on the ERDC HPC, '''<u>Carpenter</u>''', with the following steps necessary before starting the "Instructions" above. | |||
To make sure you have the correct `modules` loaded, perform the following commands: | |||
<pre> | |||
module unload PrgEnv-cray | |||
module load cray-hdf5 | |||
module load PrgEnv-gnu | |||
</pre> | |||
This will ensure you have the HDF5 libraries handy and will switch to the Gnu C++ and Fortran compilers. | |||
[[CMS_Compilation | back to CMS Compilation page]] | [[CMS_Compilation | back to CMS Compilation page]] |
Latest revision as of 19:29, 24 June 2025
Linux compilation of CMS now includes the XMDF Libraries (as of CMS v5.4.5). We have successfully built CMS on the following systems:
- Red Hat Enterprise Linux 8.x with GNU compiler
- ERDC HPC, Carpenter (see specialized details below)
Additional systems will be tested later and more guidance will be added to this page.
Requirements
- You must have CMAKE software 3.5 or above
- You must have the HDF5 (and Zlib) libraries installed on your system.
Instructions (updated 06/23/25)
- Clone repository or unzip CMS Source into a folder.
- Go to the root directory of the repo.
- Type `cmake .` at the prompt (do not enter the ` characters)
- Type `make clean`
- Type `make`
- This will make the XMDF library and the CMS executable using the XMDF library.
- There may be a few warnings during XMDF compilation, but it should create a working library.
If no errors, an executable named 'cms' will be in the 'source' directory. Move and rename the executable as needed.
HPC Compilation
We have successfully compiled and tested the CMS installation on the ERDC HPC, Carpenter, with the following steps necessary before starting the "Instructions" above.
To make sure you have the correct `modules` loaded, perform the following commands:
module unload PrgEnv-cray module load cray-hdf5 module load PrgEnv-gnu
This will ensure you have the HDF5 libraries handy and will switch to the Gnu C++ and Fortran compilers.