[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Parallella Community • View topic - Harris corner detector and openCL
Page 1 of 2

Harris corner detector and openCL

PostPosted: Wed Apr 08, 2015 9:09 pm
by Nader_Jendoubi
Hi

I'm very new in using openCL for Parallella
I expoited the sobel filter project available at the link https://github.com/sclukey/parallella-o ... 148f196f1b

and i write a kernel to realise a harris corner detector application : https://www.dropbox.com/s/64jjr76v2ulxd ... l.txt?dl=0

and i write the host code : https://www.dropbox.com/s/dv6nowou201v06p/host.txt?dl=0

in the kernel code i traduct the harris algorithm and i return the coordinates of a number of pixels used with the function cvcircle to draw circles around the harris points


when i compile the kernel with clcc, get this message : clmesg error: clcc.c(668) : clccl returned non-zero exit status
but i didn't get the .o file
i still don't know what is my fault.

Please i need some help with this code. Can anyone suggest to me any solutions??

Thanks

Re: Harris corner detector and openCL

PostPosted: Thu Apr 09, 2015 10:41 am
by nickoppen
Please post the whole of the clcc call and the compiler output please. There could be lot's of things wrong.

Re: Harris corner detector and openCL

PostPosted: Thu Apr 09, 2015 2:09 pm
by Nader_Jendoubi
there was a lot of problems in the syntax of the code and i correct them all
i remember that some message with the kind of : e32-elf : no such file e32-objcopy : no such file but when i correct the syntax problems it disappears

when i compile, only that message shows and no file was generated.

Re: Harris corner detector and openCL

PostPosted: Thu Apr 09, 2015 4:25 pm
by Nader_Jendoubi
the clcc command is:

clcc -o device/bin/kernel.o -c device/src/kernel.c


Thanks for your help

Re: Harris corner detector and openCL

PostPosted: Fri Apr 10, 2015 12:33 am
by nickoppen
The coprthr_primer-1.6.0.pdf shows the syntax of clcc as:

clcc [options] file1.cl file2.cl ... [-o output.o]

Try putting the kernel files first and the output second.

Otherwise, see if the JIT compiler works.

Re: Harris corner detector and openCL

PostPosted: Fri Apr 10, 2015 6:07 pm
by Nader_Jendoubi
I change the compile command but the same problem persists : Nothing generated
How can i know what kind of problem i made when nothing shows except the same problem??

Re: Harris corner detector and openCL

PostPosted: Fri Apr 10, 2015 6:09 pm
by Nader_Jendoubi
Can you please try to compile the code in your device and tell me what results do you get and what problems do you expect??

Re: Harris corner detector and openCL

PostPosted: Sat Apr 11, 2015 12:05 am
by nickoppen
Please provide working code. I get 16 syntax errors compiling the kernel downloaded from your dropbox.

Re: Harris corner detector and openCL

PostPosted: Tue Apr 14, 2015 1:19 pm
by Nader_Jendoubi
Sorry for that friend


Here is the version of code without any syntax errors but the same problem is present, providing no bin file

https://www.dropbox.com/s/lgd50j3olq07t ... nel.c?dl=0

I can't figure out where the problem is, so please try to compile it and tell me your opinion


Thanks

Nader

Re: Harris corner detector and openCL

PostPosted: Thu Apr 16, 2015 12:04 pm
by nickoppen