basic / kernel_numeric_constants PASS

Test metadata

Name kernel_numeric_constants
Category basic
Suite Khronos OpenCL CTS
Suite version 80a4a833
Executable path /test_conformance/basic/bin/test_basic
Arguments kernel_numeric_constants

Run metadata

Parent job Job 113
Revision 2ca51d43f10cf99… / phab-diff-500842: [SPIRV] fix several issues in builds with expe…
Driver version NEO 22.34.24023; IGC 1.0.11702.1
Date run 02/28/2023
Duration 0 minutes
Status PASS

Runner output

Stdout from the runner of the corresponding OpenCL CTS test:

Initializing random seed to 0.
Requesting Default device based on command line for platform index 0 and device index 0
Compute Device Name = Intel(R) UHD Graphics 630 [0x3e98], Compute Device Vendor = Intel(R) Corporation, Compute Device Version = OpenCL 3.0 NEO , CL C Version = OpenCL C 1.2
Device latest conformance version passed: v2022-04-22-00
Supports single precision denormals: YES
sizeof( void*) = 8 (host)
sizeof( void*) = 8 (device)
kernel_numeric_constants...
CHAR_BIT: int_out[0] = 8
SCHAR_MAX: int_out[1] = 127
SCHAR_MIN: int_out[2] = (-127-1)
CHAR_MAX: int_out[3] = CL_SCHAR_MAX
CHAR_MIN: int_out[4] = CL_SCHAR_MIN
UCHAR_MAX: int_out[5] = 255
SHRT_MAX: int_out[6] = 32767
SHRT_MIN: int_out[7] = (-32767-1)
USHRT_MAX: int_out[8] = 65535
INT_MAX: int_out[9] = 2147483647
INT_MIN: int_out[10] = (-2147483647-1)
UINT_MAX: uint_out[0] = 0xffffffffU
FLT_DIG: int_out[11] = 6
FLT_MANT_DIG: int_out[12] = 24
FLT_MAX_10_EXP: int_out[13] = +38
FLT_MAX_EXP: int_out[14] = +128
FLT_MIN_10_EXP: int_out[15] = -37
FLT_MIN_EXP: int_out[16] = -125
FLT_RADIX: int_out[17] = 2
FLT_MAX: float_out[0] = 0x1.fffffep+127 (3.40282346638528859812e+38)
FLT_MIN: float_out[1] = 0x1p-126 (1.17549435082228750797e-38)
FLT_EPSILON: float_out[2] = 0x1p-23 (1.1920928955078125e-07)
M_E_F: float_out[3] = 0x1.5bf0a8p+1 (2.71828174591064453125)
M_LOG2E_F: float_out[4] = 0x1.715476p+0 (1.44269502162933349609)
M_LOG10E_F: float_out[5] = 0x1.bcb7b2p-2 (0.434294492006301879883)
M_LN2_F: float_out[6] = 0x1.62e43p-1 (0.693147182464599609375)
M_LN10_F: float_out[7] = 0x1.26bb1cp+1 (2.30258512496948242188)
M_PI_F: float_out[8] = 0x1.921fb6p+1 (3.14159274101257324219)
M_PI_2_F: float_out[9] = 0x1.921fb6p+0 (1.57079637050628662109)
M_PI_4_F: float_out[10] = 0x1.921fb6p-1 (0.785398185253143310547)
M_1_PI_F: float_out[11] = 0x1.45f306p-2 (0.318309873342514038086)
M_2_PI_F: float_out[12] = 0x1.45f306p-1 (0.636619746685028076172)
M_2_SQRTPI_F: float_out[13] = 0x1.20dd76p+0 (1.12837922573089599609)
M_SQRT2_F: float_out[14] = 0x1.6a09e6p+0 (1.41421353816986083984)
M_SQRT1_2_F: float_out[15] = 0x1.6a09e6p-1 (0.707106769084930419922)
__IMAGE_SUPPORT__: 1
LONG_MAX: long_out[0] = ((cl_long) 0x7FFFFFFFFFFFFFFFLL)
LONG_MIN: long_out[1] = ((cl_long) -0x7FFFFFFFFFFFFFFFLL - 1LL)
ULONG_MAX: ulong_out[0] = ((cl_ulong) 0xFFFFFFFFFFFFFFFFULL)
DBL_DIG: long_out[0] = 15
DBL_MANT_DIG: long_out[1] = 53
DBL_MAX_10_EXP: long_out[2] = +308
DBL_MAX_EXP: long_out[3] = +1024
DBL_MIN_10_EXP: long_out[4] = -307
DBL_MIN_EXP: long_out[5] = -1021
DBL_RADIX: long_out[6] = 2
DBL_MAX: double_out[0] = 0x1.fffffffffffffp+1023 (1.79769313486231570815e+308)
DBL_MIN: double_out[1] = 0x1p-1022 (2.22507385850720138309e-308)
DBL_EPSILON: double_out[2] = 0x1p-52 (2.22044604925031308085e-16)
M_LOG2E: double_out[4] = 0x1.71547652b82fep+0 (1.442695040888963387)
M_LOG10E: double_out[5] = 0x1.bcb7b1526e50ep-2 (0.434294481903251816668)
M_LN2: double_out[6] = 0x1.62e42fefa39efp-1 (0.693147180559945286227)
M_LN10: double_out[7] = 0x1.26bb1bbb55516p+1 (2.30258509299404590109)
M_PI: double_out[8] = 0x1.921fb54442d18p+1 (3.141592653589793116)
M_PI_2: double_out[9] = 0x1.921fb54442d18p+0 (1.570796326794896558)
M_PI_4: double_out[10] = 0x1.921fb54442d18p-1 (0.785398163397448278999)
M_1_PI: double_out[11] = 0x1.45f306dc9c883p-2 (0.318309886183790691216)
M_2_PI: double_out[12] = 0x1.45f306dc9c883p-1 (0.636619772367581382433)
M_2_SQRTPI: double_out[13] = 0x1.20dd750429b6dp+0 (1.12837916709551255856)
M_SQRT2: double_out[14] = 0x1.6a09e667f3bcdp+0 (1.41421356237309514547)
M_SQRT1_2: double_out[15] = 0x1.6a09e667f3bcdp-1 (0.707106781186547572737)
kernel_numeric_constants passed
PASSED sub-test.
PASSED test.

Stderr from the runner of the corresponding OpenCL CTS test:

Runner dumps

The files below were generated by the Intel Graphics Compiler after setting the IGC_ShaderDumpEnable=1 variable. OCL_asmX_before_spirv_backend.spv is the input binary SPIR-V generated by the IGC's OpenCL frontend, from which the SPIRV-LLVM-Translator generates OCL_asmX_before_spirv_backend.ll module which is passed to the SPIR-V backend. The backend outputs OCL_asmX_after_spirv_backend.spv SPIR-V binary which returns to IGC to be translated to LLVM module OCL_asmX_after_spirv_backend.ll for further compilation.