Skip to content

Commit 0b5fea3

Browse files
committed
Rename CUDA partition device stream FFI
Signed-off-by: Alexander Droste <alexander.droste@protonmail.com>
1 parent a9970b3 commit 0b5fea3

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

vortex-cuda/ffi/cinclude/vortex_cuda.h

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,18 @@ int vx_cuda_array_export_arrow_device(const vx_session *session,
8787
* This function takes ownership of `partition`. Callers must not free or reuse
8888
* it after calling this function, regardless of success or failure.
8989
*
90-
* On success returns 0 and writes an owned `ArrowDeviceArrayStream` to `out_stream`. The stream owns
91-
* the resulting scan iterator and must be released through its embedded Arrow `release` callback.
92-
* Each produced `ArrowDeviceArray` must be released through its embedded `ArrowArray.release`
93-
* callback.
90+
* On success returns 0 and writes an owned `ArrowDeviceArrayStream` to
91+
* `out_stream`. The stream owns the resulting scan iterator. The caller must
92+
* release the stream through its embedded Arrow `release` callback, and must
93+
* release each produced `ArrowDeviceArray` through its embedded
94+
* `ArrowArray.release` callback.
9495
*
9596
* On error returns 1 and writes a `vx_error` to `error_out` when non-NULL.
9697
*/
97-
int vx_cuda_partition_scan_arrow_device(const vx_session *session,
98-
vx_partition *partition,
99-
struct ArrowDeviceArrayStream *out_stream,
100-
vx_error **error_out);
98+
int vx_cuda_partition_scan_arrow_device_stream(const vx_session *session,
99+
vx_partition *partition,
100+
struct ArrowDeviceArrayStream *out_stream,
101+
vx_error **error_out);
101102

102103
#ifdef __cplusplus
103104
}

vortex-cuda/ffi/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub unsafe extern "C-unwind" fn vx_cuda_array_export_arrow_device(
122122
/// partition handle created by `vortex-ffi`. `out_stream` must be a valid writable pointer. If
123123
/// `error_out` is non-null, it must be valid for writing one error pointer.
124124
#[unsafe(no_mangle)]
125-
pub unsafe extern "C-unwind" fn vx_cuda_partition_scan_arrow_device(
125+
pub unsafe extern "C-unwind" fn vx_cuda_partition_scan_arrow_device_stream(
126126
session: *const vx_session,
127127
partition: *mut vx_partition,
128128
out_stream: *mut ArrowDeviceArrayStream,

0 commit comments

Comments
 (0)