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

[SYCL][COMPAT] Move clashing functions into anonymous namespace #15446

Merged
merged 4 commits into from
Oct 16, 2024

Conversation

joeatodd
Copy link
Contributor

@joeatodd joeatodd commented Sep 19, 2024

Some syclcompat:: functions clash with global namespace (C-style) functions because of Argument Dependent Lookup.

These are:

  • memcpy
  • memset
  • free
  • fill

To prevent ADL from finding these functions, they have been moved into an anonymous namespace.

Some syclcompat:: functions clash with global namespace (C-style)
functions because of Argument Dependent Lookup.

These are:
 - memcpy
 - memset
 - free

To prevent ADL from finding syclcompat:: funcs, they have beeen moved
into an anonymous namespace.
Malloc doesn't belong in the anonymous namespace
@Alcpz
Copy link
Contributor

Alcpz commented Sep 20, 2024

Nit: I'm not entirely certain what's our policy with headers (Licence etc.) for new files.

Other than that LGTM

@Alcpz Alcpz added the syclcompat Issues related to SYCLcompat label Oct 1, 2024
@joeatodd
Copy link
Contributor Author

@intel/llvm-gatekeepers this is ready to merge 🙏

@martygrant martygrant merged commit 5f6af0b into intel:sycl Oct 16, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
syclcompat Issues related to SYCLcompat
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants