Difference between revisions of "User:Vasco.costa"

From BRL-CAD
(Created page with "Hello. I am interested in ray-tracing, and GPGPU. I plan to work on OpenCL acceleration of the BRL-CAD librt rendering pipeline. =Preliminary Schedule= * 1 week - ellipsoid (...")
 
 
(40 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Hello. I am interested in ray-tracing, and GPGPU. I plan to work on OpenCL acceleration of the BRL-CAD librt rendering pipeline.
+
Hello. I am interested in ray-tracing, and GPGPU. I work on the [[User:Vasco.costa/GSoC15/logs|OpenCL acceleration of the BRL-CAD librt rendering pipeline]]:
 +
* [https://www.google-melange.com/gsoc/project/details/google/gsoc2015/vasc/5657382461898752 GSoC 2015 Abstract]
 +
* [[User:vasco.costa/GSoC15/proposal|GSoC 2015 Project Proposal]]
 +
* [[User:vasco.costa/GSoC15/logs|GSoC 2015 Development Logs]]
  
=Preliminary Schedule=
+
=OCL librt TODO=
* 1 week - ellipsoid (ell), arb8 (arbitrary polyhedron) shot routines in OCL
+
* Split <code>struct hit</code> in common.cl into two structs. One for <code>shot()</code> results and another for <code>norm()</code> results. This will reduce the amount of memory used to store temporary results between stages.
* 1 week - to refactor dispatcher, shoot, optical renderer to process many rays in parallel in C when rendering an image or block
+
* Execute prefix sums and reductions in <code>clt_frame()</code> on the device to eliminate round-trips.
* 3 weeks - grid spatial partitioning in OCL
+
* Refactor code so single-hit and multi-hit don't require recompiling all the sources twice.
* 2 weeks - to code for GPU side database storage of OCL implemented primitives
+
* Cache the compiled binaries so things aren't recompiled on every launch.
* 3 weeks - to port the compute intensive or critical parts of the dispatcher, boolean evaluator, optical renderer to OCL
+
* Quadrics Primitives: HYP, SUPERELL.
* 1 week - torus (tor), truncated general cone (tgc) shot routines in OCL
+
* Grids Primitives: '''DSP''', <s>EBM</s>, VOL.
* 2 weeks - bot (bag o' triangles) shot routine in OCL
+
* Composite Primitives: '''PIPE''', '''NMG''', METABALL, EXTRUDE, REVOLVE.
 +
* Instancing Primitive: SUBMODEL.
 +
* Make Phong shader results look 100% similar to ANSI C librt.
 +
* Support lights in the shader.
 +
* Don't intersect primitives twice. This requires a dynamic memory allocator.
 +
* Smarter kernel scheduling for reduce thread divergence. For example coallesce all the quadric intersections.
 +
* Spatial partitioning (perhaps a hybrid Kd-tree) in order to have early exit on scenes with high depth complexity.
 +
* UV routines for all OCL implemented primitives.
 +
* BREP support.
 +
* BOT plate mode.
 +
* FASTGEN support (both CLINE primitive and bool.cl code).
  
Code should be implemented in C and OpenCL. The boolean weaving should be implemented in the 3 week segment where the boolean evaluator will be reimplemented in OCL. bot implementation is near the end because it might be possible to reuse some of the spatial partitioning code in it.
+
Deprecated primitives:
 +
* ARS is converted to BOT.
 +
* HF is converted to DSP.
 +
 
 +
=OCL librt Development Status=
 +
* Refactored dispatcher, shoot, optical renderer to process many rays in parallel when rendering an image or block.
 +
* HLBVH object partitioning builder in C. traversal in OCL.
 +
* GPU side database storage of OCL implemented primitives.
 +
* Ported compute intensive or critical parts of the dispatcher, boolean evaluation, optical renderer to OCL.
 +
* OCL dispatcher that performs the shot routines for a whole frame.
 +
* OCL rasterizer that does the pixel pushing for a whole frame.
 +
* OCL lighting modes: Phong, Diffuse, Surface Normals.
 +
* OCL lighting modes: Multi-hit transparent (Single Stage Render Pipeline only).
 +
* ARB8, EBM, EHY, ELL, EPA, ETO, PART, REC, RHC, RPC, SPH, TGC, TOR shot routines in OCL.
 +
* Surface normal routines for all OCL implemented primitives.
 +
* CPU HLBVH BOT shot construction with OCL traversal and interpolated per pixel normals.

Latest revision as of 20:57, 24 October 2017

Hello. I am interested in ray-tracing, and GPGPU. I work on the OpenCL acceleration of the BRL-CAD librt rendering pipeline:

OCL librt TODO[edit]

  • Split struct hit in common.cl into two structs. One for shot() results and another for norm() results. This will reduce the amount of memory used to store temporary results between stages.
  • Execute prefix sums and reductions in clt_frame() on the device to eliminate round-trips.
  • Refactor code so single-hit and multi-hit don't require recompiling all the sources twice.
  • Cache the compiled binaries so things aren't recompiled on every launch.
  • Quadrics Primitives: HYP, SUPERELL.
  • Grids Primitives: DSP, EBM, VOL.
  • Composite Primitives: PIPE, NMG, METABALL, EXTRUDE, REVOLVE.
  • Instancing Primitive: SUBMODEL.
  • Make Phong shader results look 100% similar to ANSI C librt.
  • Support lights in the shader.
  • Don't intersect primitives twice. This requires a dynamic memory allocator.
  • Smarter kernel scheduling for reduce thread divergence. For example coallesce all the quadric intersections.
  • Spatial partitioning (perhaps a hybrid Kd-tree) in order to have early exit on scenes with high depth complexity.
  • UV routines for all OCL implemented primitives.
  • BREP support.
  • BOT plate mode.
  • FASTGEN support (both CLINE primitive and bool.cl code).

Deprecated primitives:

  • ARS is converted to BOT.
  • HF is converted to DSP.

OCL librt Development Status[edit]

  • Refactored dispatcher, shoot, optical renderer to process many rays in parallel when rendering an image or block.
  • HLBVH object partitioning builder in C. traversal in OCL.
  • GPU side database storage of OCL implemented primitives.
  • Ported compute intensive or critical parts of the dispatcher, boolean evaluation, optical renderer to OCL.
  • OCL dispatcher that performs the shot routines for a whole frame.
  • OCL rasterizer that does the pixel pushing for a whole frame.
  • OCL lighting modes: Phong, Diffuse, Surface Normals.
  • OCL lighting modes: Multi-hit transparent (Single Stage Render Pipeline only).
  • ARB8, EBM, EHY, ELL, EPA, ETO, PART, REC, RHC, RPC, SPH, TGC, TOR shot routines in OCL.
  • Surface normal routines for all OCL implemented primitives.
  • CPU HLBVH BOT shot construction with OCL traversal and interpolated per pixel normals.