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

[SYCLomatic] Add support for two-way type-cast from dpct::kernel_library and dpct::kernel_function to uint64_t conversion #2606

Merged
merged 8 commits into from
Jan 10, 2025

Conversation

the-slow-one
Copy link
Collaborator

@the-slow-one the-slow-one commented Jan 8, 2025

The CUmodule is a pointer to a structure which results in a valid conversion from uint64_t to CUmodule instance. Also, the same can be said about the CUfunction.

This PR allows the "bi-directional" type-cast for dpct::kernel_library and dpct::kernel_function.

Signed-off-by: Deepak Raj H R

@the-slow-one the-slow-one requested a review from a team as a code owner January 8, 2025 05:43
Copy link
Contributor

@keryell keryell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good.
Please fix the typo on the library name in the commit message and PR title.

clang/runtime/dpct-rt/include/dpct/kernel.hpp Outdated Show resolved Hide resolved
@the-slow-one the-slow-one changed the title [SYCLomatic] Add support for dpct::kernel_libaray to u64 conversion [SYCLomatic] Add support for dpct::kernel_library to u64 conversion Jan 8, 2025
@the-slow-one the-slow-one changed the title [SYCLomatic] Add support for dpct::kernel_library to u64 conversion [SYCLomatic] Add support for two-way type-cast from dpct::kernel_library and dpct::kernel_function to u64 conversion Jan 8, 2025
@the-slow-one the-slow-one changed the title [SYCLomatic] Add support for two-way type-cast from dpct::kernel_library and dpct::kernel_function to u64 conversion [SYCLomatic] Add support for two-way type-cast from dpct::kernel_library and dpct::kernel_function to uint64_t conversion Jan 8, 2025
@zhimingwang36 zhimingwang36 merged commit 8b31cc7 into oneapi-src:SYCLomatic Jan 10, 2025
5 of 6 checks passed
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.

5 participants