Discussion:
[brlcad-devel] OpenCL code base
Vasco Alexandre da Silva Costa
2017-03-25 14:30:12 UTC
Permalink
Nope. But the code isn't that large to begin with.
Make sure to read the HACKING document.

On Sat, Mar 25, 2017 at 12:51 PM, Shailesh Tripathi <
Hello Sir,
Is there any documentation for the opencl code base written (in '
*primitive_util.c'*) which can help in understanding the functions.
It would be a great help.
Thanks in advance!
--
Vasco Alexandre da Silva Costa
PhD in Computer Engineering (Computer Graphics)
Instituto Superior Técnico/University of Lisbon, Portugal
Vasco Alexandre da Silva Costa
2017-03-27 14:11:55 UTC
Permalink
I'm forwarding this message to the list in case someone has similar issues,

---------- Forwarded message ----------
From: Vasco Alexandre da Silva Costa <***@gmail.com>
Date: Sun, Mar 26, 2017 at 3:14 PM
Subject: Re: OpenCL code base
To: Shailesh Tripathi <***@itbhu.ac.in>


On Sun, Mar 26, 2017 at 11:23 AM, Shailesh Tripathi <
- I can see four kernles namely "do_pixel", "count_hits", "store_segs" and
"shade_segs" being launched. Which of these uses the xxx_shot() functions
and how? I can see the programs being compiled using clcompileprogram and
then all of them linked together, but I am not able to understand how the
xxx_shot() functions are used.
I tried to understand the code and finally manage to understand all the
links. Sorry for asking you unnecessarily!
But the OpenGL issue is still not rectified.
As I said before I don't know if you need to install OpenGL to run OpenCL
on your system or not. At one point I know you could run OpenCL on an
NVIDIA GPU without an X Server (headless), while on an AMD GPU you needed
to run the X Server to get working OpenCL as it was a dependency. I could
look into this, but I don't know if it's worthwhile to spent time on this
feature or not as most people will have both working and in the future we
could make OpenGL a dependency in order to have working texture mapping or
to use some other feature.

Just get OpenGL and OpenCL working. If you are a CentOS user a good place
to ask is probably on the #centos channel at irc.freenode.net:
https://wiki.centos.org/irc#head-763757e254015edb6a796dd09e7bf88c5261840e

Regards,
--
Vasco Alexandre da Silva Costa
PhD in Computer Engineering (Computer Graphics)
Instituto Superior Técnico/University of Lisbon, Portugal
--
Vasco Alexandre da Silva Costa
PhD in Computer Engineering (Computer Graphics)
Instituto Superior Técnico/University of Lisbon, Portugal
Continue reading on narkive:
Loading...