SYCL exception caught: Error: [ComputeCpp:RT0101] Failed to create kernel ((Kernel Name: SYCL_class_multiply))

后端 未结 1 1488
清酒与你
清酒与你 2021-01-25 04:03

I cloned https://github.com/codeplaysoftware/computecpp-sdk.git and modified the computecpp-sdk/samples/accessors/accessors.cpp file.

I just added st

相关标签:
1条回答
  • 2021-01-25 04:42

    ComputeCpp, an implementation of the open standard SYCL, outputs SPIR instructions by default, the NVidia OpenCL implementation is not able to consume SPIR instructions. Instead you will need to use ComputeCpp to output PTX instructions that can be understood by the NVidia hardware.

    To do this, add the argument "-DCOMPUTECPP_BITCODE=ptx64" when making your cmake call using the sample code project from GitHub.

    The FindComputeCpp.cmake file in this project takes this flag and gives the compiler instructions to output PTX. If you would like to do this with your own project you can take the relevant section from the FindComputeCpp.cmake file.

    0 讨论(0)
提交回复
热议问题