-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GpuArray sort operation #488
base: master
Are you sure you want to change the base?
Conversation
src/gpuarray/sort.h
Outdated
#endif | ||
|
||
#define SHARED_SIZE_LIMIT 1024U | ||
#define SAMPLE_STRIDE 128 |
There was a problem hiding this comment.
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
src/gpuarray/sort.h
Outdated
GpuKernel k_ranks_idxs; | ||
GpuKernel k_merge; | ||
GpuKernel k_merge_global; | ||
} GpuSortKernels; |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
src/gpuarray_sort.c
Outdated
* | ||
*/ | ||
|
||
//#define checkErr(x) checkErrors(x, __FILE__, __LINE__) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove old code
src/gpuarray_sort.c
Outdated
* 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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
src/gpuarray_sort.c
Outdated
* 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really necessary?
jenkins tests this please |
jenkins test this please |
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