pia_novice

How to enable OpenCL-GPU-processing in Linux (CL_DEVICE_TYPE_GPU)?

Discussion created by pia_novice on Jan 24, 2011
Latest reply on Jan 26, 2011 by MicahVillmow

Hello,

I set up the ATI Stream SDK. The examples as well as my programmes are running fine. However, as the only available device is CL_DEVICE_TYPE_CPU all OpenCL programmes run on the CPU and not on the GPU.

Does my graphics card model support OpengCL?

How does one enable OpenCL processing on the GPU, viz. CL_DEVICE_TYPE_GPU?

Any help is greatly appreciated

Karl

localhost:~# /home/pia/rpms/tarballs/ati-stream-sdk-v2.3-lnx64/samples/cal/bin/x86_64/FindNumDevices
Supported CAL Runtime Version: 1.3.185
Found CAL Runtime Version: 1.4.900
Use -? for help
CAL initialized.
Finding out number of devices :-
Device Count = 1
CAL shutdown successful.

Driver: (most recent as of today)
ati-driver-installer-10-12-x86.x86_64.run

SDK:
ati-stream-sdk-v2.3-lnx64.tgz

GPU:
localhost:~# hwinfo | grep -i -E "model.*radeon"
  Model: "ATI Mobility Radeon HD 3400 Series"

localhost:~# glxinfo | head -n 5 | tail -n 3
direct rendering: Yes
server glx vendor string: ATI
server glx version string: 1.4

OpenGl/DRI test:
localhost:~# glxgears
25058 frames in 5.0 seconds = 5011.454 FPS

localhost:~# fgl_glxgears
Using GLX_SGIX_pbuffer
5118 frames in 5.0 seconds = 1023.600 FPS

Operating System:
localhost:~# lsb_release -i -r -c
Distributor ID: Debian
Release:        6.0
Codename:       squeeze

localhost:~# uname -a
Linux localhost 2.6.32-5-amd64 #1 SMP Wed Jan 12 03:40:32 UTC 2011 x86_64 GNU/Linux

Outcomes