cl
cl copied to clipboard
Errors when running some tests on ubuntu 12.10 with AMD/ATI Radeon HD7750
ran all tests successfully on macbook air (i7) compiled with R16A
now having some issues on the linux system: ubuntu 12.10 with AMD/ATI Radeon HD7750, latest Radeon drivers for linux, R16A, latest OpenCL 1.2 headers from Khronos group site
following tests pass fine: cl_binary_test:test(). cl_bandwidth:test(). cl_square_float:test().
following tests don't pass (with output):
cl_map:test().
cl_basic:test().
cl_test:test0().
** exception error: no match of right hand side value {error,invalid_platform} in function cl_test:test0/1 (cl_test.erl, line 19)
cl_test:test1().
** exception error: no match of right hand side value {error,invalid_platform} in function cl_test:test1/2 (cl_test.erl, line 56)
Just to follow up, ran luxmark 2.0 on the same hardware configuration with no issues (various GPU and CPU+GPU tests) so it looks like hardware+drivers are fine for OpenGL 1.2
Also, i removed the Radeon and tried to run this on bare CPU (Xeon E3 1230 v2) with similar (or same errors) and: cl_map:test(). ran without any errors
but:
3> cl_test:test0(). ** exception error: no match of right hand side value {error,invalid_platform} in function cl_test:test0/1 (cl_test.erl, line 19)
cl:basic:test().
{execution_capabilities,[kernel,native_kernel]},
{queue_properties,[profiling_enable]},
{name,"Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz"},
{vendor,"GenuineIntel"},
{driver_version,"1124.2 (sse2,avx)"},
{profile,"FULL_PROFILE"},
{version,"OpenCL 1.2 AMD-APP (1124.2)"},
{extensions,"cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt "},
{platform,{platform_t,140606438387008,<<>>}}]
ContextInfo: [{reference_count,1}, {devices,[{device_t,140606438387096,<<>>}]}, {properties,[]}] Context2: [{reference_count,1}, {devices,[{device_t,140606438387096,<<>>}]}, {properties,[]}] Queue: {command_queue_t,140606438382872,<<>>} QueueInfo: [{context,{context_t,140606438386688,<<>>}}, {device,{device_t,140606438387096,<<>>}}, {reference_count,1}, {properties,[]}] Sampler1: {sampler_t,140606438383264,<<>>} Sampler1Info: [{reference_count,1}, {context,{context_t,140606438386688,<<>>}}, {normalized_coords,true}, {addressing_mode,clamp}, {filter_mode,nearest}] ** exception error: no match of right hand side value {error,invalid_value} in function cl_basic:test_sampler/2 (cl_basic.erl, line 148) in call from lists:foreach/2 (lists.erl, line 1313) in call from cl_basic:test/1 (cl_basic.erl, line 34)
Hi! Thanks for the reports. I have no clue on why this is crashing. I will do some testing on Linux soon. My main platform is a mac. But I do got a couple of linux machines with nvidia cards in them I have a new development branch called 'dev'. It "should" compile better on 1.2 and "should" work with rebar. So please try if and when you can.
FWIW, I've successfully tested on the following configuration:
- Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-45-generic x86_64)
- (2) Nvidia Titan Xp, CUDA 10.0 installed with accompanying OpenCL drivers
- Intel(R) Core(TM) i7-7800X CPU @ 3.50GHz
GPU ops run fine. I haven't installed the Intel CPU drivers so can't speak to how well those work.