Top "Thrust" questions

Thrust is a template library of parallel algorithms with an interface resembling the C++ Standard Template Library (STL) for NVIDIA CUDA.

Efficiency of CUDA vector types (float2, float3, float4)

I'm trying to understand the integrate_functor in particles_kernel.cu from CUDA examples: struct integrate_functor { float deltaTime; //constructor …

c cuda thrust
Max number of threads which can be initiated in a single CUDA kernel

I am confused about the maximum number of threads which can be launched in a Fermi GPU. My GTX 570 device …

cuda gpu thrust
From thrust::device_vector to raw pointer and back?

I understand how to go from a vector to a raw pointer but im skipping a beat on how to …

thrust
Thrust inside user written kernels

I am a newbie to Thrust. I see that all Thrust presentations and examples only show host code. I would …

cuda thrust
how to cast thrust::device_vector<int> to raw pointer

I have a thrust device_vector. I want to cast it to a raw pointer so that I can pass …

cuda gpu thrust
Differences between VexCL, Thrust, and Boost.Compute

With a just a cursory understanding of these libraries, they look to be very similar. I know that VexCL and …

c++ thrust gpu boost-compute vexcl
Finding the maximum element value AND its position using CUDA Thrust

How do I get not only the value but also the position of the maximum (minimum) element (res.val and …

cuda thrust
Generating random numbers with uniform distribution using Thrust

I need to generate a vector with random numbers between 0.0 and 1.0 using Thrust. The only documented example I could find …

c++ cuda thrust
Sorting objects with Thrust CUDA

Is it possible to sort objects using the Thrust library? I have the following struct: struct OB{ int N; Cls *…

sorting cuda thrust cudpp
Resolving Thrust/CUDA warnings "Cannot tell what pointer points to..."

I'm trying to build a trivial application using Thrust/CUDA 4.0 and get lots of warnings "warning : Cannot tell what pointer …

visual-studio-2010 cuda thrust