7 Replies Latest reply on Feb 10, 2010 3:05 AM by genaganna

    Problem running any of the OpenCL examples, 'ERROR: cl::Platform::get() (1)'

    nikkej

      Hi !

      After compiling all OpenCL samples, picking randomly some of them for try gives me an error like "ERROR: cl:latform::get() (1)". Checking with strace gives me some hint something could be missing from libraries (some metadata?).

      Looks like file / directory named 'vendors' is missing and I was not able to find anything from the SDK for that name (I was thinking could it be SDK installation error but maybe not)

      My system is:

      AMD Phenom II X4 940, Sapphire Radeon HD 4870, Fedora 11 64bit, fglrx-8.682.2-x86_64, 8GB RAM

      -nikke

       

      ... open("/lib64/librt.so.1", O_RDONLY) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220!\34020\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=49352, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f01b5ecc000 mmap(0x3032e00000, 2128816, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3032e00000 mprotect(0x3032e07000, 2093056, PROT_NONE) = 0 mmap(0x3033006000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x3033006000 close(3) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f01b5ecb000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f01b5eca000 arch_prctl(ARCH_SET_FS, 0x7f01b5eca710) = 0 mprotect(0x3033006000, 4096, PROT_READ) = 0 mprotect(0x3031d64000, 16384, PROT_READ) = 0 mprotect(0x3032081000, 4096, PROT_READ) = 0 mprotect(0x3036cec000, 28672, PROT_READ) = 0 mprotect(0x7f01b60d2000, 4096, PROT_READ) = 0 mprotect(0x3032402000, 4096, PROT_READ) = 0 mprotect(0x3032816000, 4096, PROT_READ) = 0 mprotect(0x608000, 4096, PROT_READ) = 0 mprotect(0x303181e000, 4096, PROT_READ) = 0 munmap(0x7f01b60d5000, 152052) = 0 set_tid_address(0x7f01b5eca7e0) = 7078 set_robust_list(0x7f01b5eca7f0, 0x18) = 0 futex(0x7fffbfce215c, FUTEX_WAKE_PRIVATE, 1) = 0 futex(0x7fffbfce215c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 7f01b5eca710) = -1 EAGAIN (Resource temporarily unavailable) rt_sigaction(SIGRTMIN, {0x3032605750, [], SA_RESTORER|SA_SIGINFO, 0x303260eea0}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {0x30326057e0, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x303260eea0}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 getrlimit(RLIMIT_STACK, {rlim_cur=10240*1024, rlim_max=RLIM_INFINITY}) = 0 futex(0x3036cf5b88, FUTEX_WAKE_PRIVATE, 2147483647) = 0 open("/usr/lib/OpenCL/vendors/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory) write(2, "ERROR: ", 7ERROR: ) = 7 write(2, "cl::Platform::get()", 19cl::Platform::get()) = 19 write(2, " (", 2 () = 2 write(2, "1", 11) = 1 write(2, ")", 1)) = 1 write(2, "\n", 1 ) = 1 exit_group(1) = ?