C H A P T E R  9

Floating Point Unit Test (fputest)


fputest Description

The fputest checks the functionality of the floating point unit in CPUs. The test verifies the functionality by various arithmetic operations. In addition, the fputest stresses the CPU with the use of benchmarks. Both single and double precision numbers are used for the operations.



Note - Three benchmarks of fputest--cparanoia, kcdiv, and kcsqrt--have been ported over for x86 systems. The x86 version of fputest only uses the Double Precision operations for rounding, chopping, sticky bit, and so on.



When fputest is chosen in Exclusive test mode from the SunVTS graphical user interface, it may run multiple instances in parallel on different CPUs. The number of such instances that may be running in parallel at the same time is dynamically determined depending on system resources.


fputest Subtests

Instruction tests include:

Benchmark tests include:


fputest Options

To reach the following dialog box, right-click on the test name in the System Map and select Test Parameter Options. If you do not see this test in the System Map, you might need to expand the collapsed groups, or your system might not include the device appropriate to this test. Refer to the SunVTS User's Guide for more details.


FIGURE 9-1 fputest Test Parameter Options Dialog Box

Screenshot of the fputest Test Parameter Options dialog box




Note - It is not advisable to use the Processor Affinity option for this test. Doing so reduces the effectiveness of the test.




fputest Test Modes


TABLE 9-1 fputest Supported Test Modes

Test Mode

Description

Connection

Includes all the instruction tests.

Functional

Performs all the instruction tests and all the benchmark tests.

Exclusive

Performs several FPU benchmark tests.

Online

Supported.



fputest Command-Line Syntax

/opt/SUNWvts/bin/fputest standard-arguments -o dev=cpu-unitN



Note - Options -s, -p, -i, and -w are not applicable when tests are invoked from the command line.




TABLE 9-2 fputest Command-Line Syntax

Argument

Description

-o

Enables test specific command arguments.

dev=cpu-unitN

Specifies the CPU unit to be tested. N specifies the numeric ID of online CPU. This is not a required option.


Usage Examples:



Note - When using fputest specific arguments, the -o and dev options are required.



To execute exclusive fputest with verbose messages against CPU 72, use the following syntax:


# /opt/SUNWvts/bin/fputest -xvo dev=cpu-unit72

To execute functional fputest with verbose messages against CPU 3, use the following syntax:


# /opt/SUNWvts/bin/fputest -fvo dev=cpu-unit3