ealbayrak

Need Help "Error code : CL_DEVICE_NOT_FOUND"

Discussion created by ealbayrak on Sep 29, 2010
Latest reply on Oct 1, 2010 by eklund.n
Samples doesn't work on GPU but CPU is fine

Hello i'm kind of a noob in OpenCL and Linux, i've just started using OpenCL and still trying to setup necessary parts, drivers etc. to my Computer.

My problem is when I try to run the samples they give the following error "Error: clCreateContextFromType failed. Error code : CL_DEVICE_NOT_FOUND"

I've downloaded the driver that the one is suggested by "Hardware Drivers" application in Ubuntu.

I think i've managed to compile the samples, and my CLInfo gives the following result,

 

 

Number of platforms: 1

  Platform Profile: FULL_PROFILE

  Platform Version: OpenCL 1.1 ATI-Stream-v2.2 (302)

  Platform Name: ATI Stream

  Platform Vendor: Advanced Micro Devices, Inc.

  Platform Extensions: cl_khr_icd cl_amd_event_callback

 

 

  Platform Name: ATI Stream

Number of devices: 1

  Device Type: CL_DEVICE_TYPE_CPU

  Device ID: 4098

  Max compute units: 2

  Max work items dimensions: 3

    Max work items[0]: 1024

    Max work items[1]: 1024

    Max work items[2]: 1024

  Max work group size: 1024

  Preferred vector width char: 16

  Preferred vector width short: 8

  Preferred vector width int: 4

  Preferred vector width long: 2

  Preferred vector width float: 4

  Preferred vector width double: 0

  Max clock frequency: 2534Mhz

  Address bits: 32

  Max memory allocation: 536870912

  Image support: No

  Max size of kernel argument: 4096

  Alignment (bits) of base address: 1024

  Minimum alignment (bytes) for any datatype: 128

  Single precision floating point capability

    Denorms: Yes

    Quiet NaNs: Yes

    Round to nearest even: Yes

    Round to zero: Yes

    Round to +ve and infinity: Yes

    IEEE754-2008 fused multiply-add: No

  Cache type: Read/Write

  Cache line size: 64

  Cache size: 32768

  Global memory size: 1073741824

  Constant buffer size: 65536

  Max number of constant args: 8

  Local memory type: Global

  Local memory size: 32768

  Profiling timer resolution: 1

  Device endianess: Little

  Available: Yes

  Compiler available: Yes

  Execution capabilities:  

    Execute OpenCL kernels: Yes

    Execute native function: Yes

  Queue properties:  

    Out-of-Order: No

    Profiling : Yes

  Platform ID: 0x1b65dc0

  Name: Intel(R) Core(TM)2 Duo CPU     P8700  @ 2.53GHz

  Vendor: GenuineIntel

  Driver version: 2.0

  Profile: FULL_PROFILE

  Version: OpenCL 1.1 ATI-Stream-v2.2 (302)

  Extensions: 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_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_printf 

Passed!



But it doesn't see my GPU as a device, what do I need to do? Do I have to activate it somehow or maybe I've failed to Install the latest driver?
By the way my GPU is Mobility Radeon HD 4650, on the website of OpenCL SDK this device is in the list of Beta Support. 
Finally my lspci|grep ATI is
01:00.0 VGA compatible controller: ATI Technologies Inc M96 [Mobility Radeon HD 4650]
01:00.1 Audio device: ATI Technologies Inc RV710/730
Thank you.

Outcomes