Skip to content

Conversation

@vcampmany
Copy link

@vcampmany vcampmany commented Jul 24, 2017

Sort implementation for 1D contiguous data.
int GpuArray_sort(GpuArray *dstKey, GpuArray *srcKey, uint sortDir, GpuArray *arg)
sortDir: 0 for descending order and 1 for ascending order
arg empty GpuArray to store argsort output. Set to NULL for regular sort. Supported types for the GpuArray are GA_UINT and GA_ULONG

#endif

#define SHARED_SIZE_LIMIT 1024U
#define SAMPLE_STRIDE 128
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't expose this in a public header

GpuKernel k_ranks_idxs;
GpuKernel k_merge;
GpuKernel k_merge_global;
} GpuSortKernels;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably want to hide those structures also.

}
#endif

#endif No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a newline at the end

*
*/

//#define checkErr(x) checkErrors(x, __FILE__, __LINE__)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove old code

* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related documentation outside the terms of the EULA
* is strictly prohibited.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels a bit weird to refer to an EULA that is not there. Perhaps there is a way to reword that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should remove the paragraph about the EULA. The rest is fine.

* This software contains source code provided by NVIDIA Corporation.
*
* Read more at: http://docs.nvidia.com/cuda/eula/index.html#ixzz4lUbgXjsr
* Follow us: @GPUComputing on Twitter | NVIDIA on Facebook
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really necessary?

@abergeron
Copy link
Member

jenkins tests this please

@abergeron
Copy link
Member

jenkins test this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants