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] Fix conflicting visibility attributes #1571

Merged

Conversation

alexbatashev
Copy link
Contributor

@alexbatashev alexbatashev commented Apr 22, 2020

inline implies internal linkage, when __SYCL_EXPORT sets external linkage. These attributes can't co-exist. Remove __SYCL_EXPORT for symbols that are supposed to be internal.

Signed-off-by: Alexander Batashev alexander.batashev@intel.com

Signed-off-by: Alexander Batashev <alexander.batashev@intel.com>
Signed-off-by: Alexander Batashev <alexander.batashev@intel.com>
@s-kanaev
Copy link
Contributor

@alexbatashev Please, describe the problem eliminated by this patch in patch description.

@alexbatashev
Copy link
Contributor Author

@alexbatashev Please, describe the problem eliminated by this patch in patch description.

Done

@s-kanaev
Copy link
Contributor

inline implies internal linkage, when __SYCL_EXPORT sets external linkage. These attributes can't co-exist. Remove __SYCL_EXPORT for symbols that are supposed to be internal.

Were these symbols visible when both modifiers where applied?

Copy link
Contributor

@s-kanaev s-kanaev left a comment

Choose a reason for hiding this comment

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

LGTM

@alexbatashev
Copy link
Contributor Author

inline implies internal linkage, when __SYCL_EXPORT sets external linkage. These attributes can't co-exist. Remove __SYCL_EXPORT for symbols that are supposed to be internal.

Were these symbols visible when both modifiers where applied?

I'm not sure. But it caused compile errors on some configurations.

@bader bader merged commit 8445ee8 into intel:sycl Apr 22, 2020
alexbatashev pushed a commit to alexbatashev/llvm that referenced this pull request Apr 29, 2020
…versioning

* origin/sycl:
  [XPTI][Framework] Reference implementation of the Xpti framework to be used with instrumentation in SYCL (intel#1557)
  [SYCL] Initial ABI checks implementation (intel#1528)
  [SYCL] Support connection with multiple plugins (intel#1490)
  [SYCL] Add a new header file with the reduction class definition (intel#1558)
  [SYCL] Add test for SYCL kernels with accessor and spec constant (intel#1536)
  [SYCL][CUDA] Move interop tests (intel#1570)
  [Driver][SYCL] Remove COFF object format designator for Windows device compiles (intel#1574)
  [SYCL] Fix conflicting visibility attributes (intel#1571)
  [SYCL][DOC] Update the SYCL Runtime Interface document with design details (intel#680)
  [SYCL] Improve image accessors support on a host device (intel#1502)
  [SYCL] Make queue's non-USM event ownership temporary (intel#1561)
  [SYCL] Added support of rounding modes for non-host devices (intel#1463)
  [SYCL] SemaSYCL significant refactoring (intel#1517)
  [SYCL] Support 0-dim accessor in handler::copy(accessor, accessor) (intel#1551)
@alexbatashev alexbatashev deleted the private/abatashe/fix_conflicting_attributes branch July 28, 2021 06:44
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.

4 participants