Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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