HI,
I tried running the opencl example that came with thee K2h package.
Although I was able to compile the simple.cpp example when I run it I get the following error, which I am not able to figure out . Any help would be really appreciated.
root@keystone-evm:/usr/share/ti/examples/opencl/simple# ./simple
sh: /usr/share/ti/opencl/bin/x86/clocl: cannot execute binary file
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
variable that might help
cl/bin/x86/clocl/usr/share/ti/examples/opencl/simple# ls -all /usr/share/ti/op
-rwxrwxr-x 1 root root 23299765 Oct 14 02:14 /usr/share/ti/opencl/bin/x86/clocl
file /usr/share/ti/openc
/usr/share/ti/opencl/bin/x86/clocl: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=ea341dcb57e671ec4d1dc201dd83346f9fa5d5b3, not stripped
root@keystone-evm:/usr/share/ti/examples/opencl/simple# echo $PATH
/usr/share/ti/opencl/bin/x86:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
Thanks