Difference between revisions of "OpenCL GPGPU Raytracing"

From BRL-CAD
 
(12 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
BRL-CAD has one of the oldest and fastest parallel ray tracing implementations around but we don't currently leverage the GPU.  With implicit geometry and constructive solid geometry (CSG) Boolean operations, we also have a very different approach to ray tracing that has its own set of academic challenges.
 
BRL-CAD has one of the oldest and fastest parallel ray tracing implementations around but we don't currently leverage the GPU.  With implicit geometry and constructive solid geometry (CSG) Boolean operations, we also have a very different approach to ray tracing that has its own set of academic challenges.
  
Your project is to help us introduce a GPGPU pipeline into BRL-CAD using OpenCL.  You're welcome to use a library that encapsulates OpenCL.  We have a dozen primitives in BRL-CAD that need to be converted to OpenCL.  One of them which is done is an ellipsoid (a [[w:Quadric|quadric]] primitive), so you have an example to follow.  Your objective is to implement at least two more while evaluating how your conversion compares to the non-GPGPU implementation.
+
Your project is to help us introduce a GPGPU pipeline into BRL-CAD using OpenCL.  You're welcome to use a library that encapsulates OpenCL.  We have a dozen primitives in BRL-CAD that need to be converted to OpenCL.  Your objective is to implement at least two more while evaluating how your conversion compares to the non-GPGPU implementation.
  
These quadric primitives still need to be converted: elliptical hyperboloid, superquadratic ellipsoid, and heart.
+
One primitive which is done is an arbitrary polyhedron, so you have an example to follow.  These primitives still need to be converted: FASTGEN4 CLINE.
 
 
These primitives are not quadrics but they should also be relatively straightforward to convert: polyhedron with an arbitrary number of faces (use arbitrary polyhedron as an example), and FASTGEN4 CLINE.
 
  
 
Difficulty: Easy
 
Difficulty: Easy
  
 
Languages:  C and OpenCL (or other GPGPU API)
 
Languages:  C and OpenCL (or other GPGPU API)

Latest revision as of 05:07, 29 April 2021

Contact "brlcad" on irc.freenode.net

BRL-CAD has one of the oldest and fastest parallel ray tracing implementations around but we don't currently leverage the GPU. With implicit geometry and constructive solid geometry (CSG) Boolean operations, we also have a very different approach to ray tracing that has its own set of academic challenges.

Your project is to help us introduce a GPGPU pipeline into BRL-CAD using OpenCL. You're welcome to use a library that encapsulates OpenCL. We have a dozen primitives in BRL-CAD that need to be converted to OpenCL. Your objective is to implement at least two more while evaluating how your conversion compares to the non-GPGPU implementation.

One primitive which is done is an arbitrary polyhedron, so you have an example to follow. These primitives still need to be converted: FASTGEN4 CLINE.

Difficulty: Easy

Languages: C and OpenCL (or other GPGPU API)