Skip to content
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

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

GpuArray sort operation #488

wants to merge 19 commits into from

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
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