[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFS: viennacl



Hi Michael,

I'm sorry about the late reply.

[...]
> 
> What does the following simple program print (link it against 
> libOpenCL)?
> 
[...]

Built and run in gdb for additional information; the actual output is at the
very end.

(gdb) catch throw
Catchpoint 1 (throw)
(gdb) r
Starting program: /home/tautschnig/debian/viennacl/test 
[Thread debugging using libthread_db enabled]
Catchpoint 1 (exception thrown), 0x00007ffff798b1b0 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) whe
#0  0x00007ffff798b1b0 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x000000000040506f in viennacl::ocl::error_checker<void>::raise_exception (err=-1001) at viennacl-1.1.2/debian/libviennacl-dev/usr/include/viennacl/ocl/error.hpp:569
#2  0x0000000000402b57 in viennacl::ocl::error_checker<void>::checkError (err=-1001, file=..., func=..., line=49)
    at viennacl-1.1.2/debian/libviennacl-dev/usr/include/viennacl/ocl/error.hpp:585
#3  0x0000000000402878 in viennacl::ocl::platform::platform (this=0x7fffffffe5c0) at viennacl-1.1.2/debian/libviennacl-dev/usr/include/viennacl/ocl/platform.hpp:49
#4  0x000000000040142c in main () at test.cpp:6
(gdb) list test.cpp:6
1 #include <viennacl/ocl/platform.hpp>
2 using namespace std;
3 int main()
4 {
5     vector<viennacl::ocl::device> devices =
6         viennacl::ocl::platform().devices();
7     vector<viennacl::ocl::device>::const_iterator f = devices.begin(),
8                                                   e = devices.end();
9     for (; f!=e; ++f)
10      {
(gdb) cont
Continuing.
terminate called after throwing an instance of 'viennacl::ocl::unknown_error'
  what():  ViennaCL: FATAL ERROR: ViennaCL encountered an unknown OpenCL error. In some cases, this might be due to an invalid global work size, but it can also be due to several compilation errors.
If you think that this is a bug in ViennaCL, please report it at viennacl-support@lists.sourceforge.net and supply at least the following information:
 * Operating System
 * Which OpenCL implementation (AMD, NVIDIA, etc.)
 * ViennaCL version
Many thanks in advance!


Hope this helps,
Michael

Attachment: pgpTbC4RKGN4U.pgp
Description: PGP signature


Reply to: