-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Fix device code instrumentation #4615
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
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d23adc8
[SYCL] Unconditionally enable SPIR ITT annotations
48327b4
Merge remote-tracking branch 'intel/sycl' into instr-device-code
fe3becc
Add ITT device libs to the default linkage group
33d14eb
[SYCL] Skip analysis of ITT annotations for ESIMD intrinsics
62031ac
Also automatically link with the itt-stubs devicelib
656f462
Link ALL annotation device libraries. Even the so-called "user-wrappers"
ad89167
Return to explicit enabling of ITT annotations via CLI
cb0a1ea
Add ITT device libraries as "internal" when the ITT option is provided
bbb028c
Add tests for the preceding 2 commits
f9d4b5b
Merge remote-tracking branch 'intel/sycl' into instr-device-code
ba04b59
Fix FileCheck regexp for OS-dependent cases
47e77f2
Add a TODO for devicelib-related refactoring
657c7b6
Do not instrument ESIMD functions
fcbf00a
Change argument parsing logic & update test accordingly
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
/// Check that SPIR ITT instrumentation is disabled by default: | ||
// RUN: %clang -### %s 2>&1 \ | ||
// RUN: | FileCheck -check-prefix=CHECK-DEFAULT %s | ||
// CHECK-DEFAULT-NOT: "-fsycl-instrument-device-code" | ||
|
||
/// Check if "fsycl_instrument_device_code" is passed to -cc1: | ||
// RUN: %clang -### -fsycl-instrument-device-code %s 2>&1 \ | ||
// RUN: | FileCheck -check-prefix=CHECK-ENABLED %s | ||
// CHECK-ENABLED: "-cc1"{{.*}} "-fsycl-instrument-device-code" | ||
|
||
/// Check if "fsycl_instrument_device_code" usage with a non-spirv target | ||
/// results in an error. | ||
// RUN: %clang -### -fsycl-instrument-device-code --target=x86 %s 2>&1 | ||
// expected-error{{unsupported option '-fsycl-instrument-device-code' for target 'x86_64-unknown-linux-gnu'}} | ||
/// Check if -fsycl-instrument-device-code is passed to device-side -cc1: | ||
// RUN: %clangxx -fsycl -fsycl-targets=spir64 -### %s 2>&1 \ | ||
// RUN: | FileCheck -check-prefixes=CHECK-SPIRV,CHECK-HOST %s | ||
// RUN: %clangxx -fsycl -fsycl-targets=nvptx-nvidia-cuda -### %s 2>&1 \ | ||
// RUN: | FileCheck -check-prefix=CHECK-NONSPIRV %s | ||
// CHECK-SPIRV: "-cc1"{{.*}} "-fsycl-is-device"{{.*}} "-fsycl-instrument-device-code" | ||
// CHECK-HOST-NOT: "-cc1"{{.*}} "-fsycl-is-host"{{.*}} "-fsycl-instrument-device-code" | ||
// CHECK-NONSPIRV-NOT: "-fsycl-instrument-device-code" |
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.