File tree Expand file tree Collapse file tree 5 files changed +38
-20
lines changed Expand file tree Collapse file tree 5 files changed +38
-20
lines changed Original file line number Diff line number Diff line change 11BasedOnStyle : LLVM
2+
3+ # Preferred indentions of preprocessor statements.
4+ IndentPPDirectives : AfterHash
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ libsycl runtime library and headers require C++17 support or higher.
99
1010### How to use libsycl with Clang
1111
12- TBD
12+ TODO
1313
1414#### How to build
1515
16- TBD
16+ TODO
1717
1818# License
1919
Original file line number Diff line number Diff line change 1+ =====================
2+ SYCL runtime implementation
3+ =====================
4+
5+ .. contents ::
6+ :local:
7+
18.. _index :
29
310Current Status
4- ==============
11+ ========
512
613The implementation is in the very early stages of upstreaming. The first milestone is to get
714support for a simple SYCL application with device code using Unified Shared Memory:
@@ -46,6 +53,9 @@ This requires at least partial support of the following functionality on the lib
4653 * Unified shared memory allocation/deallocation
4754 * Program manager, an internal component for retrieving and using device images from the multi-architectural binaries
4855
56+ Builds steps
57+ ========
58+
4959To build LLVM with libsycl runtime enabled the following script can be used.
5060
5161.. code-block :: console
Original file line number Diff line number Diff line change 2828
2929#ifndef __SYCL_DEVICE_ONLY__
3030
31- #ifndef _LIBSYCL_EXPORT
32- #ifdef _WIN32
31+ # ifndef _LIBSYCL_EXPORT
32+ # ifdef _WIN32
3333
34- #define _LIBSYCL_DLL_LOCAL
34+ # define _LIBSYCL_DLL_LOCAL
3535
36- #if _LIBSYCL_BUILD_SYCL_DLL
37- #define _LIBSYCL_EXPORT __declspec (dllexport)
38- #else
39- #define _LIBSYCL_EXPORT __declspec (dllimport)
40- #endif // _LIBSYCL_BUILD_SYCL_DLL
36+ # if _LIBSYCL_BUILD_SYCL_DLL
37+ # define _LIBSYCL_EXPORT __declspec (dllexport)
38+ # else
39+ # define _LIBSYCL_EXPORT __declspec (dllimport)
40+ # endif // _LIBSYCL_BUILD_SYCL_DLL
4141
42- #else // _WIN32
42+ # else // _WIN32
4343
44- #define _LIBSYCL_DLL_LOCAL __attribute__ (( visibility(" hidden" )))
45- #define _LIBSYCL_EXPORT __attribute__ (( visibility(" default" )))
44+ # define _LIBSYCL_DLL_LOCAL [[gnu:: visibility(" hidden" )]]
45+ # define _LIBSYCL_EXPORT [[gnu:: visibility(" default" )]]
4646
47- #endif // _WIN32
48- #endif // _LIBSYCL_EXPORT
47+ # endif // _WIN32
48+ # endif // _LIBSYCL_EXPORT
4949
5050#else // __SYCL_DEVICE_ONLY__
5151
52- #ifndef _LIBSYCL_EXPORT
53- #define _LIBSYCL_EXPORT
54- #define _LIBSYCL_DLL_LOCAL
55- #endif
52+ # ifndef _LIBSYCL_EXPORT
53+ # define _LIBSYCL_EXPORT
54+ # define _LIBSYCL_DLL_LOCAL
55+ # endif
5656
5757#endif // __SYCL_DEVICE_ONLY__
5858
Original file line number Diff line number Diff line change 55// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66//
77// ===----------------------------------------------------------------------===//
8+ // /
9+ // / \file
10+ // / This file is a SYCL2020 standard header file.
11+ // /
12+ // ===----------------------------------------------------------------------===//
813
914#ifndef _LIBSYCL_SYCL_HPP
1015#define _LIBSYCL_SYCL_HPP
You can’t perform that action at this time.
0 commit comments