Git Product home page Git Product logo

sycl-rayt's Introduction

sycl-rayt-test

Building the project (Linux/Ubuntu)

mkdir build && cd build
cmake .. -GNinja -DComputeCpp_DIR=/path/to/computecpp && ninja

Possible warning on compilation about the memcpy/memse intrinsics added by the llvm optimizer:

Building ComputeCpp integration header file /.../intel_sycl-rayt/build/sycl-rayt_sycl-rayt.cpp.sycl
remark: [Computecpp:CC0027]: Some memcpy/memset intrinsics added by the llvm optimizer were replaced by serial functions. This is a workaround for OpenCL drivers that do not support those intrinsics. This may impact performance, consider using -no-serial-memop. [-Rsycl-serial-memop]

ComputeCpp flag to avoid the above warning: -no-serial-memop.

Use with the cmake script as follows:

cmake .. -GNinja -DComputeCpp_DIR=/path/to/computecpp -DCOMPUTECPP_USER_FLAGS=-no-serial-memop

The cmake script will automatically target spir64, considering the platform supports SPIR.

If you wish to specify the SYCL Target manually, the sycl-target flag can be used.

Use with the cmake script as follows:

cmake .. -GNinja -DComputeCpp_DIR=/path/to/computecpp -DCOMPUTECPP_BITCODE=spir64

More information about the compiler options can be found here.


Changing the selected SYCL/OpenCL device

Open src/sycl-rayt.cpp.

Look for this line of code:

auto queue = sycl::queue(sycl::gpu_selector{});

And change gpu_selector to cpu_selector (i.e).


To write the raytraced image data to an image file (currently .ppm), use:

./sycl-rayt | tee output.ppm

sycl-rayt's People

Contributors

georgeweb avatar

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.