I built the opencl program using the commands:
gcc -c -I ~/AMDAPP/include main.c -o main.o
gcc main.o -o host -L ~/AMDAPP/lib/x86_64/ -l OpenCL
It was succesful.
When I tried to run it using ./main.o
i got the error message: bash: ./main.o: Permission denied
Can someone please tell me whats wrong?
The executable is built to the
hostfile, not themain.o.main.ocontains compiled contents ofmain.c, not linked into an executable yet.