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

[NFCI][SYCL] Introduce convertToOpenCLType helper #12674

Merged
merged 5 commits into from
Feb 12, 2024

Conversation

aelovikov-intel
Copy link
Contributor

@aelovikov-intel aelovikov-intel commented Feb 9, 2024

This is probably just the first patch in a series of refactoring PRs I'm envisioning. Ultimate goal is to align this helper and sycl::detail::builtins::convert_arg from builtins_preview.hpp, possibly with the latter delegating to the former.

This is probably just the first patch in a series of refactoring PRs I'm
envisioning. Ultimate goal is to align this helper and
`sycl::detail::builtins::convert_arg` from `builtins_preview.hpp`,
possible with the latter delegating to the former.
#define __SYCL_EXTERN_IT3(Ret, prefix, call, Arg1, Arg2, Arg3)
#else
#define __FUNC_PREFIX_OCL sycl_host_
#define __FUNC_PREFIX_CORE sycl_host_
#define __SYCL_EXTERN_IT1(Ret, prefix, call, Arg) \
#define __SYCL_EXTERN_IT1(Ret, prefix, call, arg) \
using Arg = decltype(arg); \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Had to move those aliases here to avoid "unused type alias" warning/error for device compilation.

Copy link
Contributor

github-actions bot commented Feb 9, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

@aelovikov-intel aelovikov-intel merged commit 3ebffba into intel:sycl Feb 12, 2024
12 checks passed
@aelovikov-intel aelovikov-intel deleted the convert-to-ocl-helper branch February 12, 2024 18:38
aelovikov-intel added a commit to aelovikov-intel/llvm that referenced this pull request Feb 12, 2024
Continuation of refactoring series initiated in
intel#12674.
aelovikov-intel added a commit to aelovikov-intel/llvm that referenced this pull request Feb 12, 2024
Follow-up for intel#12674, updating places
where `ConvertToOpenCLType_t` was used with a plain cast instead of
`convertDataToType`.

Not touching `multi_ptr` related uses just yet.
aelovikov-intel added a commit that referenced this pull request Feb 12, 2024
Continuation of refactoring series initiated in
#12674.
aelovikov-intel added a commit that referenced this pull request Feb 13, 2024
Follow-up for #12674, updating places
where `ConvertToOpenCLType_t` was used with a plain cast instead of
`convertDataToType`.

Not touching `multi_ptr` related uses just yet.
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.

2 participants