cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

carsh in clinfo

Hi All,

I am facing a problem with clinfo command. It crashes with a segfault on ubuntu 14.04.2

The last fragment of strace output is as follows:

open("/etc/ati/amdpcsdb.default", O_RDONLY) = -1 ENOENT (No such file or directory)

open("/etc/ati/amdpcsdb", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 ENOENT (No such file or directory)

fstat(6, {st_mode=S_IFCHR|0666, st_rdev=makedev(250, 0), ...}) = 0

fstat(6, {st_mode=S_IFCHR|0666, st_rdev=makedev(250, 0), ...}) = 0

close(6)                                = 0

fstat(5, {st_mode=S_IFCHR|0666, st_rdev=makedev(250, 0), ...}) = 0

fstat(5, {st_mode=S_IFCHR|0666, st_rdev=makedev(250, 0), ...}) = 0

close(5)                                = 0

--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0xf73} ---

+++ killed by SIGSEGV (core dumped) +++

I have used the latest AMD Catalyst 15.5 driver (does not need X Server) and the AMD SDK 3.0 with

this OpenCL configuration.

Kindly help me fix this issue

Thanks in advance,

Regards,

Ameet

0 Likes
1 Solution

Hi Dipak,

Thanks for your inputs, I found another work around for this problem.

That work around requires running command

$ apt-get install fglrx-amdcccle . This will install all the necessary files and create

the amdpcsdb file in /etc/ati. It will also build the kernel module and install it.

After that clinfo and other OpenCL 2.0 applications work very well.

Regards,

Ameet

View solution in original post

0 Likes
3 Replies
dipak
Big Boss

I can see following comments here Guide to run OpenCL headless, without X server and as normal user  relevant to this context. Hope, this may be helpful to you.

Re: Guide to run OpenCL headless, without X server and as normal user

With omega drivers it is not need to patch driver anymore. Just build packages as normally with --buildpkg option and install only fglrx-core_*.deb package. After restart you need to run clinfo as root once so it load devices in /dev/ati. You can use script from original post. After that you can run any OpenCL program as normal user without X server. Oh and there is bug that cause driver crash if it doesn't find "/etc/ati/amdpcsdb.default" file which is inside fglrx_*.deb package. So extract this file from fglrx package and put it into /etc/ati directory.

Regards,

0 Likes

Hi Dipak,

Thanks for your inputs, I found another work around for this problem.

That work around requires running command

$ apt-get install fglrx-amdcccle . This will install all the necessary files and create

the amdpcsdb file in /etc/ati. It will also build the kernel module and install it.

After that clinfo and other OpenCL 2.0 applications work very well.

Regards,

Ameet

0 Likes

Thanks for sharing the workaround. It will be helpful for others.

0 Likes