[Pkg-opencl-devel] clinfo

Andreas Beckmann anbe at debian.org
Mon Nov 10 00:36:47 UTC 2014


On 2014-11-07 20:30, Giuseppe Bilotta wrote:
> I happen to be the author of the clinfo being discussed (the one on
> <http://github.com/Oblomov/clinfo>). Here's a few reasons why I think

> For most practical matters, it should be possible to use my version as a
> drop-in replacement for Simon's implementation, although the output is
> somewhat different both from that and from the one shipped with the AMD
> SDK (and packaged in Debian as amd-clinfo).

I don't think output compatibility should be the primary goal. But we 
will learn soon enough that it will break script X in application Y :-)

OK, I imported the current one into git and then tried to switch to 
your implementation.

* in the Makefile, please append to CFLAGS, don't overwrite them
* it fails to compile with -Werror=format-security
* it segfaults always

(gdb) bt
#0  __strcmp_ssse3 () at ../sysdeps/x86_64/multiarch/../strcmp.S:209
#1  0x0000000000405aa2 in main (argc=1, argv=0x7fffffffdf18) at src/clinfo.c:1854
1854                    if (!strcmp(argv[a], "--raw"))
(gdb) print argc
$1 = 1
(gdb) print a
$2 = 1


Andreas




More information about the Pkg-opencl-devel mailing list