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

Enhancements to cuda array creation #19

Open
wants to merge 37 commits into
base: cuda_main_temp
Choose a base branch
from
Open

Conversation

bauom
Copy link
Collaborator

@bauom bauom commented Sep 5, 2023

A copy PR from pyccel#1236

For now in copy_CudaArray_Data the cudaMemcpyKind field of cudaMemcpy is hardcoded, this PR aims to make it so that field can be deduced from the variable's memory location and the current context of the function, as well as other fixes to make array creation in cuda easier.

  • Fixes compilation issues caused by the previous cuda_memcopy PR.
  • Raise an error when creating a Host array in Device function.
  • Create temporary variable when using numpy.array, cuda.array, cupy.array calls as arguments.

Pinkyboi and others added 30 commits November 18, 2022 13:02
@bauom bauom requested a review from EmilyBourne as a code owner September 5, 2023 10:36
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.

3 participants