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] Do not export utility methods from SYCLMemObjT #1768

Merged
merged 2 commits into from
May 31, 2020

Conversation

alexbatashev
Copy link
Contributor

@alexbatashev alexbatashev commented May 28, 2020

With some configurations (for example, when building debug variant), compiler may export unnecessary functions. To avoid such cases in SYCLMemObjT, explicitly mark functions, that are always available to user in headers, as DLL_LOCAL.

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

Signed-off-by: Alexander Batashev <alexander.batashev@intel.com>
@alexbatashev alexbatashev requested review from bader and romanovvlad May 28, 2020 08:08
@alexbatashev alexbatashev requested a review from a team as a code owner May 28, 2020 08:08
@romanovvlad
Copy link
Contributor

@alexbatashev Please add the reason why you are doing it to the commit message(or provide new one in the comments).

@bader
Copy link
Contributor

bader commented May 29, 2020

@alexbatashev, fix internal test failure.

@bader bader merged commit f86b562 into intel:sycl May 31, 2020
alexbatashev pushed a commit to alexbatashev/llvm that referenced this pull request Jun 2, 2020
* upstream/sycl:
  [SYCL] Handle KernelName templated using type with enum template argument (intel#1780)
  [SYCL] Fix KernelNameInfo generated for empty template parameter pack (intel#1775)
  [SYCL] Do not export utility methods from SYCLMemObjT (intel#1768)
  [Driver][SYCL] Fix processing when using -fsycl-link (intel#1765)
  [SYCL][NFC] Remove outdated confusing comment (intel#1779)
  [SYCL][NFC] Wrap classes in .cpp into a namespace to disable external linkage. (intel#1776)
  [SYCL][CUDA] Fixes CUDA unit tests that uses SYCL directly (intel#1763)
  [SYCL][Doc] Fix default device selection rules doc (intel#1769)
  [SYCL][CUDA] Remove pi Event Callback implementation (intel#1735)
  [SYCL] Throw exception if range/offset of kernel execution exceeds INT_MAX (intel#1713)
  [SYCL-PTX] Add intermediate layer to libclc to ease type management (intel#1712)
@alexbatashev alexbatashev deleted the hide_internals_syclmemobjt branch July 28, 2021 06:44
Fznamznon pushed a commit to Fznamznon/llvm that referenced this pull request Dec 14, 2022
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