From 2a35bba47bf7a00d88a5e9b63e3955e1552888de Mon Sep 17 00:00:00 2001 From: Yasya Rusyda <yasyars@Yasyas-MacBook-Pro.local> Date: Thu, 11 Apr 2019 16:47:33 +0700 Subject: [PATCH] Add print --- src/radix_sort_par.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/radix_sort_par.cu b/src/radix_sort_par.cu index 2d1df50..98787cf 100644 --- a/src/radix_sort_par.cu +++ b/src/radix_sort_par.cu @@ -80,7 +80,7 @@ void radixsort(int *arr, int n) // A utility function to print an array void print(int arr[], int n){ for (int i = 0; i < n; i++) - cout << arr[i] << " "; + cout << arr[i] << "\n"; } void rng(int* arr,int n){ @@ -117,7 +117,7 @@ int main(int argc, char *argv[]) clock_gettime(CLOCK_REALTIME, &start); radixsort(arr,n); clock_gettime(CLOCK_REALTIME, &stop); - //print(arr,n); + print(arr,n); timespec duration = diff(start, stop); long time = duration.tv_sec * 1000000 + duration.tv_nsec/1000; -- GitLab