Skip to content
Snippets Groups Projects
Commit 2063ab07 authored by Dinda Yora Islami's avatar Dinda Yora Islami
Browse files

edit radix par

parent 7fa8e11a
No related merge requests found
......@@ -65,7 +65,7 @@ void radixsort(int *arr, int n)
cudaMalloc((void**)&d_arr,sizeof(int)*n);
cudaMemcpy(d_arr, arr, sizeof(int)*n,cudaMemcpyHostToDevice);
for (int exp = 1; m/exp > 0; exp *= 10){
for (int exp = 1; m/exp > 0; exp *= 10)
countSort<<<1,1024>>>(d_arr, n, exp);
//transfer data back to host memory
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment