Skip to content

[SYCL] Move internal headers to source dir #1136

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

Merged
merged 28 commits into from
Feb 21, 2020

Conversation

alexbatashev
Copy link
Contributor

@alexbatashev alexbatashev commented Feb 16, 2020

Move internal headers from include/CL/sycl to source directory to prevent implementation details leak to user application and enforce stable ABI.

A few more changes were applied to make the movement possible:

  • addHostAccessorAndWait functions in accessor to avoid calls to RT internals from header file
  • Move getImageInfo function to cpp
  • Move buffer size acquisition from buffer constructor to SYCLMemObjT cpp to avoid calls to PI
  • getPluginFromContext function in context
  • Standard containers replaced with SYCL variants in sycl_mem_obj_i.hpp. Unique ptr replaced with shared
  • A few implementations moved from queue.hpp to queue.cpp
  • Some LIT tests temporarily include implementaion specific headers. They will be converted to unit tests later.
  • clang-format applied

Signed-off-by: Alexander Batashev [email protected]

bader
bader previously requested changes Feb 17, 2020
Alexander Batashev added 22 commits February 18, 2020 16:46
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
@alexbatashev alexbatashev force-pushed the private/abatashe/move_int_headers branch from 8c983e5 to 59325ac Compare February 18, 2020 14:47
@bader
Copy link
Contributor

bader commented Feb 18, 2020

Please, resolve merge conflicts.

…_int_headers

* origin/sycl:
  [SYCL] Added CTS test config (intel#1063)
  [SYCL] Implement check-sycl-deploy target (intel#1142)
Signed-off-by: Alexander Batashev <[email protected]>
@alexbatashev
Copy link
Contributor Author

Please, resolve merge conflicts.

Done.

Alexander Batashev added 2 commits February 19, 2020 12:42
@@ -16,7 +16,6 @@
#include <CL/sycl/detail/generic_type_traits.hpp>
#include <CL/sycl/detail/image_accessor_util.hpp>
#include <CL/sycl/detail/image_ocl_types.hpp>
#include <CL/sycl/detail/queue_impl.hpp>
Copy link
Contributor

Choose a reason for hiding this comment

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

I see accessor_impl is still included here. Do you plan to leave it in public headers?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@romanovvlad romanovvlad Feb 20, 2020

Choose a reason for hiding this comment

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

Let's move at least AccessorImplHost to the private headers in a separate patch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@romanovvlad I'll do it as a separate patch.

Alexander Batashev added 2 commits February 20, 2020 10:08
…_int_headers

* origin/sycl:
  [SYCL] Improve the error mechanism of llvm-no-spir-kernel (intel#1068)
Signed-off-by: Alexander Batashev <[email protected]>
@bader
Copy link
Contributor

bader commented Feb 20, 2020

@alexbatashev, please, fix failed/pending jobs.

@alexbatashev
Copy link
Contributor Author

@alexbatashev, please, fix failed/pending jobs.

These are assert and opencl_interop. I restarted tests, hopefully, they won't fail me next time.

@romanovvlad romanovvlad merged commit 84e0657 into intel:sycl Feb 21, 2020
alexbatashev pushed a commit to alexbatashev/llvm that referenced this pull request Feb 25, 2020
…ages_docs

* origin/sycl: (1092 commits)
  [CI] Add clang-format checker to pre-commit checks (intel#1163)
  [SYCL][CUDA] Initial CUDA backend support (intel#1091)
  [USM] Align OpenCL USM extension header with the specification (intel#1162)
  [SYCL][NFC] Fix unreferenced variable warning (intel#1158)
  [SYCL] Fix __spirv_GroupBroadcast overloads (intel#1152)
  [SYCL] Add llvm/Demangle link dependency for llvm-no-spir-kernel (intel#1156)
  [SYCL] LowerWGScope pass should not be skipped when -O0 is used
  [SYCL][Doc][USM] Add refactored pointer and device queries to USM spec (intel#1118)
  [SYCL] Update the kernel parameter rule to is-trivially-copy-construc… (intel#1144)
  [SYCL] Move internal headers to source dir (intel#1136)
  [SYCL] Forbid declaration of non-const static variables inside kernels (intel#1141)
  [SYCL][NFC] Remove idle space (intel#1148)
  [SYCL] Improve the error mechanism of llvm-no-spir-kernel (intel#1068)
  [SYCL] Added CTS test config (intel#1063)
  [SYCL] Implement check-sycl-deploy target (intel#1142)
  [SYCL] Preserve original message and code of kernel/program build result (intel#1108)
  [SYCL] Fix LIT after LLVM change in community
  Translate LLVM's cmpxchg instruction to SPIR-V
  Add volatile qualifier for atom_ builtins
  Fix -Wunused-variable warnings
  ...
@alexbatashev alexbatashev deleted the private/abatashe/move_int_headers branch September 17, 2021 06:45
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.

3 participants