ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation. |
Generate and return a string containing a comprehensive report of the operating system and platform specifications. More...
Generate and return a string containing a comprehensive report of the operating system and platform specifications.
The system information is obtained by first identifying the operating system and the runtime shell and then calling one of the following platform/shell-specific commands:
uname -a
+ sysctl -a | grep machdep.cpu
+ system_profiler SPHardwareDataType
on Darwin (macOS) platforms.uname -a
+ lscpu
+ cat /proc/cpuinfo
on Linux or other Unix-like platforms. systeminfo
on Windows platforms. [out] | failed | : The output scalar of type logical of default kind LK, that is .true. if and only if the process of fetching system information fails.(optional. If missing and a runtime error occurs, the program will halt by calling error stop .) |
[in,out] | errmsg | : The input/output scalar character of default kind SK of arbitrary length type parameter.If an error occurs, errmsg will be set to a descriptive message about the nature of the runtime error.A length of LEN_IOMSG characters is likely sufficient to capture most error messages in full. (optional. It can be present only if the input argument failed is also present.) |
sysInfo
: The output allocatable
scalar character
of default kind SK containing the system information.
Possible calling interfaces ⛓
impure
.
Example usage ⛓
ifort
compiler ⛓ ifort
compiler ⛓ gfortran
compiler ⛓ ifx
version 2025.0.0 20241008 ifx
version 2025.0.0 20241008 yields the following segfault error at runtime for using the css_type array constructor syntax.move_alloc
: Note that ifort
can readily compile the above lines of code.
Remedy (as of ParaMonte Library version 2.0.0): Currently, a preprocessor fence is added specifically for Intel compilers that first allocates the vector of type css_type and then assigns the vector elements one by one.
Note that the above segfault error was discovered while testing the MATLAB interface to the ParaMonte library.
However, the nature and cause of the error is entirely contained within the Fortran programming language.
Final Remarks ⛓
If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.
This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.
Definition at line 425 of file pm_sysInfo.F90.