Skip to content

Commit

Permalink
make sure it's a cupy zero dim array (#3271)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianna authored Oct 9, 2024
1 parent e8f5f9a commit 0a92539
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
// BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE

// BEGIN PYTHON
// def f(grid, block, args):
// (tocarry, fromstarts, fromstops, lenstarts, at, invocation_index, err_code) = args
// cuda_kernel_templates.get_function(fetch_specialization(["awkward_ListArray_getitem_next_at", tocarry.dtype, fromstarts.dtype, fromstops.dtype]))(grid, block, (tocarry, fromstarts, fromstops, lenstarts, cupy.array(at), invocation_index, err_code))
// out["awkward_ListArray_getitem_next_at", {dtype_specializations}] = None
// END PYTHON

enum class LISTARRAY_GETITEM_NEXT_AT_ERRORS {
IND_OUT_OF_RANGE, // message: "index out of range"
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
// BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE


// BEGIN PYTHON
// def f(grid, block, args):
// (tocarry, at, length, size, invocation_index, err_code) = args
// cuda_kernel_templates.get_function(fetch_specialization(["awkward_RegularArray_getitem_next_at", tocarry.dtype]))(grid, block, (tocarry, cupy.array(at), length, size, invocation_index, err_code))
// out["awkward_RegularArray_getitem_next_at", {dtype_specializations}] = None
// END PYTHON

enum class REGULARARRAY_GETITEM_NEXT_AT_ERRORS {
IND_OUT_OF_RANGE // message: "index out of range"
};
Expand Down

0 comments on commit 0a92539

Please sign in to comment.