Returns number of CPU cores of first processor on Linux and FreeBSD
in ncore. On error, argument ncore will be 0.
The function returns the following error codes:
E_EMPTY if result is empty.E_FORMAT if output format is unexpected.E_IO if opening file failed.E_NOT_FOUND if file or variable does not exist.E_PLATFORM if system type is unsupported.E_READ if reading failed.E_SYSTEM if system call failed.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(out) | :: | ncore |
Number of CPU cores. |