Skip to content

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