I have the following (compiled and executable) code using CUDA Thrust to perform abbreviations of float2 arrays. It works correctly
using namespace std;
However, when I change float2 to double2 in the main program, namely
void main( int argc, char** argv) { int N = 20;
I get an exception in the reduce line. How can I use CUDA Thrust shortening with double2 arrays? Am I doing something wrong? Thanks in advance.
WORKING DECISION AFTER OPENING TALONMEN
using the std namespace;
// includes, system #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <conio.h> #include <typeinfo> #include <iostream> // includes CUDA #include <cuda.h> #include <cuda_runtime.h> // includes Thrust #include <thrust/host_vector.h>
source share