Fortran User's Guide

Determining Platform Hardware

Some compiler flags allow the user to tune code generation to a specific set of hardware platform options. The utility command fpversion displays the hardware platform specifications for the native processor:


demo% fpversion
 A SPARC-based CPU is available.
 CPU's clock rate appears to be approximately 356.2 MHz.
 Kernel says CPU's clock rate is 360.0 MHz.
 Kernel says main memory's clock rate is 120.0 MHz.

 Sun-4 floating-point controller version 0 found.
 An UltraSPARC chip is available.
 FPU's frequency appears to be approximately 369.5 MHz.

 Use "-xtarget=ultra2i -xcache=16/32/1:2048/64/1" code option.

 Hostid = 0x808Z2211.

It may take a number of seconds before fpversion responds while it dynamically calculates apparent hardware clock rates of the CPU and FPU. (The values printed depend on the load on the system at the moment fpversion is called.)

See fpversion(1) and the Numerical Computation Guide for details.