1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
To build readtest - the tests for the Intel(R) Decimal Floating-Point Math
Library V2.3 (Version 2, Update 3) on processors that are implementations of the
Intel(R) 64 Architecture:
In Linux* with icx (Intel(R) C++ Compiler 2024.2 or newer) or gcc:
make clean OS_TYPE=LINUX
make OS_TYPE=LINUX CC=icx CALL_BY_REF=0 GLOBAL_RND=0 GLOBAL_FLAGS=0 UNCHANGED_BINARY_FLAGS=0
- CC can be icx, icc, gcc, clang
- CALL_BY_REF, GLOBAL_RND, GLOBAL_FLAGS, UNCHANGED_BINARY_FLAGS can be any of 0000, 0001, ... , 1111
In Windows** with icx (Intel(R) C++ Compiler 2024.2 or newer) or cl (Microsoft
Visual C++ Compiler**):
nmake clean OS_TYPE=WIN
nmake -fmakefile.mak CC=icl CALL_BY_REF=0 GLOBAL_RND=0 GLOBAL_FLAGS=0 UNCHANGED_BINARY_FLAGS=0
- CC can be cl, icx, icl, clang
- CALL_BY_REF, GLOBAL_RND, GLOBAL_FLAGS, UNCHANGED_BINARY_FLAGS can be any of 0000, 0001, ... , 1111
- [g]make which stands for a GNU make-compatible make program (e.g. make from
cygwin) can also be used
Note: The scripts and makefiles provided here may need adjustments,
depending on the environment in which they are used; for example if
moving files from Windows to Linux, running dos2unix on the Linux
script files may be necessary.
To run readtest:
./readtest < readtest.in (Linux)
readtest < readtest.in (Windows)
Note:
=====
For some other operating systems and architecture combinations see the
following command files, as well as any command files invoked from these ones:
RUNWINDOWS_nmake.bat
RUNOSXINTEL64
These command files build and run the tests from this directory,
possibly using more than one compiler. Changes may be necessary in certain
environments. However, prior to building these tests the similar RUN*
command has to be executed in ../LIBRARY/ in order to build all the
necessary versions of the Intel(R) Decimal Floating-Point Math Library.
The tests [when built correctly] pass if the word FAIL does not appear in
the output. Note that failures may possibly occur due to incorrect code
generated by a compiler.
Note:
=====
If the makefile provided here is not used, the parameter passing method and
local/global rounding mode and status flags may be selected by editing
test_bid_conf.h:
Parameter passing is determined by an environment variable in test_bid_conf.h:
- by value:
#define DECIMAL_CALL_BY_REFERENCE 0
- by reference:
#define DECIMAL_CALL_BY_REFERENCE 1
Global variables are determined by two environment variables in test_bid_conf.h:
- rnd_mode passed as parameter
#define DECIMAL_GLOBAL_ROUNDING 0
- rnd_mode global
#define DECIMAL_GLOBAL_ROUNDING 1
- status flags *pfpsf passed as parameter
#define DECIMAL_GLOBAL_EXCEPTION_FLAGS 0
- status flags *pfpsf global
#define DECIMAL_GLOBAL_EXCEPTION_FLAGS 1
For more information see ../README
* Other names and brands may be claimed as the property of others.
** Microsoft, Windows, and the Windows logo are trademarks, or registered
trademarks of Microsoft Corporation in the United States and/or other countries
|