CUDA Thrust reduction with double2 arrays

前端 未结 1 1037
悲哀的现实
悲哀的现实 2021-01-19 19:12

I have the following (compilable and executable) code using CUDA Thrust to perform reductions of float2 arrays. It works correctly

using namespa         


        
相关标签:
1条回答
  • 2021-01-19 19:31

    This is a known incompatibility with MSVC and nvcc. See here for example. The solution is to define your own version of double2 and use that instead.

    Just for reference, I can compile and run your code correctly on a Linux 64 bit box with CUDA 5.5.

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