From 57a314f1ace55b22ef0100d550e640b3ceb58e03 Mon Sep 17 00:00:00 2001
From: Yora <13516067@std.stei.itb.ac.id>
Date: Thu, 11 Apr 2019 20:44:56 +0700
Subject: [PATCH] add radix

---
 src/radix_sort_par3.cu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/radix_sort_par3.cu b/src/radix_sort_par3.cu
index 5155392..b0701f5 100644
--- a/src/radix_sort_par3.cu
+++ b/src/radix_sort_par3.cu
@@ -34,7 +34,7 @@ void countSort(int arr[], int n, int exp)
   
     // Store count of occurrences in count[] 
     storeCount<<<1,32>>>(d_count,d_arr,n,exp); 
-    cudaMemcpy(h_count, d_count, sizeof(int)*n,cudaMemcpyDeviceToHost);
+    cudaMemcpy(h_count, d_count, 10,cudaMemcpyDeviceToHost);
     // Change count[i] so that count[i] now contains actual 
     //  position of this digit in output[] 
     for (i = 1; i < 10; i++) 
-- 
GitLab