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

Bug in CUDA array creation due to allocation mishandling #2

Open
framdani opened this issue Feb 17, 2023 · 0 comments · Fixed by pyccel/pyccel#1328
Open

Bug in CUDA array creation due to allocation mishandling #2

framdani opened this issue Feb 17, 2023 · 0 comments · Fixed by pyccel/pyccel#1328
Assignees
Labels
blocked bug Something isn't working invalid This doesn't seem right

Comments

@framdani
Copy link
Member

framdani commented Feb 17, 2023

Describe the bug

The allocation of the CUDA array is not being properly handled, leading to a segmentation fault.

To Reproduce

For example :

from pyccel import cuda

if __name__ == '__main__':
    arr = cuda.array([0,1,2,3,4], memory_location = 'host')
    print(arr)

Language

Cuda

@framdani framdani added the bug Something isn't working label Feb 17, 2023
@framdani framdani self-assigned this Feb 17, 2023
@EmilyBourne EmilyBourne transferred this issue from pyccel/pyccel Mar 14, 2023
bauom pushed a commit to pyccel/pyccel that referenced this issue Apr 3, 2023
This PR fixes a bug where the allocation of the CUDA array was not being
properly handled. Fixes
[pyccel-cuda#2](pyccel#2).

**Changes Made:**
- Fixed the allocation of the CUDA array to prevent segmentation fault.
- Added tests to ensure proper handling of the CUDA array allocation.
@EmilyBourne EmilyBourne added invalid This doesn't seem right blocked labels Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants