vexcl

VexCL vector of structs?

可紊 提交于 2019-12-11 01:53:36
问题 So I know that it is possible to use custom types with OpenCL. But I haven't been able to use them with VexCL. Creating a device vector of structs works fine, but I can't perform any operations. As I haven't found any examples using custom types with VexCL my question is is that even possible? Thanks in advance. 回答1: VexCL does not support operations with vectors of structs out of the box. You will need to help it a bit. First, you need to tell VexCL how to spell the type name of the struct.

Differences between VexCL, Thrust, and Boost.Compute

感情迁移 提交于 2019-11-29 19:52:00
With a just a cursory understanding of these libraries, they look to be very similar. I know that VexCL and Boost.Compute use OpenCl as a backend (although the v1.0 release VexCL also supports CUDA as a backend) and Thrust uses CUDA. Aside from the different backends, what's the difference between these. Specifically, what problem space do they address and why would I want to use one over the other. Also, on the Thrust FAQ it is stated that The primary barrier to OpenCL support is the lack of an OpenCL compiler and runtime with support for C++ templates If this is the case, how is it possible

Differences between VexCL, Thrust, and Boost.Compute

那年仲夏 提交于 2019-11-28 14:46:11
问题 With a just a cursory understanding of these libraries, they look to be very similar. I know that VexCL and Boost.Compute use OpenCl as a backend (although the v1.0 release VexCL also supports CUDA as a backend) and Thrust uses CUDA. Aside from the different backends, what's the difference between these. Specifically, what problem space do they address and why would I want to use one over the other. Also, on the Thrust FAQ it is stated that The primary barrier to OpenCL support is the lack of