Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when running some tests on ubuntu 12.10 with AMD/ATI Radeon HD7750 #13

Open
ababkin opened this issue Feb 2, 2013 · 3 comments

Comments

@ababkin
Copy link

ababkin commented Feb 2, 2013

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().

192,125,68,0,0,126,68,0,64,126,68,0,128,126,68,0,192,126,68, 0,0,127,68,0,64,127,68,0,128,127,68,0,192,127,68,0,0,128,68>>}, {kwork,{command_queue_t,140481757717824,<<>>}, 256,800,8,0.26666666666666666,undefined,undefined,undefined, undefined,undefined,4,<<>>}] *\* exception error: no match of right hand side value {error,invalid_buffer_size} in function cl_map:'-run/2-fun-3-'/2 (cl_map.erl, line 73) in call from lists:map/2 (lists.erl, line 1224) in call from lists:map/2 (lists.erl, line 1224) in call from cl_map:run/2 (cl_map.erl, line 70) in call from cl_map:test/0 (cl_map.erl, line 24)

cl_basic:test().

{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,140481757713216,<<>>}}] ContextInfo: [{reference_count,1}, {devices,[{device_t,140481757713304,<<>>}, {device_t,140481757713392,<<>>}]}, {properties,[]}] Context2: [{reference_count,1}, {devices,[{device_t,140481757713304,<<>>}, {device_t,140481757713392,<<>>}]}, {properties,[]}] Queue: {command_queue_t,140481757721192,<<>>} QueueInfo: [{context,{context_t,140481757720152,<<>>}}, {device,{device_t,140481757713304,<<>>}}, {reference_count,1}, {properties,[]}] Queue: {command_queue_t,140481757746712,<<>>} QueueInfo: [{context,{context_t,140481757720152,<<>>}}, {device,{device_t,140481757713392,<<>>}}, {reference_count,1}, {properties,[]}] Sampler1: {sampler_t,140481757747104,<<>>} Sampler1Info: [{reference_count,1}, {context,{context_t,140481757720152,<<>>}}, {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)'

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)

@ababkin
Copy link
Author

ababkin commented Feb 3, 2013

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)

@tonyrog
Copy link
Owner

tonyrog commented Feb 5, 2013

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.

@arpieb
Copy link
Contributor

arpieb commented Apr 25, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants