CMS Compilation/Windows: Difference between revisions
Jump to navigation
Jump to search
Line 19: | Line 19: | ||
== Settings for Visual Studio == | == Settings for Visual Studio == | ||
<div class="toccolours mw-collapsible mw-collapsed" style="width: | <div class="toccolours mw-collapsible mw-collapsed" style="width:80%"> | ||
'''Release Configuration Properties'''<div class="mw-collapsible-content"> | '''Release Configuration Properties'''<div class="mw-collapsible-content"> | ||
Project Settings: | Project Settings: |
Revision as of 22:28, 23 June 2025
Installation with Visual Studio¶
To obtain the pre-built CMS executable, it can be found here, CMS Releases.
Our team generally uses the following tools for compiling the production release version of CMS.
- Microsoft Visual Studio 2022 (Community version is fine)
- Intel oneAPI Base and HPC kits (2024.1)
Install the three tools in the following order.
- Install MS Visual Studio 2022 (or 2019)
- Make sure “Desktop development with C++” is selected at a minimum
- Install Intel oneAPI Base kit (C++ language only) with Visual Studio integration.
- Install Intel oneAPI HPC kit (adds Fortran) with Visual Studio integration.
Note: It has been mentioned there may be an Intel oneAPI Fortran only build which may be possibly used but we have not yet tested it.
Settings for Visual Studio
Release Configuration Properties
Project Settings:
- Linker | Input - Additional Dependencies
- "..\external_libraries\XMDF\xmdf2.2x64.lib"
- Linker | System - Stack Reserve Size => 92428800
- Fortran | Optimization - Optimization => Maximum Speed plus Higher Level Optimizations
- Fortran | Optimization - Global Optimizations => Yes (/Og)
- Fortran | Language - Process OpenMP Directives => Generate Parallel Code (/Qopenmp)
- Fortran | Floating Point | Floating Point Exception Handling =>
- Underflow gives 0.0; Abort on other IEEE exceptions (/fpe:0) (giving problems with
- ICCG solver)
- or Produce NaN, signed infinities, and denormal results (more stable for some reason)
- Fortran | Run-time - Generate Traceback Information => Yes
- Fortran | Run-time - Check Array and Sting Bounds => Yes
- Fortran | Run-time - Check Uninitialized Variables => Yes
- Fortran | Preprocessor - Preprocess source file => Yes
- Fortran | Preprocessor - Additional include directories => ..\source\main\