-
Notifications
You must be signed in to change notification settings - Fork 769
[SYCL] Add support for assuming SYCL queries fit in int #2215
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
bader
merged 11 commits into
intel:sycl
from
mdtoguchi:private/mdtoguchi/sycl-id-queries-in-int
Aug 13, 2020
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b0e1a15
[SYCL] Add support for assuming SYCL queries fit in int
mdtoguchi 3911bb1
[NFC] update test to use -fsycl-id-queries-fit-in-int
mdtoguchi 6bdd0c7
Update handler to address compile problem and also update text to mat…
mdtoguchi f2010db
[SYCL] Modify default to be off
mdtoguchi 46c33ef
[NFC] update test to use -fsycl-id-queries-fit-in-int
mdtoguchi 2a799e4
[NFC] Adjust test, needs the option to be passed via -Xclang
mdtoguchi 5fada99
[Driver][SYCL] Set id_queries for both host and device side
mdtoguchi ec18527
[NFC] Update range test text usage to use option name
mdtoguchi 47e2a02
[NFC] Fix whitespace in messaging
mdtoguchi 82a3948
[NFC] fix description spelling problems
mdtoguchi fe2ab8c
[SYCL] update default value to off
mdtoguchi 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
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
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
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 |
---|---|---|
@@ -1,17 +1,24 @@ | ||
// RUN: %clang_cc1 %s -E -dM | FileCheck %s | ||
// RUN: %clang_cc1 %s -fsycl -fsycl-is-host -sycl-std=2017 -E -dM | FileCheck --check-prefix=CHECK-SYCL-STD %s | ||
// RUN: %clang_cc1 %s -fsycl -fsycl-is-device -sycl-std=2017 -E -dM | FileCheck --check-prefix=CHECK-SYCL-STD %s | ||
// RUN: %clang_cc1 %s -fsycl -fsycl-is-device -sycl-std=1.2.1 -E -dM | FileCheck --check-prefix=CHECK-SYCL-STD %s | ||
// RUNx: %clang_cc1 %s -fsycl -fsycl-is-device -E -dM -fms-compatibility | FileCheck --check-prefix=CHECK-MSVC %s | ||
// RUN: %clang_cc1 %s -fsycl -fsycl-id-queries-fit-in-int -fsycl-is-host -sycl-std=2017 -E -dM | FileCheck --check-prefix=CHECK-SYCL-STD %s | ||
// RUN: %clang_cc1 %s -fsycl -fsycl-id-queries-fit-in-int -fsycl-is-device -sycl-std=2017 -E -dM | FileCheck --check-prefix=CHECK-SYCL-STD %s | ||
// RUN: %clang_cc1 %s -fsycl -fsycl-id-queries-fit-in-int -fsycl-is-device -sycl-std=1.2.1 -E -dM | FileCheck --check-prefix=CHECK-SYCL-STD-DEVICE %s | ||
// RUNx: %clang_cc1 %s -fsycl -fsycl-id-queries-fit-in-int -fsycl-is-device -E -dM -fms-compatibility | FileCheck --check-prefix=CHECK-MSVC %s | ||
// RUN: %clang_cc1 -fno-sycl-id-queries-fit-in-int %s -E -dM | FileCheck \ | ||
// RUN: --check-prefix=CHECK-NO-SYCL_FIT_IN_INT %s | ||
|
||
// CHECK-NOT:#define __SYCL_DEVICE_ONLY__ 1 | ||
// CHECK-NOT:#define SYCL_EXTERNAL | ||
// CHECK-NOT:#define CL_SYCL_LANGUAGE_VERSION 121 | ||
// CHECK-NOT:#define __SYCL_ID_QUERIES_FIT_IN_INT__ 1 | ||
|
||
// CHECK-SYCL-STD:#define CL_SYCL_LANGUAGE_VERSION 121 | ||
// CHECK-SYCL-STD:#define __SYCL_ID_QUERIES_FIT_IN_INT__ 1 | ||
|
||
// CHECK-SYCL:#define __SYCL_DEVICE_ONLY__ 1 | ||
// CHECK-SYCL:#define SYCL_EXTERNAL __attribute__((sycl_device)) | ||
elizabethandrews marked this conversation as resolved.
Show resolved
Hide resolved
|
||
// CHECK-SYCL-STD-DEVICE:#define __SYCL_DEVICE_ONLY__ 1 | ||
// CHECK-SYCL-STD-DEVICE:#define __SYCL_ID_QUERIES_FIT_IN_INT__ 1 | ||
|
||
// CHECK-MSVC-NOT: __GNUC__ | ||
// CHECK-MSVC-NOT: __STDC__ | ||
// CHECK-MSVC: #define __SYCL_ID_QUERIES_FIT_IN_INT__ 1 | ||
|
||
// CHECK-NO-SYCL_FIT_IN_INT-NOT:#define __SYCL_ID_QUERIES_FIT_IN_INT__ 1 |
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.