-
Notifications
You must be signed in to change notification settings - Fork 791
[SYCL] Implement sycl_khr_includes
extension
#20339
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
Open
AlexeySachkov
wants to merge
1
commit into
intel:sycl
Choose a base branch
from
AlexeySachkov:private/asachkov/sycl-khr-includes
base: sycl
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,4 @@ | |
#pragma once | ||
|
||
#define SYCL_IMPLEMENTATION_ONEAPI | ||
#define SYCL_FEATURE_SET_FULL | ||
#define SYCL_IMPLEMENTATION_INTEL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_ACCESSOR | ||
#define __SYCL_KHR_INCLUDES_ACCESSOR | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/accessor.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_ACCESSOR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_ATOMIC | ||
#define __SYCL_KHR_INCLUDES_ATOMIC | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/atomic_fence.hpp> | ||
#include <sycl/atomic_ref.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_ATOMIC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_BACKEND | ||
#define __SYCL_KHR_INCLUDES_BACKEND | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/backend.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_BACKEND |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_BIT | ||
#define __SYCL_KHR_INCLUDES_BIT | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/bit_cast.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_BIT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_BUFFER | ||
#define __SYCL_KHR_INCLUDES_BUFFER | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/buffer.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_BUFFER |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_BYTE | ||
#define __SYCL_KHR_INCLUDES_BYTE | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/aliases.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_BYTE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_CONTEXT | ||
#define __SYCL_KHR_INCLUDES_CONTEXT | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/context.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_CONTEXT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_DEVICE | ||
#define __SYCL_KHR_INCLUDES_DEVICE | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/aspects.hpp> | ||
#include <sycl/device.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_DEVICE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_EVENT | ||
#define __SYCL_KHR_INCLUDES_EVENT | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/event.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_EVENT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_EXCEPTION | ||
#define __SYCL_KHR_INCLUDES_EXCEPTION | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/exception.hpp> | ||
#include <sycl/exception_list.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_EXCEPTION |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_FUNCTIONAL | ||
#define __SYCL_KHR_INCLUDES_FUNCTIONAL | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/functional.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_FUNCTIONAL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_GROUP_ALGORITHMS | ||
#define __SYCL_KHR_INCLUDES_GROUP_ALGORITHMS | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/group_algorithm.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_GROUP_ALGORITHMS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_GROUPS | ||
#define __SYCL_KHR_INCLUDES_GROUPS | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/group.hpp> | ||
#include <sycl/group_algorithm.hpp> | ||
#include <sycl/group_barrier.hpp> | ||
#include <sycl/sub_group.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_GROUPS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_HALF | ||
#define __SYCL_KHR_INCLUDES_HALF | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/half_type.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_HALF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_HANDLER | ||
#define __SYCL_KHR_INCLUDES_HANDLER | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/handler.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_HANDLER |
17 changes: 17 additions & 0 deletions
17
sycl/include/sycl/khr/includes/hierarchical_parallelism.hpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_HIERARCHICAL_PARALLELISM | ||
#define __SYCL_KHR_INCLUDES_HIERARCHICAL_PARALLELISM | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/group.hpp> | ||
#include <sycl/h_item.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_HIERARCHICAL_PARALLELISM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
//==------------------ image --- SYCL images ------------------*- C++ -*---==// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_IMAGE | ||
#define __SYCL_KHR_INCLUDES_IMAGE | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/accessor_image.hpp> | ||
#include <sycl/image.hpp> | ||
#include <sycl/properties/image_properties.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_IMAGE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_INDEX_SPACE | ||
#define __SYCL_KHR_INCLUDES_INDEX_SPACE | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/id.hpp> | ||
#include <sycl/item.hpp> | ||
#include <sycl/nd_item.hpp> | ||
#include <sycl/nd_range.hpp> | ||
#include <sycl/range.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_INDEX_SPACE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_INTEROP_HANDLE | ||
#define __SYCL_KHR_INCLUDES_INTEROP_HANDLE | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/interop_handle.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_INTEROP_HANDLE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_KERNEL_BUNDLE | ||
#define __SYCL_KHR_INCLUDES_KERNEL_BUNDLE | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/kernel.hpp> | ||
#include <sycl/kernel_bundle.hpp> | ||
#include <sycl/specialization_id.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_KERNEL_BUNDLE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __SYCL_KHR_INCLUDES_KERNEL_HANDLER | ||
#define __SYCL_KHR_INCLUDES_KERNEL_HANDLER | ||
|
||
#include "version.hpp" | ||
|
||
#include <sycl/kernel_handler.hpp> | ||
|
||
#endif // __SYCL_KHR_INCLUDES_KERNEL_HANDLER |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it intentional change in copyright header?