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
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ gpuarray_collectives_cuda_nccl.c
gpuarray_buffer_opencl.c
gpuarray_blas_opencl_clblas.c
gpuarray_blas_opencl_clblast.c
gpuarray_sort.c
)

check_function_exists(strlcat HAVE_STRL)
Expand Down Expand Up @@ -126,6 +127,7 @@ set(headers
gpuarray/kernel.h
gpuarray/types.h
gpuarray/util.h
gpuarray/sort.h
)

install(FILES ${headers} DESTINATION include/gpuarray)
Expand Down
27 changes: 27 additions & 0 deletions src/gpuarray/sort.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#ifndef GPUARRAY_SORT_H
#define GPUARRAY_SORT_H
/** \file sort.h
* \brief Sort operations generator.
*/

#include <gpuarray/buffer.h>
#include <gpuarray/array.h>
#include <gpuarray/kernel.h>


#ifdef __cplusplus
extern "C" {
#endif
#ifdef CONFUSE_EMACS
}
#endif


GPUARRAY_PUBLIC int GpuArray_sort(GpuArray *r, GpuArray *a, unsigned int sortDir, GpuArray *dstArg);


#ifdef __cplusplus
}
#endif

#endif
Loading