OpenCL Example and tutorial

Moderator: dar

Re: OpenCL Example and tutorial

Postby dar » Tue May 14, 2013 1:48 pm

Yes, this happens due to permissions on /dev/mem

You can try running with sudo. However, due to the way Ubuntu is setup this does not always work. I presently run as root to avoid all such problems. Remember this means that any paths that were required to be updated, e.g., in your .bashrc file, this must also be propagated to that of root.
dar
 
Posts: 90
Joined: Mon Dec 17, 2012 3:26 am

Re: OpenCL Example and tutorial

Postby Lord_Rafa » Wed May 15, 2013 10:41 pm

thanks it looks that solved the problem but now I get a segmentation fault when I try to execute the program.

./out
[24603] clmesg CRITICAL: libocl.c(849): Linux mmap does not support MAP_NOSYNC, demand a work-around
_libocl_clproc_state 0xb6f6b000
[24603] clmesg WARNING: libocl.c(149): cannot read ocl.conf, using ICD fallback (/etc/OpenCL/vendors
coprthr-1.5.0-RC1 (Marathon)
[24603] clmesg info: cmdsched.c(88): cmdqx0: run
[24603] clmesg info: cmdsched.c(88): cmdqx0: run

Plotting from (-2.206667, -1.280000) to (1.206667, 1.280000)
[24603] clmesg WARNING: ../coprthr-common/ocl_program.c(215): clBuildProgram: warning: unsupported
[24603] clmesg WARNING: ../coprthr-common/ocl_program.c(275): clBuildProgram failed with err -11
Segmentation fault
Lord_Rafa
 
Posts: 3
Joined: Tue May 14, 2013 1:34 am

Re: OpenCL Example and tutorial

Postby dar » Fri May 17, 2013 12:53 pm

Can you check the version of the eSDK you are using? coprthr-1.5.0-rc2 uses the API from eSDK "January release" which I believe has version 4.0.1.4(?). An update for the newer eSDK API should be completed within a few weeks. Also, which example are you testing. Sorry if I missed that in earlier post.
dar
 
Posts: 90
Joined: Mon Dec 17, 2012 3:26 am

Re: OpenCL Example and tutorial

Postby ysapir » Fri May 17, 2013 1:33 pm

January release is 4.13.01.04
User avatar
ysapir
 
Posts: 393
Joined: Tue Dec 11, 2012 7:05 pm

Re: OpenCL Example and tutorial

Postby Lord_Rafa » Mon May 20, 2013 5:14 pm

Thank you for your answer, I was testing the example in the first page of this topic. I also try with the old SDK but I still having a segmentation fault. Do I need do something special when I execute the binary, like load a module or something?
Lord_Rafa
 
Posts: 3
Joined: Tue May 14, 2013 1:34 am

Re: OpenCL Example and tutorial

Postby dar » Mon May 20, 2013 5:33 pm

There are some links and also an example pasted into the thread. I assume you mean the latter, the Mandelbrot set example?

General guidance is to make sure to follow the info in the Parallella OpenCL quickstart guide found on the download page.

If you are having trouble, the easiest/quickest way for me to help is to run the example as root, using the cldebug interface, e.g.,

cldebug -- ./my_prog.x

and send the output to the BDT support email. The output can be terribly long for a forum posting, but I try to post pertinent data when it seems to be helpful to others. The debug output is very verbose and will show what is happening.
dar
 
Posts: 90
Joined: Mon Dec 17, 2012 3:26 am

Re: OpenCL Example and tutorial

Postby Tiago » Wed Jan 20, 2016 4:23 pm

Hey everybody, I also tried to run this example, but unsuccessful. In that way, I would like to know if you already ran that example without segmentation fault?
Tiago
 
Posts: 4
Joined: Tue Nov 24, 2015 6:48 pm

Previous

Return to OpenCL

Who is online

Users browsing this forum: MSN [Bot] and 1 guest