forked from pyccel/pyccel
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Basic support for Custom Device function. #41
Comments
Closed
Closed
This was referenced Jun 28, 2024
Closed
EmilyBourne
added a commit
that referenced
this issue
Jul 3, 2024
This pull request addresses issue #41 by implementing a new feature in Pyccel that allows users to define a custom device **Commit Summary** - Adding handler for custom device and its code generation. - Adding test --------- Co-authored-by: EmilyBourne <louise.bourne@gmail.com>
EmilyBourne
added a commit
that referenced
this issue
Jul 11, 2024
This pull request addresses issue #41 by implementing a new feature in Pyccel that allows users to define a custom device **Commit Summary** - Adding handler for custom device and its code generation. - Adding test --------- Co-authored-by: EmilyBourne <louise.bourne@gmail.com>
EmilyBourne
added a commit
that referenced
this issue
Jul 15, 2024
This pull request addresses issue #41 by implementing a new feature in Pyccel that allows users to define a custom device **Commit Summary** - Adding handler for custom device and its code generation. - Adding test --------- Co-authored-by: EmilyBourne <louise.bourne@gmail.com>
EmilyBourne
added a commit
that referenced
this issue
Jul 17, 2024
This pull request addresses issue #41 by implementing a new feature in Pyccel that allows users to define a custom device **Commit Summary** - Adding handler for custom device and its code generation. - Adding test --------- Co-authored-by: EmilyBourne <louise.bourne@gmail.com>
EmilyBourne
added a commit
that referenced
this issue
Jul 19, 2024
This pull request addresses issue #41 by implementing a new feature in Pyccel that allows users to define a custom device **Commit Summary** - Adding handler for custom device and its code generation. - Adding test --------- Co-authored-by: EmilyBourne <louise.bourne@gmail.com>
EmilyBourne
added a commit
that referenced
this issue
Jul 26, 2024
This pull request addresses issue #41 by implementing a new feature in Pyccel that allows users to define a custom device **Commit Summary** - Adding handler for custom device and its code generation. - Adding test --------- Co-authored-by: EmilyBourne <louise.bourne@gmail.com>
EmilyBourne
added a commit
that referenced
this issue
Aug 29, 2024
This pull request addresses issue #41 by implementing a new feature in Pyccel that allows users to define a custom device **Commit Summary** - Adding handler for custom device and its code generation. - Adding test --------- Co-authored-by: EmilyBourne <louise.bourne@gmail.com>
EmilyBourne
added a commit
that referenced
this issue
Sep 3, 2024
This pull request addresses issue #41 by implementing a new feature in Pyccel that allows users to define a custom device **Commit Summary** - Adding handler for custom device and its code generation. - Adding test --------- Co-authored-by: EmilyBourne <louise.bourne@gmail.com>
EmilyBourne
added a commit
that referenced
this issue
Sep 25, 2024
This pull request addresses issue #41 by implementing a new feature in Pyccel that allows users to define a custom device **Commit Summary** - Adding handler for custom device and its code generation. - Adding test --------- Co-authored-by: EmilyBourne <louise.bourne@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description:
Implement support for defining and using custom device functions in Pyccel, analogous to Numba's device functions. This feature will allow functions to be executed on the GPU, callable from kernels or other device functions but not from host code.
Implementation Steps:
@device
decorator for device function definition.Read more:
https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html?highlight=__device__#device
Example Usage:
Pyccel Code:
Expected CUDA Code:
The text was updated successfully, but these errors were encountered: