Skip to content
Snippets Groups Projects
Commit ff37bf47 authored by Yasya Rusyda's avatar Yasya Rusyda
Browse files

edit header for parallel

parent 406883c3
Branches
No related merge requests found
......@@ -5,7 +5,7 @@
using namespace std;
// A utility function to get maximum value in arr[]
int getMax(int arr[], int n)
__device__ int getMax(int arr[], int n)
{
int mx = arr[0];
for (int i = 1; i < n; i++)
......@@ -16,8 +16,7 @@ int getMax(int arr[], int n)
// A function to do counting sort of arr[] according to
// the digit represented by exp.
__global__
void countSort(int arr[], int n, int exp)
__device__ void countSort(int arr[], int n, int exp)
{
int index = threadIdx.x;
int stride = blockDim.x;
......@@ -50,7 +49,7 @@ void countSort(int arr[], int n, int exp)
// The main function to that sorts arr[] of size n using
// Radix Sort
void radixsort(int *arr, int n)
__device__ void radixsort(int *arr, int n)
{
int *d_arr;
......
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