Ubuntu 12.04 OpenCL with Intel and Radeon?
Posted
by
Steve
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Steve
Published on 2012-06-08T12:39:07Z
Indexed on
2012/06/10
10:46 UTC
Read the original article
Hit count: 349
I want to setup my Ubuntu 12.04 with OpenCL(Open Computing Language) support for i7 2600k and Radeon HD5870.
My Monitor is connected to the integrated Graphics of the i7. Intel OpenCL SDK is installed and working. Iteration of avaliable OpenCL devices shows 2 entries for Intel.
As recommended I installed AMD APP SDK 2.6 first and then the fglrx driver.
I installed fglrx from Ubuntu repositories. This works fine till here.
When I run
aticonfig --inital -f
and restart the system I get into trouble.
Xorg starts only in low-graphics mode.
cat /var/log/Xorg.0.log
[ 21.201]
X.Org X Server 1.12.2
Release Date: 2012-05-29
[ 21.201] X Protocol Version 11, Revision 0
[ 21.201] Build Operating System: Linux 2.6.24-29-xen x86_64 Ubuntu
[ 21.201] Current Operating System: Linux chimera 3.2.0-24-generic #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012 x86_
[ 21.201] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-24-generic root=UUID=c137757b-486b-4514-9dfe-00c97662
[ 21.201] Build Date: 05 June 2012 08:35:55AM
[ 21.201] xorg-server 2:1.12.2+git20120605+server-1.12-branch.aaf48906-0ubuntu0ricotz~precise (For technical suppor
[ 21.201] Current version of pixman: 0.26.0
[ 21.201] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 21.201] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 21.201] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Jun 8 14:22:36 2012
[ 21.247] (==) Using config file: "/etc/X11/xorg.conf"
[ 21.247] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 21.450] (==) ServerLayout "aticonfig Layout"
[ 21.450] (**) |-->Screen "aticonfig-Screen[0]-0" (0)
[ 21.450] (**) | |-->Monitor "aticonfig-Monitor[0]-0"
[ 21.451] (**) | |-->Device "aticonfig-Device[0]-0"
[ 21.451] (==) Automatically adding devices
[ 21.451] (==) Automatically enabling devices
[ 21.466] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 21.466] Entry deleted from font path.
[ 21.466] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[ 21.466] Entry deleted from font path.
[ 21.466] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 21.466] Entry deleted from font path.
[ 21.473] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[ 21.473] Entry deleted from font path.
[ 21.473] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 21.473] Entry deleted from font path.
[ 21.473] (WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
[ 21.473] Entry deleted from font path.
[ 21.473] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/Type1,
built-ins
[ 21.473] (==) ModulePath set to "/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib
[ 21.473] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 21.473] (II) Loader magic: 0x7f0ad3b9ab00
[ 21.473] (II) Module ABI versions:
[ 21.473] X.Org ANSI C Emulation: 0.4
[ 21.473] X.Org Video Driver: 12.0
[ 21.473] X.Org XInput driver : 16.0
[ 21.473] X.Org Server Extension : 6.0
[ 21.473] (--) PCI:*(0:0:2:0) 8086:0122:1458:d000 rev 9, Mem @ 0xfb800000/4194304, 0xe0000000/268435456, I/O @ 0x00
[ 21.473] (--) PCI: (0:1:0:0) 1002:6898:1787:2289 rev 0, Mem @ 0xd0000000/268435456, 0xfbdc0000/131072, I/O @ 0x000
[ 21.473] (II) Open ACPI successful (/var/run/acpid.socket)
[ 21.473] (II) "extmod" will be loaded by default.
[ 21.473] (II) "dbe" will be loaded by default.
[ 21.473] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[ 21.473] (II) "record" will be loaded by default.
[ 21.473] (II) "dri" will be loaded by default.
[ 21.473] (II) "dri2" will be loaded by default.
[ 21.473] (II) LoadModule: "glx"
[ 21.732] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/extra-modules.dpkg-tmp/modules/extensions/libgl
[ 21.934] (II) Module glx: vendor="Advanced Micro Devices, Inc."
[ 21.934] compiled for 6.9.0, module version = 1.0.0
[ 21.934] (II) Loading extension GLX
[ 21.934] (II) LoadModule: "extmod"
[ 22.028] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[ 22.041] (II) Module extmod: vendor="X.Org Foundation"
[ 22.041] compiled for 1.12.2, module version = 1.0.0
[ 22.041] Module class: X.Org Server Extension
[ 22.041] ABI class: X.Org Server Extension, version 6.0
[ 22.041] (II) Loading extension MIT-SCREEN-SAVER
[ 22.041] (II) Loading extension XFree86-VidModeExtension
[ 22.041] (II) Loading extension XFree86-DGA
[ 22.041] (II) Loading extension DPMS
[ 22.041] (II) Loading extension XVideo
[ 22.041] (II) Loading extension XVideo-MotionCompensation
[ 22.041] (II) Loading extension X-Resource
[ 22.041] (II) LoadModule: "dbe"
[ 22.041] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[ 22.066] (II) Module dbe: vendor="X.Org Foundation"
[ 22.066] compiled for 1.12.2, module version = 1.0.0
[ 22.066] Module class: X.Org Server Extension
[ 22.066] ABI class: X.Org Server Extension, version 6.0
[ 22.066] (II) Loading extension DOUBLE-BUFFER
[ 22.066] (II) LoadModule: "record"
[ 22.066] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[ 22.077] (II) Module record: vendor="X.Org Foundation"
[ 22.077] compiled for 1.12.2, module version = 1.13.0
[ 22.077] Module class: X.Org Server Extension
[ 22.077] ABI class: X.Org Server Extension, version 6.0
[ 22.077] (II) Loading extension RECORD
[ 22.077] (II) LoadModule: "dri"
[ 22.077] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[ 22.082] (II) Module dri: vendor="X.Org Foundation"
[ 22.082] compiled for 1.12.2, module version = 1.0.0
[ 22.082] ABI class: X.Org Server Extension, version 6.0
[ 22.082] (II) Loading extension XFree86-DRI
[ 22.082] (II) LoadModule: "dri2"
[ 22.082] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[ 22.083] (II) Module dri2: vendor="X.Org Foundation"
[ 22.083] compiled for 1.12.2, module version = 1.2.0
[ 22.083] ABI class: X.Org Server Extension, version 6.0
[ 22.083] (II) Loading extension DRI2
[ 22.083] (II) LoadModule: "fglrx"
[ 22.083] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/extra-modules.dpkg-tmp/modules/drivers/fglrx_dr
[ 22.399] (II) Module fglrx: vendor="FireGL - ATI Technologies Inc."
[ 22.399] compiled for 1.4.99.906, module version = 8.96.4
[ 22.399] Module class: X.Org Video Driver
[ 22.399] (II) Loading sub module "fglrxdrm"
[ 22.399] (II) LoadModule: "fglrxdrm"
[ 22.399] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/extra-modules.dpkg-tmp/modules/linux/libfglrxdr
[ 22.445] (II) Module fglrxdrm: vendor="FireGL - ATI Technologies Inc."
[ 22.445] compiled for 1.4.99.906, module version = 8.96.4
[ 22.445] (II) ATI Proprietary Linux Driver Version Identifier:8.96.4
[ 22.445] (II) ATI Proprietary Linux Driver Release Identifier: 8.96.7
[ 22.445] (II) ATI Proprietary Linux Driver Build Date: Mar 12 2012 13:06:50
[ 22.445] (++) using VT number 7
[ 22.445] (WW) Falling back to old probe method for fglrx
[ 23.043] (II) Loading PCS database from /etc/ati/amdpcsdb
[ 23.082] (--) Chipset Supported AMD Graphics Processor (0x6898) found
[ 23.107] (WW) fglrx: No matching Device section for instance (BusID PCI:0@1:0:1) found
[ 23.107] (II) fglrx: intel VGA device detected, load intel driver.
[ 23.107] (II) LoadModule: "intel"
[ 23.211] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 23.475] (II) Module intel: vendor="X.Org Foundation"
[ 23.475] compiled for 1.12.2, module version = 2.19.0
[ 23.475] Module class: X.Org Video Driver
[ 23.475] ABI class: X.Org Video Driver, version 12.0
[ 23.476] ukiDynamicMajor: found major device number 249
[ 23.476] ukiDynamicMajor: found major device number 249
[ 23.476] ukiOpenByBusid: Searching for BusID PCI:1:0:0
[ 23.476] ukiOpenDevice: node name is /dev/ati/card0
[ 23.476] ukiOpenDevice: open result is 8, (OK)
[ 23.476] ukiOpenByBusid: ukiOpenMinor returns 8
[ 23.476] ukiOpenByBusid: ukiGetBusid reports PCI:1:0:0
[ 23.540] (WW) PowerXpress feature is not supported
[ 23.540] (EE) No devices detected.
[ 23.540] (==) Matched intel as autoconfigured driver 0
[ 23.540] (==) Matched vesa as autoconfigured driver 1
[ 23.540] (==) Matched fbdev as autoconfigured driver 2
[ 23.540] (==) Assigned the driver to the xf86ConfigLayout
[ 23.540] (II) LoadModule: "intel"
[ 23.540] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 23.540] (II) Module intel: vendor="X.Org Foundation"
[ 23.540] compiled for 1.12.2, module version = 2.19.0
[ 23.540] Module class: X.Org Video Driver
[ 23.540] ABI class: X.Org Video Driver, version 12.0
[ 23.540] (II) UnloadModule: "intel"
[ 23.540] (II) Unloading intel
[ 23.540] (II) Failed to load module "intel" (already loaded, 32522)
[ 23.540] (II) LoadModule: "vesa"
[ 23.583] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 23.620] (II) Module vesa: vendor="X.Org Foundation"
[ 23.620] compiled for 1.12.2, module version = 2.3.1
[ 23.620] Module class: X.Org Video Driver
[ 23.620] ABI class: X.Org Video Driver, version 12.0
[ 23.620] (II) LoadModule: "fbdev"
[ 23.620] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 23.661] (II) Module fbdev: vendor="X.Org Foundation"
[ 23.661] compiled for 1.12.2, module version = 0.4.2
[ 23.661] Module class: X.Org Video Driver
[ 23.661] ABI class: X.Org Video Driver, version 12.0
[ 23.661] (II) ATI Proprietary Linux Driver Version Identifier:8.96.4
[ 23.661] (II) ATI Proprietary Linux Driver Release Identifier: 8.96.7
[ 23.661] (II) ATI Proprietary Linux Driver Build Date: Mar 12 2012 13:06:50
[ 23.661] (II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G, 915G,
E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G,
965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45,
4 Series, G45/G43, Q45/Q43, G41, B43, B43, Clarkdale, Arrandale,
Sandybridge Desktop (GT1), Sandybridge Desktop (GT2),
Sandybridge Desktop (GT2+), Sandybridge Mobile (GT1),
Sandybridge Mobile (GT2), Sandybridge Mobile (GT2+),
Sandybridge Server, Ivybridge Mobile (GT1), Ivybridge Mobile (GT2),
Ivybridge Desktop (GT1), Ivybridge Desktop (GT2), Ivybridge Server,
Ivybridge Server (GT2)
[ 23.661] (II) VESA: driver for VESA chipsets: vesa
[ 23.661] (II) FBDEV: driver for framebuffer: fbdev
[ 23.661] (++) using VT number 7
[ 23.661] (WW) xf86OpenConsole: setpgid failed: Operation not permitted
[ 23.661] (WW) xf86OpenConsole: setsid failed: Operation not permitted
[ 23.661] (WW) Falling back to old probe method for fglrx
[ 23.661] (II) Loading PCS database from /etc/ati/amdpcsdb
[ 23.661] (WW) Falling back to old probe method for vesa
[ 23.661] (WW) Falling back to old probe method for fbdev
[ 23.661] (EE) No devices detected.
[ 23.661]
Fatal server error:
[ 23.661] no screens found
[ 23.661]
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 23.661] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 23.661]
xorg.conf:
cat /etc/X11/xorg.conf
Section "ServerLayout"
Identifier "aticonfig Layout"
Screen 0 "aticonfig-Screen[0]-0" 0 0
EndSection
Section "Module"
Load "glx"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]-0"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]-0"
Driver "fglrx"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device "aticonfig-Device[0]-0"
Monitor "aticonfig-Monitor[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Is there a way to get the Radeon to work in a hybrid configuration
or to use the Radeon as an OpenCL only device?
© Ask Ubuntu or respective owner