cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

guruvyasa
Journeyman III

opencl installation help needed on ubuntu 10.10

a

i have been asked to use opencl for my new video processing project. I ve an ASUS K52J laptop with ATI Radeon HD 6370M graphics card. I want to install opencl in ubuntu 10.10. The manual talks about catalyst driver in system requirements. Please help me do this. Are there any ubuntu packages for this purpose?

0 Likes
10 Replies
eugenek
Journeyman III

You can get the needed driver from the 'download drivers' box on the front page of www.amd.com.

0 Likes

i recomend use this http://wiki.cchtml.com/index.php/Ubuntu_Maverick_Installation_Guide#Installing_the_drivers_manually

and you can use my packages for OpenCL runtime.

0 Likes
guruvyasa
Journeyman III

thanks for the replies..esp the wiki link above was very helpful.. i used ubuntu's additional drivers option as given in the wiki to install the driver and now fglrx and aticonfig work fine now..i then downloaded the ati-stream-sdk2.3 from amd site and followed the installation-notes..but when i used make to build the samples here is what i get..

 

make -C samples

make[1]: Entering directory `/home/chandan/ati-stream-sdk-v2.3-lnx32/samples'

make -C opencl

make[2]: Entering directory `/home/chandan/ati-stream-sdk-v2.3-lnx32/samples/opencl'

make -C SDKUtil

make[3]: Entering directory `/home/chandan/ati-stream-sdk-v2.3-lnx32/samples/opencl/SDKUtil'

mkdir -p build/debug/x86/

Building build/debug/x86//SDKApplication.o

g++  -m32 -msse2 -Wpointer-arith   -Wfloat-equal -g3 -ffor-scope   -I  ../../../samples/opencl/SDKUtil/include  -I  include -I  "/home/chandan/ati-stream-sdk-v2.3-lnx32

/bin/sh: Syntax error: Unterminated quoted string

make[3]: *** [build/debug/x86//SDKApplication.o] Error 2

make[3]: Leaving directory `/home/chandan/ati-stream-sdk-v2.3-lnx32/samples/opencl/SDKUtil'

make[2]: *** [SDKUtil] Error 2

make[2]: Leaving directory `/home/chandan/ati-stream-sdk-v2.3-lnx32/samples/opencl'

make[1]: *** [opencl] Error 2

make[1]: Leaving directory `/home/chandan/ati-stream-sdk-v2.3-lnx32/samples'

make: *** [samples] Error 2

i anyways went into samples directory and then into opencl/bin..i tried running ./DCT and here is the output..
Input
60.4487 44.4858 125.35 210.627 97.6279 188.075 226.145 86.9463 54.0471 209.454 138.394 29.2617 146.722 216.386 24.6301 206.886 148.016 139.572 64.205 60.139 119.214 2.41402 214.223 15.962 63.0311 106.88 199.724 161.225 119.524 26.1725 33.4954 179.972 70.6583 158.845 134.599 168.286 90.9199 104.744 255.233 144.967 58.1985 137.627 174.229 204.921 98.0126 198.859 155.807 246.029 82.4309 220.012 50.168 201.645 222.426 8.39097 217.607 29.4573 115.271 161.332 190.682 234.794 187.504 224.177 158.767 2.16233 
*** CAL version mismatch:
This OpenCL build requires version 1.4.879, version 1.4.838 installed.
Aborting.
Platform Vendor : Advanced Micro Devices, Inc.
Error: clGetDeviceIDs failed Error code : CL_DEVICE_NOT_FOUND
Error: sampleCommon:isplayDevices() failed
i dont understand what s going on.. is there anything i missed?


0 Likes

there is clear error.unterminated quote.

g++  -m32 -msse2 -Wpointer-arith   -Wfloat-equal -g3 -ffor-scope   -I  ../../../samples/opencl/SDKUtil/include  -I  include -I  "/home/chandan/ati-stream-sdk-v2.3-lnx32

after that include path should be a "

second driver in ubuntu repository si old. you need at least 10.11. so download latest 11.1 from amd site and install.

0 Likes
Tasp
Journeyman III

http://wiki.cchtml.com/index.php/Ubuntu_Maverick_Installation_Guide

Follow this link for catalyst installation.

0 Likes

ok..i followed the instructions in the wiki to install the latest driver..i keep getting aticonfig:No supported adapters detected...i removed the driver many times, checked if /etc/ati was also removed and then installed again but still get the same message..on reboot the screen went blank and i again installed xserver as given in wiki..also i get the following warning during installation..

Setting up fglrx (2:8.812-0ubuntu1) ...

update-alternatives: using /usr/lib/fglrx/ld.so.conf to provide /etc/ld.so.conf.d/GL.conf (gl_conf) in auto mode.

update-alternatives: warning: skip creation of /usr/lib32/libaticalcl.so because associated file /usr/lib32/fglrx/libaticalcl.so (of link group gl_conf) doesn't exist.

update-alternatives: warning: skip creation of /usr/lib32/libaticalrt.so because associated file /usr/lib32/fglrx/libaticalrt.so (of link group gl_conf) doesn't exist.

does this have anything to do with the problem?



0 Likes

Using locate after removing fglrx completely gives following output..

locate fglrx

/etc/X11/Xsession.d/10fglrx

/etc/acpi/fglrx-powermode.sh

/etc/acpi/events/fglrx-ac-aticonfig

/etc/acpi/events/fglrx-lid-aticonfig

/etc/alternatives/10fglrx

/etc/alternatives/fglrx_dri

/etc/alternatives/fglrx_drv

/etc/alternatives/fglrx_modconf

/etc/alternatives/fglrxinfo

/etc/modprobe.d/fglrx.conf

/lib/fglrx

/lib/modules/fglrx

/lib/modules/2.6.35-25-generic/kernel/drivers/char/drm/fglrx.ko

/lib/modules/2.6.35-25-generic/updates/dkms/fglrx.ko

/lib/modules/fglrx/build_mod

/lib/modules/fglrx/fglrx.2.6.35-25-generic.ko

/lib/modules/fglrx/fglrx.ko

/lib/modules/fglrx/make.2.6.35-25-generic.log

/lib/modules/fglrx/build_mod/2.6.x

/lib/modules/fglrx/build_mod/fglrx.ko

/lib/modules/fglrx/build_mod/make.sh.log

/lib/modules/fglrx/build_mod/2.6.x/.fglrx.ko.cmd

/lib/modules/fglrx/build_mod/2.6.x/.fglrx.mod.o.cmd

/lib/modules/fglrx/build_mod/2.6.x/.fglrx.o.cmd

/lib/modules/fglrx/build_mod/2.6.x/.firegl_public.o.cmd

/lib/modules/fglrx/build_mod/2.6.x/.kcl_acpi.o.cmd

/lib/modules/fglrx/build_mod/2.6.x/.kcl_agp.o.cmd

/lib/modules/fglrx/build_mod/2.6.x/.kcl_debug.o.cmd

/lib/modules/fglrx/build_mod/2.6.x/.kcl_io.o.cmd

/lib/modules/fglrx/build_mod/2.6.x/.kcl_ioctl.o.cmd

/lib/modules/fglrx/build_mod/2.6.x/.kcl_pci.o.cmd

/lib/modules/fglrx/build_mod/2.6.x/.kcl_str.o.cmd

/lib/modules/fglrx/build_mod/2.6.x/.kcl_wait.o.cmd

/lib/modules/fglrx/build_mod/2.6.x/.libfglrx_ip.a.GCC4.cmd

/lib/modules/fglrx/build_mod/2.6.x/.tmp_versions

/lib/modules/fglrx/build_mod/2.6.x/Module.symvers

/lib/modules/fglrx/build_mod/2.6.x/drm.h

/lib/modules/fglrx/build_mod/2.6.x/drmP.h

/lib/modules/fglrx/build_mod/2.6.x/drm_compat.h

/lib/modules/fglrx/build_mod/2.6.x/drm_os_linux.h

/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h

/lib/modules/fglrx/build_mod/2.6.x/fglrx.ko

/lib/modules/fglrx/build_mod/2.6.x/fglrx.mod.c

/lib/modules/fglrx/build_mod/2.6.x/fglrx.mod.o

/lib/modules/fglrx/build_mod/2.6.x/fglrx.o

/lib/modules/fglrx/build_mod/2.6.x/fglrxko_pci_ids.h

/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c

/lib/modules/fglrx/build_mod/2.6.x/firegl_public.h

/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o

/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c

/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.h

/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o

/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.c

/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.h

/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o

/lib/modules/fglrx/build_mod/2.6.x/kcl_config.h

/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.c

/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.h

/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o

/lib/modules/fglrx/build_mod/2.6.x/kcl_io.c

/lib/modules/fglrx/build_mod/2.6.x/kcl_io.h

/lib/modules/fglrx/build_mod/2.6.x/kcl_io.o

/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.c

/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.h

/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o

/lib/modules/fglrx/build_mod/2.6.x/kcl_osconfig.h

/lib/modules/fglrx/build_mod/2.6.x/kcl_pci.c

/lib/modules/fglrx/build_mod/2.6.x/kcl_pci.h

/lib/modules/fglrx/build_mod/2.6.x/kcl_pci.o

/lib/modules/fglrx/build_mod/2.6.x/kcl_str.c

/lib/modules/fglrx/build_mod/2.6.x/kcl_str.h

/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o

/lib/modules/fglrx/build_mod/2.6.x/kcl_type.h

/lib/modules/fglrx/build_mod/2.6.x/kcl_wait.c

/lib/modules/fglrx/build_mod/2.6.x/kcl_wait.h

/lib/modules/fglrx/build_mod/2.6.x/kcl_wait.o

/lib/modules/fglrx/build_mod/2.6.x/libfglrx_ip.a.GCC4

/lib/modules/fglrx/build_mod/2.6.x/modules.order

/lib/modules/fglrx/build_mod/2.6.x/.tmp_versions/fglrx.mod

/usr/bin/fglrxinfo

/usr/lib/fglrx

/usr/lib/dri/fglrx_dri.so

/usr/lib/fglrx/10fglrx

/usr/lib/fglrx/bin

/usr/lib/fglrx/dri

/usr/lib/fglrx/etc

/usr/lib/fglrx/ld.so.conf

/usr/lib/fglrx/libAMDXvBA.cap

/usr/lib/fglrx/libAMDXvBA.so.1

/usr/lib/fglrx/libAMDXvBA.so.1.0

/usr/lib/fglrx/libGL.so

/usr/lib/fglrx/libGL.so.1

/usr/lib/fglrx/libGL.so.1.2

/usr/lib/fglrx/libXvBAW.so.1

/usr/lib/fglrx/libXvBAW.so.1.0

/usr/lib/fglrx/libatiadlxx.so

/usr/lib/fglrx/libaticalcl.so

/usr/lib/fglrx/libaticaldd.so

/usr/lib/fglrx/libaticalrt.so

/usr/lib/fglrx/libatiuki.so.1

/usr/lib/fglrx/libatiuki.so.1.0

/usr/lib/fglrx/libfglrx_dm.so.1

/usr/lib/fglrx/libfglrx_dm.so.1.0

/usr/lib/fglrx/libfglrx_gamma.so.1

/usr/lib/fglrx/libfglrx_gamma.so.1.0

/usr/lib/fglrx/xorg

/usr/lib/fglrx/etc/ati

/usr/lib/fglrx/etc/ati/amdpcsdb

/usr/lib/fglrx/etc/ati/amdpcsdb.default

/usr/lib/fglrx/etc/ati/atiogl.xml

/usr/lib/fglrx/etc/ati/authatieventsd.sh

/usr/lib/fglrx/etc/ati/control

/usr/lib/fglrx/etc/ati/logo.xbm.example

/usr/lib/fglrx/etc/ati/logo_mask.xbm.example

/usr/lib/fglrx/etc/ati/signature

/usr/lib/xorg/modules/drivers/fglrx_drv.so

/usr/share/fglrx

/usr/share/app-install/desktop/fglrx-driver.desktop

/usr/share/apport/package-hooks/source_fglrx-installer.py

/usr/share/doc/fglrx

/usr/share/doc/fglrx-amdcccle

/usr/share/doc/fglrx-modaliases

/usr/share/jockey/handlers/fglrx.py

/usr/share/jockey/handlers/fglrx.pyc

/usr/share/jockey/modaliases/fglrx-modules.alias.override

/usr/share/lintian/overrides/fglrx

/usr/share/lintian/overrides/fglrx-amdcccle

/usr/src/fglrx-8.780

/var/cache/apt/archives/fglrx-amdcccle_2%3a8.780-0ubuntu2_i386.deb

/var/cache/apt/archives/fglrx_2%3a8.780-0ubuntu2_i386.deb

/var/cache/jockey/fglrx.noconf

/var/lib/dkms/fglrx

/var/lib/dpkg/info/fglrx-amdcccle.list

/var/lib/dpkg/info/fglrx-amdcccle.md5sums

/var/lib/dpkg/info/fglrx-modaliases.list

/var/lib/dpkg/info/fglrx-modaliases.md5sums

/var/lib/dpkg/info/fglrx.conffiles

/var/lib/dpkg/info/fglrx.list

/var/lib/dpkg/info/fglrx.md5sums

/var/lib/dpkg/info/fglrx.postinst

/var/lib/dpkg/info/fglrx.postrm

/var/lib/dpkg/info/fglrx.preinst

/var/lib/dpkg/info/fglrx.prerm

/var/lib/dpkg/info/fglrx.shlibs

/var/lib/update-rc.d/fglrxkobuild

does this mean that some bits of previous installations are still present?


0 Likes

yes whole driver is present. or a most of it. whcih methot do you use? buildpkg or clasic install? in either case manual rm files is not a correct way to uninstall a driver.

0 Likes
guruvyasa
Journeyman III

hmmm...anyways i managed to remove all of it and then installed the older version ie one which comes with ubuntu itself..also downloaded and installed ati stream v2.3 manually..i was trying to compile a simple c++ program but it s showing 

fatal error: GL/gl.h: No such file or directory

there is no gl.h in the GL directory..the contents of GL directory are:

GLAux.h  glew.h  glext.h  GLU.h  glut.h  glxew.h  wglew.h

no gl.h..the c version of the same program(vector addition) works fine..


0 Likes

install mesa-common-dev

0 Likes