Hello All,
I have trouble running OpenCL from ATI stream sdv v2.01 on Linux/Ubuntu/Karmic/AMD64 (2.6.31-20-generic kernel). I have an ATI 5770 card with two screens in dual-head.
I did install the FGLRX driver (file ati-driver-installer-10-1-x86.x86_64.run downloaded & run), since /var/log/Xorg.0.org contains notably
I did install the ati-stream-sdk-v2.01-lnx64 under /usr/local and I added all symlinks inside /usr/local and /usr/lib/openCL/vendors
lrwxrwxrwx 1 root root 63 2010-02-14 19:45 /usr/lib/OpenCL/vendors/libatiocl64.so -> /usr/local/ati-stream-sdk-v2.01-lnx64/lib/x86_64/libatiocl64.so
lrwxrwxrwx 1 root root 63 2010-02-14 19:43 /usr/local/lib/libatiocl64.so -> /usr/local/ati-stream-sdk-v2.01-lnx64/lib/x86_64/libatiocl64.so
lrwxrwxrwx 1 root root 59 2010-02-14 19:43 /usr/local/lib/libGLEW.so -> /usr/local/ati-stream-sdk-v2.01-lnx64/lib/x86_64/libGLEW.so
lrwxrwxrwx 1 root root 59 2010-02-14 19:43 /usr/local/lib/libglut.so -> /usr/local/ati-stream-sdk-v2.01-lnx64/lib/x86_64/libglut.so
-rwxr-xr-x 1 root root 89757 2009-12-29 09:39 /usr/local/lib/libikvm-native.so
lrwxrwxrwx 1 root root 61 2010-02-14 19:43 /usr/local/lib/libOpenCL.so -> /usr/local/ati-stream-sdk-v2.01-lnx64/lib/x86_64/libOpenCL.so
I did set the environment variables appropriately. ATISTREAMSDKSAMPLESROOT=/usr/local/ati-stream-sdk-v2.01-lnx64/
ATISTREAMSDKROOT=/usr/local/ati-stream-sdk-v2.01-lnx64/
the shared libraries are accessible since ldconfig was run and /usr/local/lib is in /etc/ld.so.conf
ldd /usr/local/ati-stream-sdk-v2.01-lnx64/samples/opencl/bin/x86_64/HelloCL
linux-vdso.so.1 => (0x00007fffb072e000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007f1ffeff7000)
libdl.so.2 => /lib/libdl.so.2 (0x00007f1ffedf3000)
libOpenCL.so => /usr/local/lib/libOpenCL.so (0x00007f1ffebed000)
libstdc++.so.6 => /usr/local/lib64/libstdc++.so.6 (0x00007f1ffe8ea000)
libm.so.6 => /lib/libm.so.6 (0x00007f1ffe666000)
libgcc_s.so.1 => /usr/local/lib64/libgcc_s.so.1 (0x00007f1ffe450000)
libc.so.6 => /lib/libc.so.6 (0x00007f1ffe0e1000)
/lib64/ld-linux-x86-64.so.2 (0x00007f1fff213000)
librt.so.1 => /lib/librt.so.1 (0x00007f1ffded9000)
But HelloCL fails
./HelloCL
HelloCL!
Getting Platform Information
Segmentation fault
and ldd /usr/local/ati-stream-sdk-v2.01-lnx64/samples/cal/bin/x86_64/hellocal
linux-vdso.so.1 => (0x00007fff9496b000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007f0a32cf6000)
libdl.so.2 => /lib/libdl.so.2 (0x00007f0a32af2000)
libaticalrt.so => /usr/lib/libaticalrt.so (0x00007f0a32fed000)
libaticalcl.so => /usr/lib/libaticalcl.so (0x00007f0a329d4000)
libstdc++.so.6 => /usr/local/lib64/libstdc++.so.6 (0x00007f0a326d1000)
libm.so.6 => /lib/libm.so.6 (0x00007f0a3244d000)
libgcc_s.so.1 => /usr/local/lib64/libgcc_s.so.1 (0x00007f0a32237000)
libc.so.6 => /lib/libc.so.6 (0x00007f0a31ec8000)
/lib64/ld-linux-x86-64.so.2 (0x00007f0a32f12000)
librt.so.1 => /lib/librt.so.1 (0x00007f0a31cc0000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f0a31aae000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f0a31778000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f0a31575000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f0a31359000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f0a31154000)
but
/usr/local/ati-stream-sdk-v2.01-lnx64/samples/cal/bin/x86_64/hellocal
Supported CAL Runtime Version: 1.3.185
Found CAL Runtime Version: 1.4.519
Use -? for help
Segmentation fault
Any help is welcome.
Regards
--
Basile Starynkevitch (from France)
X.Org X Server 1.6.4 Release Date: 2009-9-27 X Protocol Version 11, Revision 0 Build Operating System: Linux 2.6.24-23-server x86_64 Ubuntu Current Operating System: Linux glinka 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.31-20-generic root=UUID=5e526171-aff8-4609-b996-fdf9953bd72b ro quiet splash Build Date: 14 November 2009 05:48:57PM xorg-server 2:1.6.4-2ubuntu4.1 (buildd@) (--) PCI:*(0:1:0:0) 1002:68b8:1002:2543 ATI Technologies Inc rev 0, Mem @ 0xe0000000/268435456, 0xf5000000/131072, I/O @ 0x00008000/256, BIOS @ 0x????????/131072 (II) LoadModule: "glx" (II) Loading /usr/lib/xorg/modules/extensions//libglx.so (II) Module glx: vendor="FireGL - ATI Technologies Inc." compiled for 7.4.0, module version = 1.0.0 (II) LoadModule: "fglrx" (II) Loading /usr/lib/xorg/modules/drivers//fglrx_drv.so (II) Module fglrx: vendor="FireGL - ATI Technologies Inc." compiled for 1.4.99.906, module version = 8.69.4 Module class: X.Org Video Driver (II) Loading sub module "fglrxdrm" (II) LoadModule: "fglrxdrm" (II) Reloading /usr/lib/xorg/modules/linux//libfglrxdrm.so (II) ATI Proprietary Linux Driver Version Identifier:8.69.4 (II) ATI Proprietary Linux Driver Release Identifier: 8.69 (II) ATI Proprietary Linux Driver Build Date: Dec 11 2009 14:56:51 (II) Primary Device is: PCI 01@00:00:0 (II) Loading PCS database from /etc/ati/amdpcsdb (--) Chipset Supported AMD Graphics Processor (0x68B8) found (--) Chipset Supported AMD Graphics Processor (0x68B8) found (WW) fglrx: No matching Device section for instance (BusID PCI:0@1:0:1) found (II) AMD Video driver is running on a device belonging to a group targeted for this release (II) AMD Video driver is signed (II) Loading sub module "fglrxdrm" (II) LoadModule: "fglrxdrm" (II) Reloading /usr/lib/xorg/modules/linux//libfglrxdrm.so ukiDynamicMajor: found major device number 251 ukiDynamicMajor: found major device number 251 ukiOpenByBusid: Searching for BusID PCI:1:0:0 ukiOpenDevice: node name is /dev/ati/card0 ukiOpenDevice: open result is 9, (OK) ukiOpenByBusid: ukiOpenMinor returns 9 ukiOpenByBusid: ukiGetBusid reports PCI:1:0:0 (--) fglrx(0): Chipset: "ATI Radeon HD 5700 Series" (Chipset = 0x68b8) (--) fglrx(0): (PciSubVendor = 0x1002, PciSubDevice = 0x2543) (--) fglrx(0): board vendor info: original ATI graphics adapter (--) fglrx(0): Linear framebuffer (phys) at 0xe0000000 (--) fglrx(0): MMIO registers at 0xf5000000 (--) fglrx(0): I/O port at 0x00008000 (==) fglrx(0): ROM-BIOS at 0x000c0000 (II) fglrx(0): AC Adapter is used (II) fglrx(0): Primary V_BIOS segment is: 0xc000 (II) fglrx(0): VESA BIOS detected (II) fglrx(0): VESA VBE Version 3.0 (II) fglrx(0): VESA VBE Total Mem: 16384 kB (II) fglrx(0): VESA VBE OEM: ATI ATOMBIOS (II) fglrx(0): VESA VBE OEM Software Rev: 12.12 (II) fglrx(0): VESA VBE OEM Vendor: (C) 1988-2005, ATI Technologies Inc. (II) fglrx(0): VESA VBE OEM Product: JUNIPER (II) fglrx(0): VESA VBE OEM Product Rev: 01.00 (II) fglrx(0): ATI Video BIOS revision 9 or later detected (II) fglrx(0): ***Display: ConnectedDisplayTypes=0x00000300, disabled=0x00000000 (II) fglrx(0): Connected Display1: DFP 3 [dfp3] (II) fglrx(0): Display1 EDID data --------------------------- (II) fglrx(0): Manufacturer: SAM Model: 27d Serial#: 1296380464 (II) fglrx(0): Year: 2008 Week: 7 (II) fglrx(0): EDID Version: 1.3 (II) fglrx(0): Digital Display Input (**) fglrx(1): Depth 24, (--) framebuffer bpp 32 (II) fglrx(1): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps) (==) fglrx(1): Default visual is TrueColor (==) fglrx(1): RGB weight 888 (II) fglrx(1): Using 8 bits per RGB (==) fglrx(1): Buffer Tiling is ON (copy from primary) (--) fglrx(1): Chipset: "ATI Radeon HD 5700 Series" (Chipset = 0x68b8) (--) fglrx(1): (PciSubVendor = 0x1002, PciSubDevice = 0x2543) (--) fglrx(1): board vendor info: original ATI graphics adapter (--) fglrx(1): Video RAM: 1048576 kByte, Type: GDDR5 (II) fglrx(1): board/chipset is supported by this driver (original ATI board) (II) fglrx(0): driver needs X.org 1.4.x.y with x.y >= 99.906 (WW) fglrx(0): could not detect X server version (query_status=-1) (II) Loading extension ATIFGLRXDRI (II) fglrx(0): doing swlDriScreenInit (II) fglrx(0): swlDriScreenInit for fglrx driver (II) fglrx(0): [uki] DRM interface version 1.0 (II) fglrx(0): [uki] created "fglrx" driver at busid "PCI:1:0:0" (II) fglrx(0): [uki] added 8192 byte SAREA at 0xa15000 (II) fglrx(0): [uki] mapped SAREA 0xa15000 to 0x7f63d84a5000 (II) fglrx(0): [uki] framebuffer handle = 0xa16000 (II) fglrx(0): [uki] added 1 reserved context for kernel (II) fglrx(0): swlDriScreenInit done (II) fglrx(0): Kernel Module Version Information: (II) fglrx(0): Name: fglrx (II) fglrx(0): Version: 8.69.4 (II) fglrx(0): Date: Dec 11 2009 (II) fglrx(0): Desc: ATI FireGL DRM kernel module (II) fglrx(0): Kernel Module version matches driver. (II) fglrx(0): Kernel Module Build Time Information: (II) fglrx(0): Build-Kernel UTS_RELEASE: 2.6.31-20-generic (II) fglrx(0): Build-Kernel MODVERSIONS: yes (II) fglrx(0): Build-Kernel __SMP__: yes (II) fglrx(0): Build-Kernel PAGE_SIZE: 0x1000 (II) fglrx(0): [uki] register handle = 0x00a17000 (II) fglrx(0): Display width adjusted to to 1792 due to alignment constraints (II) fglrx(0): DRI initialization successfull! (II) fglrx(0): FBADPhys: 0xf01040000 FBMappedSize: 0x010a0000 (II) fglrx(0): FBMM initialized for area (0,0)-(1792,2432) (II) fglrx(0): FBMM auto alloc for area (0,0)-(1792,1792) (front color buffer - assumption) (II) fglrx(0): Largest offscreen area available: 1792 x 640 (==) fglrx(0): Backing store disabled (II) Loading extension FGLRXEXTENSION (II) Loading extension ATITVOUT (**) fglrx(0): DPMS enabled (**) fglrx(0): Textured Video is enabled. (II) LoadModule: "amdxmm" (II) Loading /usr/lib/xorg/modules//amdxmm.so (II) Module amdxmm: vendor="X.Org Foundation" compiled for 1.4.99.906, module version = 1.0.0 (II) Loading extension AMDXVOPL (II) fglrx(0): Composite extension is not loaded (WW) fglrx(0): Option "VendorName" is not used (WW) fglrx(0): Option "ModelName" is not used (II) fglrx(0): X context handle = 0x1 (II) fglrx(0): [DRI] installation complete (==) fglrx(0): Silken mouse enabled (==) fglrx(0): Using HW cursor of display infrastructure! (==) fglrx(0): Using software cursor (II) fglrx(0): Disabling in-server RandR and enabling in-driver RandR 1.2. (II) fglrx(0): User Preference Output DFP4 using refresh rate 60.0 Hz. (--) RandR disabled (II) fglrx(1): driver needs X.org 1.4.x.y with x.y >= 99.906 (WW) fglrx(1): could not detect X server version (query_status=-1) (II) fglrx(1): doing swlDriScreenInit (II) fglrx(1): swlDriScreenInit for fglrx driver ukiDynamicMajor: found major device number 251 ukiDynamicMajor: found major device number 251 ukiDynamicMajor: found major device number 251 ukiOpenByBusid: Searching for BusID PCI:1:0:0 ukiOpenDevice: node name is /dev/ati/card0 ukiOpenDevice: open result is 13, (OK) ukiOpenByBusid: ukiOpenMinor returns 13 ukiOpenByBusid: ukiGetBusid reports PCI:1:0:0 (II) fglrx(1): [uki] DRM interface version 1.0 (II) fglrx(1): [uki] created "fglrx" driver at busid "PCI:1:0:0" (II) fglrx(1): [uki] added 8192 byte SAREA at 0xa15000 (II) fglrx(1): [uki] mapped SAREA 0xa15000 to 0x7f63d82ad000 (II) fglrx(1): [uki] framebuffer handle = 0xa16000 (II) fglrx(1): [uki] added 1 reserved context for kernel (II) fglrx(1): swlDriScreenInit done (II) fglrx(1): Display width adjusted to to 1792 due to alignment constraints (II) fglrx(1): DRI initialization successfull! (II) fglrx(1): FBADPhys: 0xf0000c000 FBMappedSize: 0x00e00000 (II) fglrx(1): FBMM initialized for area (0,0)-(1792,2048) (II) fglrx(1): FBMM auto alloc for area (0,0)-(1792,1792) (front color buffer - assumption) (II) fglrx(1): Largest offscreen area available: 1792 x 256 (==) fglrx(1): Backing store disabled (II) fglrx(1): DPMS enabled (**) fglrx(1): Textured Video is enabled. (II) fglrx(1): GLESX enableFlags = 94 (II) fglrx(1): Using XFree86 Acceleration Architecture (XAA) (II) fglrx(1): GLESX is enabled (II) fglrx(1): Composite extension is not loaded (II) fglrx(1): X context handle = 0x2 (II) fglrx(1): [DRI] installation complete (==) fglrx(1): Silken mouse enabled (==) fglrx(1): Using HW cursor of display infrastructure! (==) fglrx(1): Using software cursor (II) fglrx(1): Disabling in-server RandR and enabling in-driver RandR 1.2. (II) fglrx(1): User Preference Output DFP3 using refresh rate 60.0 Hz. (II) AIGLX: Loaded and initialized /usr/X11R6/lib64/modules/dri/fglrx_dri.so (II) GLX: Initialized DRI GL provider for screen 0 (II) AIGLX: Loaded and initialized /usr/X11R6/lib64/modules/dri/fglrx_dri.so (II) GLX: Initialized DRI GL provider for screen 1 (II) fglrx(0): Restoring Recent Mode via PCS is not supported in RANDR 1.2 capable environments (II) fglrx(1): Restoring Recent Mode via PCS is not supported in RANDR 1.2 capable environments
basile.starynkevitch,
10.1 catalyst is not supported on Ubuntu 9.10. You require 10.2 catalyst for Ubuntu 9.10.
See following links to solve/use 10.1 or older catalyst on Ubuntu 9.10.
URL: http://forums.amd.com/forum/messageview.cfm?catid=328&threadid=124182&forumid=9
URL : http://forums.amd.com/forum/messageview.cfm?catid=390&threadid=126750&forumid=9
Where can I download catalyst 10.2 for Linux/Amd64?
Originally posted by: basile.starynkevitch Where can I download catalyst 10.2 for Linux/Amd64?
I am not able to find it (Catalyst 10.2 for Linux/AMD64) with google, and the http://game.amd.com/us-en/drivers_catalyst.aspx page only propose 10.1 and the http://budurl.com/xfj9 short URL also (so I believe that the 10.2 number is a typo).
And the numbering is confusing. I downloaded the ATI Catalyst™ 9.12 Proprietary Linux x86 Display Driver of revision number 10.1
Could you send an exact URL of the 10.2 catalyst for Linux AMD64 (ie x86_64) please? I did not found it, and I searched it, and all the short URLs (ion twitter or elsewhere) seems to lead to a 10.1 .... Ideally an MD5 or SHA1 checksum also would be ideal.
By the way, I don't understand the strange dual numbering 10.2/9.12 and find it confusing.
(And I will work on an OpenCL generator inside the GCC compiler, as a GCC MELT plugin. MELT is a high-level language to write GCC plugins).
Regards.
Basile Starynkevitch
basile.starynkevitch,
catalyst 10.2 not released yet. I thought it was released.
See following links to solve/use 10.1 or older catalyst on Ubuntu 9.10.
URL: http://forums.amd.com/forum/messageview.cfm?catid=328&threadid=124182&forumid=9
URL : http://forums.amd.com/forum/messageview.cfm?catid=390&threadid=126750&forumid=9
numbering of catalyst version is year.month as it have Ubutnu too.
try add nopat option into kernel parameter. for me it works on Ubuntu 9.10.
try add nopat option into kernel parameter. for me it works on Ubuntu 9.10.
Thanks a big lot. It works!
May I respectfully suggest to AMD/ATI OpenCL guys to add that hint into some FAQ or other documentation.
Regards.
--
Basile Starynkevitch
Originally posted by: basile.starynkevitch try add nopat option into kernel parameter. for me it works on Ubuntu 9.10.
Thanks a big lot. It works!
May I respectfully suggest to AMD/ATI OpenCL guys to add that hint into some FAQ or other documentation.
upcoming catalyst resolves this issue.