ComputeCpp With PTX For NVIDIA™ Devices

This guide was created for versions: v0.5.0 - Latest

Experimental support for PTX is now available with the latest ComputeCpp version. This means that it is possible to target NVIDIA devices. See our blog for more background on this.

Note that this support is limited, although the code generation is ready, the builtin support is limited. OpenCL builtins still need to be mapped to their PTX counterparts. These will be added in future releases.

Usage

The computecpp_info tool adds a new flag to check for PTX support, just call the computecpp_info tool as you would normally but with an additional flag.

> computecpp_info --use-ptx

If you want to try out this experimental support with your existing code there is a compiler flag that is used when compiling your SYCL source code:

> compute++ -sycl -sycl-target ptx64