Hello!
You can start by implementing one of the primitives which hasn't been
ported over to OpenCL yet.
There were a lot of issues with porting the HRT primitive last year,
probably because of the solver, so I would advise you to try to port
something simpler like either HYP or SUPERELL which shouldn't have any
issues.

There is a quick reference guide to BRL-CAD MGED commands and primitives
here:
http://brlcad.org/w/images/5/52/MGED_Quick_Reference_Card.pdf

Here is a reference card for OpenCL 1.2 (what we currently use) commands
and language constructs:
https://www.khronos.org/files/opencl-1-2-quick-reference-card.pdf

I code for BRL-CAD using the Linux operating system. The other developers
typically use either that or Mac OS X.
Make sure to setup your development environment and install OpenCL on your
system. This program might be of help since it queries the installed OpenCL
versions to determine the supported version, etc:
https://github.com/simleb/clinfo

You should provide a patch for that primitive (HYP or SUPERELL) before GSoC
officially starts. It shouldn't be too hard to do since you can use one of
the other already ported primitives (like ELL) as a template. You basically
need to port the ray-primitive intersection (shot) code from C to OpenCL
and to provide the glue code which packs and unpacks that primitive from
the C side to the OpenCL side.


I have a task list, of things to do, for the OpenCL ray tracer here:
http://brlcad.org/wiki/User:Vasco.costa

You can use this as a basis to write your actual proposal. Of the things in
that todo list I would say that PIPE, DSP, BOT plate mode, and BREPs are
the most significant.

Before you write the proposal and allocate time for the tasks you should
read the relevant code that you will have to port from ANSI C/C++ to OpenCL
to get an idea of the complexity of the tasks. Most of the relevant code is
located in this code tree:
https://svn.code.sf.net/p/brlcad/code/brlcad/trunk/src/librt/primitives/

Regards,

On Tue, Mar 6, 2018 at 4:28 PM, Sreyansh Jain <sreyanshjai...@gmail.com>
wrote:

> Hi,
>
> I'm new to the open source community but I'm well-versed with Python, C
> and CUDA while a beginner in OpenCL. I went through the project ideas list
> and I believe I can contribute to one on *GPGPU Raytracing*. Can you
> guide me on how to start contributing to these as of now. I hope I'm not
> that late.
>
>
> Warm Regards,
>
> Sreyansh Kumhar Jain
> 4th Year Undergraduate
> IIT Kharagpur
> ‌
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> BRL-CAD Developer mailing list
> brlcad-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/brlcad-devel
>
>


-- 
Vasco Alexandre da Silva Costa
PhD in Computer Engineering (Computer Graphics)
Instituto Superior Técnico/University of Lisbon, Portugal
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to