AMD Logo AMD Developer Central
AMD Developer Forums
Decrease font size
Increase font size
Topic Title: all demo giving segmentation voilation in Fedora 11 karmic is slow
Topic Summary:
Created On: 10/16/2009 06:32 PM
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 10/16/2009 06:32 PM
User is offline View Users Profile Print this message

Author Icon
alorenz

Posts: 23
Joined: 04/26/2008

I have tested opencl with Fedora 11, and Kamic beta (ubuntu).  After install the video driver ( I just bought a 4870 card), I got 10K frame/sec with Fedora 11, and 2K frames/sec with ubuntu.   When trying to run the demos all failed with segmentation voliation under Fedora, and work under Karmic.    Any idea about fedora 11?

 10/19/2009 10:41 AM
User is offline View Users Profile Print this message

Author Icon
omkaranathan

Posts: 152
Joined: 08/09/2009

Originally posted by: alorenz  I got 10K frame/sec with Fedora 11, and 2K frames/sec with ubuntu.

 

Which application are you running? 

The drivers which came with OpenCL are test drivers for OpenCL and not meant for Graphics applications.

  When trying to run the demos all failed with segmentation voliation under Fedora, and work under Karmic.    Any idea about fedora 11?

Are the drivers getting installed properly? Could you try running the CAL samples, say FindNumDevices and post the result?



-------------------------
The information presented in this document is for informational purposes only and may contain technical inaccuracies, omissions and typographical errors. Links to third party sites are for convenience only, and no endorsement is implied.
 10/19/2009 03:19 PM
User is offline View Users Profile Print this message

Author Icon
mat69

Posts: 9
Joined: 10/01/2009

Here it also segfaults constantly on Arch Linux 64 bit

How would I know if the drivers are installed properly?

 10/19/2009 03:31 PM
User is offline View Users Profile Print this message

Author Icon
omkaranathan

Posts: 152
Joined: 08/09/2009

Try running any of the cal samples, for example FindNumDevices should be able to return the number of devices present.



-------------------------
The information presented in this document is for informational purposes only and may contain technical inaccuracies, omissions and typographical errors. Links to third party sites are for convenience only, and no endorsement is implied.
 10/19/2009 06:29 PM
User is offline View Users Profile Print this message

Author Icon
mat69

Posts: 9
Joined: 10/01/2009

Running the samples without graphic-drivers loaded results naturally in a device count of 0, with loaded fglrx it crashes before there is output on the number.

gdb reports

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff3f0092a in ?? () from /usr/lib/libaticaldd.so

l shows me the main-function.

 10/26/2009 12:39 PM
User is offline View Users Profile Print this message

Author Icon
ibird

Posts: 4
Joined: 10/26/2009

Same problem here on Fedora 11

Every time i start a Brook or Cal or OpenCL  samples the example crash with Segmentation Fault, the Seg Fault seem to be located into calInit() and it crash if i am a normal user or root


The step i has followed:

I am on Fedora 11 64bit  with Ati catalyst driver installed from yum repositories version 9.9


1) I has uncompressed the ati-stream-sdk-v2.0-beta4-lnx64.tgz

2) following the installation note i has added the environment variables

ATISDKSTREAMROOT and ATISTREAMSDKSAMPLESROOT pointing to the installation directory and LD_LIBRARY_PATH to ATISDKSTREAMROOT/lib/x86_64

3) i go into samples/cal folder and do a make

( because yum install libaticalc into /usr/lib64/catalyst i has added this Library into the makefile.common.I has also added in some sources example #include <stdio.h> and #include <cstdlib.h> otherwise fprint and memset are not defined

4) i has finaly try to start hellocal and the sample crash into calInit()


So i has removed the yum installed driver and installed the ati-opencl-beta-driver-v2.0-beta4-lnx, the driver seem to work ( i has the "AMD Testing use only" message on the right corner screen ), recompiled the samples make clean, make ( i has also removed the library search path /usr/lib64/catalyst because the library with the new drivers are now located into /usr/lib64  ) and tried to start hellocall and unfortunately it crash  (any samples crash)

I has also tried the Ati stream SDK 1.4 with same result crash on calInit()



Where i am wrong ?

 11/05/2009 12:28 PM
User is offline View Users Profile Print this message

Author Icon
Tasp

Posts: 2
Joined: 11/05/2009

Can confirm this.

Ubuntu 9.10 - Karmic Koala

ati-stream-sdk-v2.0-beta4-lnx64.tgz

HelloCL!
Creating a context
For test only: Expires on Sun Feb 28 00:00:00 2010

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff48ef84a in ?? () from /usr/lib/libaticaldd.so
(gdb) bt
#0  0x00007ffff48ef84a in ?? () from /usr/lib/libaticaldd.so
#1  0x00007ffff48ef6c5 in ?? () from /usr/lib/libaticaldd.so
#2  0x00007ffff48ec197 in ?? () from /usr/lib/libaticaldd.so
#3  0x00007ffff48e3b35 in ?? () from /usr/lib/libaticaldd.so
#4  0x00007ffff4818183 in ?? () from /usr/lib/libaticaldd.so
#5  0x00007ffff492c2ea in ?? () from /usr/lib/libaticaldd.so
#6  0x00007ffff4925e9f in ?? () from /usr/lib/libaticaldd.so
#7  0x00007ffff4935115 in ?? () from /usr/lib/libaticaldd.so
#8  0x00007ffff6e45b78 in gpu:evice::init() () from /.../ati-stream-sdk-v2.0-beta4-lnx64//lib/x86_64/libOpenCL.so
#9  0x00007ffff6e2b4bd in amd:evice::init() () from /.../ati-stream-sdk-v2.0-beta4-lnx64//lib/x86_64/libOpenCL.so
#10 0x00007ffff6e52083 in amd::Runtime::init(amd::Thread*) ()
   from /.../ati-stream-sdk-v2.0-beta4-lnx64//lib/x86_64/libOpenCL.so
#11 0x00007ffff6e14158 in amd::HostThread::HostThread() () from /.../ati-stream-sdk-v2.0-beta4-lnx64//lib/x86_64/libOpenCL.so
#12 0x00007ffff6e139b5 in clCreateContextFromType () from /.../ati-stream-sdk-v2.0-beta4-lnx64//lib/x86_64/libOpenCL.so
#13 0x0000000000402813 in Context (this=0x7fffffffe130, type=2, properties=0x0, notifyFptr=0, data=0x0, err=0x7fffffffe138)
    at ../../../../../include/CL/cl.hpp:1552
#14 0x000000000040202b in main () at HelloCL.cpp:110

 

 11/05/2009 02:02 PM
User is offline View Users Profile Print this message

Author Icon
MicahVillmow

Posts: 525
Joined: 02/05/2008

Tasp,
There is a known issue with Ubuntu 9.10 with the ATI drivers. Try this, http://ubuntuforums.org/showthread.php?t=1311739, to get a working driver if needed, but i'm not sure that Stream will work with 9.10 because of changes in X.

-------------------------
Micah Villmow
Advanced Micro Devices Inc.
--------------------------------
The information presented in this document is for informational purposes only and may contain technical inaccuracies, omissions and typographical errors. Links to third party sites are for convenience only, and no endorsement is implied.

 11/05/2009 06:04 PM
User is offline View Users Profile Print this message

Author Icon
Tasp

Posts: 2
Joined: 11/05/2009

The driver works fine. I never had a problem with it. But the seg fault still persists.

Where can I find a list of version numbers for X and other packages with which it will work?

 11/14/2009 05:53 AM
User is offline View Users Profile Print this message

Author Icon
tball

Posts: 1
Joined: 11/14/2009

Did you find a solution to this problem?

I also got this problem. Every single demo app with cal og opencl segfaults.

Using Ubuntu Karmic 9.10. I got no graphic problems besides the opencl/cal ones.

 

$gdb ./FindNumDevices
[Thread debugging using libthread_db enabled]
Supported CAL Runtime Version: 1.3.185
Found CAL Runtime Version: 1.4.467
Use -? for help

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5a5492a in ?? () from /usr/lib/libaticaldd.so

 

EDIT:

With the driver from ati stream sdk, when I run aticonfig --initial -f I get the following:

aticonfig: No supported adapters detected

With the normal 9.11 driver i don't get that kind of messages. Does that mean my card isn't supported for opencl yet?

I got this card:

01:00.0 VGA compatible controller: ATI Technologies Inc M96 [Mobility Radeon HD 4650]



Edited: 11/14/2009 at 06:55 AM by tball
 11/18/2009 12:17 AM
User is offline View Users Profile Print this message

Author Icon
gregsharp

Posts: 1
Joined: 11/14/2009

Hi,

Any update?

All samples (opencl and cal) segfault.  This is on debian testing (2.6.30-2-amd64 kernel), opencl-beta-4 drivers, ATI Radeon 4350.

For example, hellocal segfaults inside call to calInit().

-Greg

 

Statistics
6123 users are registered to the AMD Developer Forums forum.
There are currently 0 users logged in.

FuseTalk Hosting Executive Plan v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.

Contact AMD | Terms and Conditions | Forum Rules | ©2009 Advanced Micro Devices, Inc. | Privacy | Trademark information