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

fix: debugging slicing on gpu #18

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

Conversation

ianna
Copy link
Owner

@ianna ianna commented Sep 16, 2024

No description provided.

@ianna ianna changed the title debug: slicing on gpu fix: debugging slicing on gpu Sep 16, 2024
@ianna
Copy link
Owner Author

ianna commented Sep 16, 2024

tests-cuda/test_3140_cuda_slicing.py::test_simple_slice_cpu content.py: Calling function: __getitem__
content.py: Calling function: _getitem
_slicing.py: Calling function: normalize_integer_like
_slicing.py: Function normalize_integer_like returned 0
listoffsetarray.py: Calling function: _getitem_at
listoffsetarray.py: Calling function: _getitem_range
_slicing.py: Calling function: normalize_slice
_slicing.py: Function normalize_slice returned slice(np.int64(0), np.int64(4), None)
listoffsetArray.py: Function _getitem_range returned <ListOffsetArray len='3'>
    <offsets><Index dtype='int64' len='4'>
        [0 3 4 6]
    </Index></offsets>
    <content><NumpyArray dtype='int64' len='6'>[1 2 3 0 4 5]</NumpyArray></content>
</ListOffsetArray>
listoffsetArray.py: Function _getitem_at returned <ListOffsetArray len='3'>
    <offsets><Index dtype='int64' len='4'>
        [0 3 4 6]
    </Index></offsets>
    <content><NumpyArray dtype='int64' len='6'>[1 2 3 0 4 5]</NumpyArray></content>
</ListOffsetArray>
content.py: Function _getitem returned <ListOffsetArray len='3'>
    <offsets><Index dtype='int64' len='4'>
        [0 3 4 6]
    </Index></offsets>
    <content><NumpyArray dtype='int64' len='6'>[1 2 3 0 4 5]</NumpyArray></content>
</ListOffsetArray>
content.py: Function __getitem__ returned <ListOffsetArray len='3'>
    <offsets><Index dtype='int64' len='4'>
        [0 3 4 6]
    </Index></offsets>
    <content><NumpyArray dtype='int64' len='6'>[1 2 3 0 4 5]</NumpyArray></content>
</ListOffsetArray>
content.py: Calling function: __getitem__
content.py: Calling function: _getitem
_slicing.py: Calling function: normalise_items
_slicing.py: Calling function: normalise_item
_slicing.py: Calling function: normalize_slice
_slicing.py: Function normalize_slice returned slice(None, None, None)
_slicing.py: Function normalise_item returned slice(None, None, None)
_slicing.py: Calling function: normalise_item
_slicing.py: Calling function: normalize_integer_like
_slicing.py: Function normalize_integer_like returned 0
_slicing.py: Function normalise_item returned 0
_slicing.py: Function normalise_items returned [slice(None, None, None), 0]
_slicing.py: Calling function: prepare_advanced_indexing
_slicing.py: Function prepare_advanced_indexing returned (slice(None, None, None), array(0))
_slicing.py: Calling function: head_tail
_slicing.py: Function head_tail returned (array(0), ())
listoffsetarray.py: Calling function: _carry
_slicing.py: Calling function: normalize_slice
_slicing.py: Function normalize_slice returned slice(None, -1, None)
_slicing.py: Calling function: normalize_slice
_slicing.py: Function normalize_slice returned slice(1, None, None)
listoffsetArray.py: Function _carry returned <ListArray len='3'>
    <starts><Index dtype='int64' len='3'>
        [0 3 4]
    </Index></starts>
    <stops><Index dtype='int64' len='3'>
        [3 4 6]
    </Index></stops>
    <content><NumpyArray dtype='int64' len='6'>[1 2 3 0 4 5]</NumpyArray></content>
</ListArray>
listarray.py: Calling function: _getitem_next
_slicing.py: Calling function: head_tail
_slicing.py: Function head_tail returned (awkward._slicing.NO_HEAD, ())
numpyarray.py: Calling function: _carry
numpyarray.py: Function _carry returned <NumpyArray dtype='int64' len='3'>[1 0 4]</NumpyArray>
numpyarray.py: Calling function: _getitem_next
numpyarray.py: Function _getitem_next returned <NumpyArray dtype='int64' len='3'>[1 0 4]</NumpyArray>
listarray.py: Function _getitem_next returned <NumpyArray dtype='int64' len='3'>[1 0 4]</NumpyArray>
numpyarray.py: Calling function: _getitem_range
numpyarray.py: Function _getitem_range returned <NumpyArray dtype='int64' len='3'>[1 0 4]</NumpyArray>
content.py: Function _getitem returned <NumpyArray dtype='int64' len='3'>[1 0 4]</NumpyArray>
content.py: Function __getitem__ returned <NumpyArray dtype='int64' len='3'>[1 0 4]</NumpyArray>
PASSED
tests-cuda/test_3140_cuda_slicing.py::test_simple_slice_gpu content.py: Calling function: __getitem__
content.py: Calling function: _getitem
_slicing.py: Calling function: normalize_integer_like
_slicing.py: Function normalize_integer_like returned 0
listoffsetarray.py: Calling function: _getitem_at
listoffsetarray.py: Calling function: _getitem_range
_slicing.py: Calling function: normalize_slice
_slicing.py: Function normalize_slice returned slice(np.int64(0), np.int64(4), None)
listoffsetArray.py: Function _getitem_range returned <ListOffsetArray len='3'>
    <offsets><Index dtype='int64' len='4'>
        [0 3 4 6]
    </Index></offsets>
    <content><NumpyArray dtype='int64' len='6'>[1 2 3 0 4 5]</NumpyArray></content>
</ListOffsetArray>
listoffsetArray.py: Function _getitem_at returned <ListOffsetArray len='3'>
    <offsets><Index dtype='int64' len='4'>
        [0 3 4 6]
    </Index></offsets>
    <content><NumpyArray dtype='int64' len='6'>[1 2 3 0 4 5]</NumpyArray></content>
</ListOffsetArray>
content.py: Function _getitem returned <ListOffsetArray len='3'>
    <offsets><Index dtype='int64' len='4'>
        [0 3 4 6]
    </Index></offsets>
    <content><NumpyArray dtype='int64' len='6'>[1 2 3 0 4 5]</NumpyArray></content>
</ListOffsetArray>
content.py: Function __getitem__ returned <ListOffsetArray len='3'>
    <offsets><Index dtype='int64' len='4'>
        [0 3 4 6]
    </Index></offsets>
    <content><NumpyArray dtype='int64' len='6'>[1 2 3 0 4 5]</NumpyArray></content>
</ListOffsetArray>
listoffsetarray.py: Calling function: _is_getitem_at_placeholder
listoffsetArray.py: Function _is_getitem_at_placeholder returned False
listoffsetarray.py: Calling function: _getitem_at
numpyarray.py: Calling function: _getitem_range
numpyarray.py: Function _getitem_range returned <NumpyArray dtype='int64' len='3'>[1 2 3]</NumpyArray>
listoffsetArray.py: Function _getitem_at returned <NumpyArray dtype='int64' len='3'>[1 2 3]</NumpyArray>
numpyarray.py: Calling function: _is_getitem_at_placeholder
numpyarray.py: Function _is_getitem_at_placeholder returned False
numpyarray.py: Calling function: _getitem_at
numpyarray.py: Function _getitem_at returned 1
numpyarray.py: Calling function: _is_getitem_at_placeholder
numpyarray.py: Function _is_getitem_at_placeholder returned False
numpyarray.py: Calling function: _getitem_at
numpyarray.py: Function _getitem_at returned 3
numpyarray.py: Calling function: _is_getitem_at_placeholder
numpyarray.py: Function _is_getitem_at_placeholder returned False
numpyarray.py: Calling function: _getitem_at
numpyarray.py: Function _getitem_at returned 2
listoffsetarray.py: Calling function: _is_getitem_at_placeholder
listoffsetArray.py: Function _is_getitem_at_placeholder returned False
listoffsetarray.py: Calling function: _getitem_at
numpyarray.py: Calling function: _getitem_range
numpyarray.py: Function _getitem_range returned <NumpyArray dtype='int64' len='2'>[4 5]</NumpyArray>
listoffsetArray.py: Function _getitem_at returned <NumpyArray dtype='int64' len='2'>[4 5]</NumpyArray>
numpyarray.py: Calling function: _is_getitem_at_placeholder
numpyarray.py: Function _is_getitem_at_placeholder returned False
numpyarray.py: Calling function: _getitem_at
numpyarray.py: Function _getitem_at returned 4
numpyarray.py: Calling function: _is_getitem_at_placeholder
numpyarray.py: Function _is_getitem_at_placeholder returned False
numpyarray.py: Calling function: _getitem_at
numpyarray.py: Function _getitem_at returned 5
listoffsetarray.py: Calling function: _is_getitem_at_placeholder
listoffsetArray.py: Function _is_getitem_at_placeholder returned False
listoffsetarray.py: Calling function: _getitem_at
numpyarray.py: Calling function: _getitem_range
numpyarray.py: Function _getitem_range returned <NumpyArray dtype='int64' len='1'>[0]</NumpyArray>
listoffsetArray.py: Function _getitem_at returned <NumpyArray dtype='int64' len='1'>[0]</NumpyArray>
numpyarray.py: Calling function: _is_getitem_at_placeholder
numpyarray.py: Function _is_getitem_at_placeholder returned False
numpyarray.py: Calling function: _getitem_at
numpyarray.py: Function _getitem_at returned 0
content.py: Calling function: __getitem__
content.py: Calling function: _getitem
_slicing.py: Calling function: normalise_items
_slicing.py: Calling function: normalise_item
_slicing.py: Calling function: normalize_slice
_slicing.py: Function normalize_slice returned slice(None, None, None)
_slicing.py: Function normalise_item returned slice(None, None, None)
_slicing.py: Calling function: normalise_item
_slicing.py: Calling function: normalize_integer_like
_slicing.py: Function normalize_integer_like returned 0
_slicing.py: Function normalise_item returned 0
_slicing.py: Function normalise_items returned [slice(None, None, None), 0]
_slicing.py: Calling function: prepare_advanced_indexing
_slicing.py: Function prepare_advanced_indexing returned (slice(None, None, None), array(0))
_slicing.py: Calling function: head_tail
_slicing.py: Function head_tail returned (array(0), ())
listoffsetarray.py: Calling function: _carry
_slicing.py: Calling function: normalize_slice
_slicing.py: Function normalize_slice returned slice(None, -1, None)
_slicing.py: Calling function: normalize_slice
_slicing.py: Function normalize_slice returned slice(1, None, None)
listoffsetArray.py: Function _carry returned <ListArray len='3'>
    <starts><Index dtype='int64' len='3'>
        [0 3 4]
    </Index></starts>
    <stops><Index dtype='int64' len='3'>
        [3 4 6]
    </Index></stops>
    <content><NumpyArray dtype='int64' len='6'>[1 2 3 0 4 5]</NumpyArray></content>
</ListArray>
listarray.py: Calling function: _getitem_next
_slicing.py: Calling function: head_tail
_slicing.py: Function head_tail returned (awkward._slicing.NO_HEAD, ())
numpyarray.py: Calling function: _carry
numpyarray.py: Function _carry returned <NumpyArray dtype='int64' len='3'>[4 2 3]</NumpyArray>
numpyarray.py: Calling function: _getitem_next
numpyarray.py: Function _getitem_next returned <NumpyArray dtype='int64' len='3'>[4 2 3]</NumpyArray>
listarray.py: Function _getitem_next returned <NumpyArray dtype='int64' len='3'>[4 2 3]</NumpyArray>
numpyarray.py: Calling function: _getitem_range
numpyarray.py: Function _getitem_range returned <NumpyArray dtype='int64' len='3'>[4 2 3]</NumpyArray>
content.py: Function _getitem returned <NumpyArray dtype='int64' len='3'>[4 2 3]</NumpyArray>
content.py: Function __getitem__ returned <NumpyArray dtype='int64' len='3'>[4 2 3]</NumpyArray>
listoffsetarray.py: Calling function: _is_getitem_at_placeholder
listoffsetArray.py: Function _is_getitem_at_placeholder returned False
listoffsetarray.py: Calling function: _getitem_at
numpyarray.py: Calling function: _getitem_range
numpyarray.py: Function _getitem_range returned <NumpyArray dtype='int64' len='3'>[1 2 3]</NumpyArray>
listoffsetArray.py: Function _getitem_at returned <NumpyArray dtype='int64' len='3'>[1 2 3]</NumpyArray>
numpyarray.py: Calling function: _is_getitem_at_placeholder
numpyarray.py: Function _is_getitem_at_placeholder returned False
numpyarray.py: Calling function: _getitem_at
numpyarray.py: Function _getitem_at returned 1
numpyarray.py: Calling function: _is_getitem_at_placeholder
numpyarray.py: Function _is_getitem_at_placeholder returned False
numpyarray.py: Calling function: _getitem_at
numpyarray.py: Function _getitem_at returned 3
numpyarray.py: Calling function: _is_getitem_at_placeholder
numpyarray.py: Function _is_getitem_at_placeholder returned False
numpyarray.py: Calling function: _getitem_at
numpyarray.py: Function _getitem_at returned 2
listoffsetarray.py: Calling function: _is_getitem_at_placeholder
listoffsetArray.py: Function _is_getitem_at_placeholder returned False
listoffsetarray.py: Calling function: _getitem_at
numpyarray.py: Calling function: _getitem_range
numpyarray.py: Function _getitem_range returned <NumpyArray dtype='int64' len='2'>[4 5]</NumpyArray>
listoffsetArray.py: Function _getitem_at returned <NumpyArray dtype='int64' len='2'>[4 5]</NumpyArray>
numpyarray.py: Calling function: _is_getitem_at_placeholder
numpyarray.py: Function _is_getitem_at_placeholder returned False
numpyarray.py: Calling function: _getitem_at
numpyarray.py: Function _getitem_at returned 4
numpyarray.py: Calling function: _is_getitem_at_placeholder
numpyarray.py: Function _is_getitem_at_placeholder returned False
numpyarray.py: Calling function: _getitem_at
numpyarray.py: Function _getitem_at returned 5
listoffsetarray.py: Calling function: _is_getitem_at_placeholder
listoffsetArray.py: Function _is_getitem_at_placeholder returned False
listoffsetarray.py: Calling function: _getitem_at
numpyarray.py: Calling function: _getitem_range
numpyarray.py: Function _getitem_range returned <NumpyArray dtype='int64' len='1'>[0]</NumpyArray>
listoffsetArray.py: Function _getitem_at returned <NumpyArray dtype='int64' len='1'>[0]</NumpyArray>
numpyarray.py: Calling function: _is_getitem_at_placeholder
numpyarray.py: Function _is_getitem_at_placeholder returned False
numpyarray.py: Calling function: _getitem_at
numpyarray.py: Function _getitem_at returned 0
numpyarray.py: Calling function: _is_getitem_at_placeholder
numpyarray.py: Function _is_getitem_at_placeholder returned False
numpyarray.py: Calling function: _getitem_at
numpyarray.py: Function _getitem_at returned 4
numpyarray.py: Calling function: _is_getitem_at_placeholder
numpyarray.py: Function _is_getitem_at_placeholder returned False
numpyarray.py: Calling function: _getitem_at
numpyarray.py: Function _getitem_at returned 3
numpyarray.py: Calling function: _is_getitem_at_placeholder
numpyarray.py: Function _is_getitem_at_placeholder returned False
numpyarray.py: Calling function: _getitem_at
numpyarray.py: Function _getitem_at returned 2
FAILED

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.

1 participant