[Beignet] tests [was: Re: [PATCH] Compile against upstream LLVM 3.3]

Steven Newbury steve at snewbury.org.uk
Tue Apr 30 23:31:02 PDT 2013


On Wed, 2013-05-01 at 06:58 +0100, Steven Newbury wrote:
> On Wed, 2013-04-24 at 15:34 +0800, Zhigang Gong wrote:
> > This is not expected. All unit test cases should pass successfully.
> With the current git version, I'm only seeing a lot less failures, see
> below.  I noticed the compiler_integer_builtin.cpp test isn't getting
> built, is there a reason for this other than it fails?  I get the same
> result from compiler_integer_builtin as when I tried testing with
> johntheripper and pyrit (both apps contain built-in OpenCL benchmarks).
> 
> > 
> > I just doubt your mesa version. It seems that it tried to load a gallium pipe driver. But Intel doesn't support gallium 3d.
> > I suggest you to build a new mesa from the git master branch with the following configuration parameters:
> I think this is just due to the fact llvmpipe is enabled as fallback,
> and since Gallium is enabled it checks for a Gallium pipe driver before
> Classic, it's probably a bug.  Mesa/GL is working properly otherwise,
> egl_gears runs too FWIW.  I'll rebuild Mesa and disable all Gallium
> support (on this particular system it's not really needed; but I do have
> another with an AMD card which complicates things there).
> 
That helped:
--
platform number 1
platform_profile "FULL_PROFILE"
platform_name "Experiment Intel Gen OCL Driver"
platform_vendor "Intel"
platform_version "OpenCL 1.0"
platform_extensions "cl_khr_byte_addressable_store cl_khr_icd
cl_khr_gl_sharing"
device_profile "FULL_PROFILE"
device_name "Intel HD Graphics Family"
device_vendor "Intel"
device_version "OpenCL 1.0"
device_extensions "cl_khr_byte_addressable_store cl_khr_icd
cl_khr_gl_sharing"
99 image formats are supported
[CL_R CL_SNORM_INT8]
[CL_R CL_SNORM_INT16]
[CL_R CL_UNORM_INT8]
[CL_R CL_UNORM_INT16]
[CL_R CL_SIGNED_INT8]
[CL_R CL_SIGNED_INT16]
[CL_R CL_SIGNED_INT32]
[CL_R CL_UNSIGNED_INT8]
[CL_R CL_UNSIGNED_INT16]
[CL_R CL_UNSIGNED_INT32]
[CL_R CL_HALF_FLOAT]
[CL_R CL_FLOAT]
[CL_A CL_SNORM_INT8]
[CL_A CL_SNORM_INT16]
[CL_A CL_UNORM_INT8]
[CL_A CL_UNORM_INT16]
[CL_A CL_SIGNED_INT8]
[CL_A CL_SIGNED_INT16]
[CL_A CL_SIGNED_INT32]
[CL_A CL_UNSIGNED_INT8]
[CL_A CL_UNSIGNED_INT16]
[CL_A CL_UNSIGNED_INT32]
[CL_A CL_HALF_FLOAT]
[CL_A CL_FLOAT]
[CL_RG CL_SNORM_INT8]
[CL_RG CL_SNORM_INT16]
[CL_RG CL_UNORM_INT8]
[CL_RG CL_UNORM_INT16]
[CL_RG CL_SIGNED_INT8]
[CL_RG CL_SIGNED_INT16]
[CL_RG CL_SIGNED_INT32]
[CL_RG CL_UNSIGNED_INT8]
[CL_RG CL_UNSIGNED_INT16]
[CL_RG CL_UNSIGNED_INT32]
[CL_RG CL_HALF_FLOAT]
[CL_RG CL_FLOAT]
[CL_RA CL_SNORM_INT8]
[CL_RA CL_SNORM_INT16]
[CL_RA CL_UNORM_INT8]
[CL_RA CL_UNORM_INT16]
[CL_RA CL_SIGNED_INT8]
[CL_RA CL_SIGNED_INT16]
[CL_RA CL_SIGNED_INT32]
[CL_RA CL_UNSIGNED_INT8]
[CL_RA CL_UNSIGNED_INT16]
[CL_RA CL_UNSIGNED_INT32]
[CL_RA CL_HALF_FLOAT]
[CL_RA CL_FLOAT]
[CL_RGB CL_UNORM_INT_101010]
[CL_RGBA CL_SNORM_INT8]
[CL_RGBA CL_SNORM_INT16]
[CL_RGBA CL_UNORM_INT8]
[CL_RGBA CL_UNORM_INT16]
[CL_RGBA CL_SIGNED_INT8]
[CL_RGBA CL_SIGNED_INT16]
[CL_RGBA CL_SIGNED_INT32]
[CL_RGBA CL_UNSIGNED_INT8]
[CL_RGBA CL_UNSIGNED_INT16]
[CL_RGBA CL_UNSIGNED_INT32]
[CL_RGBA CL_HALF_FLOAT]
[CL_RGBA CL_FLOAT]
[CL_BGRA CL_UNORM_INT8]
[CL_INTENSITY CL_SNORM_INT8]
[CL_INTENSITY CL_SNORM_INT16]
[CL_INTENSITY CL_UNORM_INT8]
[CL_INTENSITY CL_UNORM_INT16]
[CL_INTENSITY CL_SIGNED_INT8]
[CL_INTENSITY CL_SIGNED_INT16]
[CL_INTENSITY CL_SIGNED_INT32]
[CL_INTENSITY CL_UNSIGNED_INT8]
[CL_INTENSITY CL_UNSIGNED_INT16]
[CL_INTENSITY CL_UNSIGNED_INT32]
[CL_INTENSITY CL_HALF_FLOAT]
[CL_INTENSITY CL_FLOAT]
[CL_LUMINANCE CL_SNORM_INT8]
[CL_LUMINANCE CL_SNORM_INT16]
[CL_LUMINANCE CL_UNORM_INT8]
[CL_LUMINANCE CL_UNORM_INT16]
[CL_LUMINANCE CL_SIGNED_INT8]
[CL_LUMINANCE CL_SIGNED_INT16]
[CL_LUMINANCE CL_SIGNED_INT32]
[CL_LUMINANCE CL_UNSIGNED_INT8]
[CL_LUMINANCE CL_UNSIGNED_INT16]
[CL_LUMINANCE CL_UNSIGNED_INT32]
[CL_LUMINANCE CL_HALF_FLOAT]
[CL_LUMINANCE CL_FLOAT]
[CL_Rx CL_SNORM_INT8]
[CL_Rx CL_SNORM_INT16]
[CL_Rx CL_UNORM_INT8]
[CL_Rx CL_UNORM_INT16]
[CL_Rx CL_SIGNED_INT8]
[CL_Rx CL_SIGNED_INT16]
[CL_Rx CL_SIGNED_INT32]
[CL_Rx CL_UNSIGNED_INT8]
[CL_Rx CL_UNSIGNED_INT16]
[CL_Rx CL_UNSIGNED_INT32]
[CL_Rx CL_HALF_FLOAT]
[CL_Rx CL_FLOAT]
[CL_RGBx CL_UNORM_INT_101010]
test_create_kernel:
  test_create_kernel()    [SUCCESS]

compiler_clod:
  compiler_clod()    [SUCCESS]

compiler_ribbon:
  compiler_ribbon()    [SUCCESS]

compiler_nautilus:
  compiler_nautilus()    [SUCCESS]

compiler_menger_sponge_no_shadow:
  compiler_menger_sponge_no_shadow()    [SUCCESS]

compiler_julia:
  compiler_julia()    [SUCCESS]

compiler_julia_no_break:
  compiler_julia_no_break()    [SUCCESS]

compiler_mandelbrot:
  compiler_mandelbrot()    [SUCCESS]

compiler_mandelbrot_alternate:
  compiler_mandelbrot_alternate()    [SUCCESS]

compiler_box_blur_float:
  compiler_box_blur_float()    [SUCCESS]

compiler_box_blur:
  compiler_box_blur()    [FAILED]
    Error: image mismatch
  at
file /var/tmp/portage/dev-libs/beignet-9999/work/beignet-9999/utests/compiler_box_blur.cpp, function compiler_box_blur, line 39

compiler_insert_to_constant:
  compiler_insert_to_constant()    [SUCCESS]

compiler_argument_structure:
  compiler_argument_structure()    [SUCCESS]

compiler_arith_shift_right:
  compiler_arith_shift_right()    [SUCCESS]

compiler_array0:
  compiler_array0()    [SUCCESS]

compiler_array:
  compiler_array()    [SUCCESS]

compiler_array1:
  compiler_array1()    [SUCCESS]

compiler_array2:
  compiler_array2()    [SUCCESS]

compiler_array3:
  compiler_array3()    [SUCCESS]

compiler_byte_scatter:
  compiler_byte_scatter()    [SUCCESS]

compiler_ceil:
  compiler_ceil()    [SUCCESS]

compiler_convert_uchar_sat:
  compiler_convert_uchar_sat()    [SUCCESS]

compiler_copy_buffer:
  compiler_copy_buffer()    [FAILED]
    Error: ((uint32_t*)buf_data[0])[i] == ((uint32_t*)buf_data[1])[i]
  at
file /var/tmp/portage/dev-libs/beignet-9999/work/beignet-9999/utests/compiler_copy_buffer.cpp, function compiler_copy_buffer, line 28

compiler_copy_image:
  compiler_copy_image()    [SUCCESS]

compiler_copy_buffer_row:
  compiler_copy_buffer_row()    [SUCCESS]

compiler_fabs:
  compiler_fabs()    [SUCCESS]

compiler_fill_image:
  compiler_fill_image()    [SUCCESS]

compiler_fill_image0:
  compiler_fill_image0()    [SUCCESS]

compiler_function_argument0:
  compiler_function_argument0()    [SUCCESS]

compiler_function_argument1:
  compiler_function_argument1()    [SUCCESS]

compiler_function_argument:
  compiler_function_argument()    [SUCCESS]

compiler_function_constant0:
  compiler_function_constant0()    [SUCCESS]

compiler_function_constant1:
  compiler_function_constant1()    [SUCCESS]

compiler_function_constant:
  compiler_function_constant()    [SUCCESS]

compiler_if_else:
  compiler_if_else()    [SUCCESS]

compiler_integer_division:
  compiler_integer_division()    [FAILED]
    Error: ((int32_t*)buf_data[1])[i] == cpu_dst[i]
  at
file /var/tmp/portage/dev-libs/beignet-9999/work/beignet-9999/utests/compiler_integer_division.cpp, function compiler_integer_division, line 39

compiler_integer_remainder:
  compiler_integer_remainder()    [SUCCESS]

compiler_lower_return0:
  compiler_lower_return0()    [SUCCESS]

compiler_lower_return1:
  compiler_lower_return1()    [FAILED]
    Error: ((int32_t*)buf_data[1])[i] == i
  at
file /var/tmp/portage/dev-libs/beignet-9999/work/beignet-9999/utests/compiler_lower_return1.cpp, function compiler_lower_return1, line 27

compiler_lower_return2:
  compiler_lower_return2()    [SUCCESS]

compiler_multiple_kernels:
  compiler_multiple_kernels()    [SUCCESS]

compiler_saturate_int8_t:
  compiler_saturate_int8_t()    [SUCCESS]

compiler_saturate_uint8_t:
  compiler_saturate_uint8_t()    [SUCCESS]

compiler_saturate_int16_t:
  compiler_saturate_int16_t()    [SUCCESS]

compiler_saturate_uint16_t:
  compiler_saturate_uint16_t()    [SUCCESS]

compiler_saturate_int32_t:
  compiler_saturate_int32_t()    [FAILED]
    Error: ((T*)buf_data[0])[i] == get_data<T>(i, 2)
  at
file /var/tmp/portage/dev-libs/beignet-9999/work/beignet-9999/utests/compiler_saturate.cpp, function test, line 93

compiler_saturate_uint32_t:
  compiler_saturate_uint32_t()    [FAILED]
    Error: ((T*)buf_data[0])[i] == get_data<T>(i, 2)
  at
file /var/tmp/portage/dev-libs/beignet-9999/work/beignet-9999/utests/compiler_saturate.cpp, function test, line 93

compiler_saturate_sub_int8_t:
  compiler_saturate_sub_int8_t()    [SUCCESS]

compiler_saturate_sub_uint8_t:
  compiler_saturate_sub_uint8_t()    [SUCCESS]

compiler_saturate_sub_int16_t:
  compiler_saturate_sub_int16_t()    [SUCCESS]

compiler_saturate_sub_uint16_t:
  compiler_saturate_sub_uint16_t()    [SUCCESS]

compiler_saturate_sub_uint32_t:
  compiler_saturate_sub_uint32_t()    [FAILED]
    Error: ((T*)buf_data[0])[i] == get_data<T>(i, 2)
  at
file /var/tmp/portage/dev-libs/beignet-9999/work/beignet-9999/utests/compiler_saturate_sub.cpp, function test, line 93

compiler_shift_right:
  compiler_shift_right()    [FAILED]
    Error: ((int *)buf_data[1])[i] == cpu_dst[i]
  at
file /var/tmp/portage/dev-libs/beignet-9999/work/beignet-9999/utests/compiler_shift_right.cpp, function compiler_shift_right, line 40

compiler_short_scatter:
  compiler_short_scatter()    [SUCCESS]

compiler_sub_bytes:
  compiler_sub_bytes()    [FAILED]
    Error: ((int8_t*)buf_data[2])[i] = ((int8_t*)buf_data[0])[i] -
((int8_t*)buf_data[1])[i]
  at
file /var/tmp/portage/dev-libs/beignet-9999/work/beignet-9999/utests/compiler_sub_bytes.cpp, function compiler_sub_bytes, line 28

compiler_sub_shorts:
  compiler_sub_shorts()    [SUCCESS]

compiler_uint2_copy:
  compiler_uint2_copy()    [FAILED]
    Error: ((uint32_t*)buf_data[0])[i] == ((uint32_t*)buf_data[1])[i]
  at
file /var/tmp/portage/dev-libs/beignet-9999/work/beignet-9999/utests/compiler_uint2_copy.cpp, function compiler_uint2_copy, line 27

compiler_uint3_copy:
  compiler_uint3_copy()    [SUCCESS]

compiler_uint8_copy:
  compiler_uint8_copy()    [SUCCESS]

compiler_uint16_copy:
  compiler_uint16_copy()    [SUCCESS]

compiler_uint3_unaligned_copy:
  compiler_uint3_unaligned_copy()    [SUCCESS]

compiler_unstructured_branch0:
  compiler_unstructured_branch0()    [SUCCESS]

compiler_unstructured_branch1:
  compiler_unstructured_branch1()    [FAILED]
    Error: ((int32_t*)buf_data[1])[i] == 2
  at
file /var/tmp/portage/dev-libs/beignet-9999/work/beignet-9999/utests/compiler_unstructured_branch1.cpp, function compiler_unstructured_branch1, line 27

compiler_unstructured_branch2:
  compiler_unstructured_branch2()    [FAILED]
    Error: ((int32_t*)buf_data[1])[i] == 12
  at
file /var/tmp/portage/dev-libs/beignet-9999/work/beignet-9999/utests/compiler_unstructured_branch2.cpp, function compiler_unstructured_branch2, line 27

compiler_unstructured_branch3:
  compiler_unstructured_branch3()    [SUCCESS]

compiler_write_only_bytes:
  compiler_write_only_bytes()    [SUCCESS]

compiler_write_only:
  compiler_write_only()    [SUCCESS]

compiler_write_only_shorts:
  compiler_write_only_shorts()    [SUCCESS]

compiler_switch:
  compiler_switch()    [FAILED]
    Error: ((int32_t*)buf_data[0])[i] == cpu_dst[i]
  at
file /var/tmp/portage/dev-libs/beignet-9999/work/beignet-9999/utests/compiler_switch.cpp, function compiler_switch, line 42

compiler_math:
  compiler_math()    [FAILED]
    Error: fabs(gpu-cpu)/std::max(fabs(cpu), fabs(gpu)) < 1e-4f
  at
file /var/tmp/portage/dev-libs/beignet-9999/work/beignet-9999/utests/compiler_math.cpp, function compiler_math, line 47

compiler_insn_selection_min:
  compiler_insn_selection_min()    [SUCCESS]

compiler_insn_selection_max:
  compiler_insn_selection_max()    [SUCCESS]

compiler_insn_selection_masked_min_max:
  compiler_insn_selection_masked_min_max()    [FAILED]
    Error: dst[i] == cpu_dst
  at
file /var/tmp/portage/dev-libs/beignet-9999/work/beignet-9999/utests/compiler_insn_selection_masked_min_max.cpp, function compiler_insn_selection_masked_min_max, line 36

compiler_local_memory:
  compiler_local_memory()    [FAILED]
    Error: dst[i+j] == 15-j
  at
file /var/tmp/portage/dev-libs/beignet-9999/work/beignet-9999/utests/compiler_local_memory.cpp, function compiler_local_memory, line 42

compiler_local_memory_two_ptr:
  compiler_local_memory_two_ptr()    [FAILED]
    Error: dst[i+j] == (gid&~0xf) + 15-tid + 15-tid
  at
file /var/tmp/portage/dev-libs/beignet-9999/work/beignet-9999/utests/compiler_local_memory_two_ptr.cpp, function compiler_local_memory_two_ptr, line 45

compiler_local_memory_barrier:
  compiler_local_memory_barrier()    [FAILED]
    Error: dst[i+j] == 15-j
  at
file /var/tmp/portage/dev-libs/beignet-9999/work/beignet-9999/utests/compiler_local_memory_barrier.cpp, function compiler_local_memory_barrier, line 42

compiler_local_memory_barrier_wg64:
  compiler_local_memory_barrier_wg64()    [FAILED]
    Error: dst[i+j] == 63-j
  at
file /var/tmp/portage/dev-libs/beignet-9999/work/beignet-9999/utests/compiler_local_memory_barrier_wg64.cpp, function compiler_local_memory_barrier_wg64, line 42

compiler_movforphi_undef:
  compiler_movforphi_undef()    [SUCCESS]

compiler_volatile:
  compiler_volatile()    [SUCCESS]

runtime_createcontextfromtype:
  runtime_createcontextfromtype()    [SUCCESS]

compiler_fill_gl_image:
  compiler_fill_gl_image()    [SUCCESS]





More information about the Beignet mailing list