I'm working on CUDA as a beginner and am trying to execute a pre written code the compile gives error for every usage of CUDPPHandle... for example
void HPGMST()
{
//Reinitialize the ranking arrays, must be orig but this also works
CUDA_SAFE_CALL( cudaMemcpy( d_vertex_split_rank, h_vertex_split_rank_test, sizeof(unsigned long long int)*no_of_vertices, cudaMemcpyHostToDevice));
CUDA_SAFE_CALL( cudaMemcpy( d_edge_rank, h_edge_rank_test, sizeof(unsigned long long int)*no_of_edges, cudaMemcpyHostToDevice));
//Make both grids needed for execution, no_of_vertices and no_of_edges length sizes
int num_of_blocks, num_of_threads_per_block;
SetGridThreadLen(no_of_edges, &num_of_blocks, &num_of_threads_per_block);
dim3 grid_edgelen(num_of_blocks, 1, 1);
dim3 threads_edgelen(num_of_threads_per_block, 1, 1);
SetGridThreadLen(no_of_vertices, &num_of_blocks, &num_of_threads_per_block);
dim3 grid_vertexlen(num_of_blocks, 1, 1);
dim3 threads_vertexlen(num_of_threads_per_block, 1, 1);
//Append the Weight and Outgoing vertex into a single array, 8-10 bits for weight and 20-22 bits for vertex ID
//Append in Parallel on the Device itself, call the append kernel
AppendKernel_1<<< grid_edgelen, threads_edgelen, 0>>>(d_segmented_min_scan_input, d_weight, d_edge, no_of_edges);
//Create the Flag needed for segmented min scan operation, similar operation will also be used at other places
ClearArray<<< grid_edgelen, threads_edgelen, 0>>>( d_edge_flag, no_of_edges );
//Mark the segments for the segmented min scan using scan
MakeFlag_3<<< grid_vertexlen, threads_vertexlen, 0>>>( d_edge_flag, d_vertex, no_of_vertices);
//Perfom the Segmented Min Scan on resulting array using d_edge_flag as segments
cudppPlan(&segmentedScanPlan_min, config_segmented_min, no_of_edges, 1, 0 ); //Make the segmented min scan plan
Gives the follwing errors on the last line:
- argument of type "CUDPPHandle *" is incompatible with parameter of type "CUDPPHandle"
- no suitable conversion function from "CUDPPConfiguration" to "CUDPPHandle *" exists
- no suitable constructor exists to convert from "int" to "CUDPPConfiguration"
- too few arguments in function call
i'm using 'nvcc -arch sm_20' to compile on tesla C2075 kindly help....