Git Product home page Git Product logo

traversal's Introduction

Traversal

This is the main repository for the AnyDSL traversal code.

Requirements

The traversal code comes in two flavours:

  • A CPU version, which requires an x86 processor with the AVX, AVX2 and FMA instruction sets.
  • A GPU version, based on CUDA, which requires a Maxwell GPU or a higher model.

Building

git clone https://[email protected]/AnyDSL/traversal.git
cd traversal
mkdir build
cd build
cmake-gui ..

Running

The frontend benchmarks the traversal code and generates an output which contains the intersection parameters. It takes as input the scene file (which contains the acceleration structure) and the ray distribution. Run it with -h to get the list of options.

When runnning the traversal on the GPU, make sure to run the executables in the directory where the file containing the compiled kernels (e.g. traversal.nvvm for the NVVM backend) is located.

A sample BVH file and a primary ray distribution are provided for testing. You can use them with the frontend, like so (replace <version> with cpu or gpu, depending on which device the traversal runs):

cd build/src
./frontend_<version> -a ../../testing/sibenik.bvh -r ../../testing/sibenik01.rays -n 80 -d 20 -o output.fbuf

Then, check the results with the fbuf2png tool:

./fbuf2png output.fbuf image.png

You can also use the BVH file with the viewer utility:

cd build/src
./viewer_<version> -a ../../testing/sibenik.bvh

Tools

This repository also includes some tools to generate ray distributions for primary rays, and to convert the output of the frontend into a PNG image. You need libpng installed to compile them. Run them with -h to get the list of options.

traversal's People

Contributors

madmann91 avatar pgrit avatar richardmembarth avatar simoll avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

playfloor

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.