-
Notifications
You must be signed in to change notification settings - Fork 787
[Driver][FPGA][SYCL] Add specific timing diagnostic for FPGA AOT #3965
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 all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
63c7bf4
[Driver][FPGA][SYCL] Add specific timing diagnostic for FPGA AOT
mdtoguchi b1ff52f
Add test for special aoc return code
mdtoguchi 5e59a29
Adjust behaviors for review comments
mdtoguchi b2d4f67
Add test to verify return code from llvm-foreach run tool is retained
mdtoguchi 3be3601
clang format
mdtoguchi dc7bf2f
restore comment for addDiagForErrorCode
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
## Simple aoc replacement script that returns '42' that is used to test | ||
## special return code processing for FPGA AOT. | ||
|
||
while [[ $# -gt 0 ]] ; do | ||
opt="$1" | ||
case $opt in | ||
-o) | ||
shift | ||
OUTFILE=$1 | ||
;; | ||
*) | ||
shift | ||
;; | ||
esac | ||
done | ||
|
||
if [ "$OUTFILE" != "" ] ; then | ||
echo "dummy file contents" > $OUTFILE | ||
fi | ||
|
||
exit 42 |
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,15 @@ | ||
// REQUIRES: system-linux | ||
|
||
/// Tests behavior with aoc -fintelpga. | ||
/// Uses a dummy aoc which returns '42' to make sure we properly emit a | ||
/// diagnostic and also do not stop compilation | ||
// RUN: env PATH=%S/Inputs/SYCL:$PATH \ | ||
// RUN: not %clangxx -fsycl -fintelfpga -Xshardware %s -v 2>&1 \ | ||
// RUN: | FileCheck %s -check-prefix ERROR_OUTPUT | ||
// ERROR_OUTPUT: ld{{.*}} -o a.out | ||
// ERROR_OUTPUT: The FPGA image generated during this compile contains timing violations | ||
|
||
int main() | ||
{ | ||
return 0; | ||
} |
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,23 @@ | ||
// REQUIRES: system-linux | ||
// Test that the return value from the called tool is retained. | ||
// Runs a script within a script so we can retain the return code without | ||
// the testing infrastructure getting in the way. | ||
|
||
// RUN: echo 'Content of first file' > %t1.tgt | ||
// RUN: echo 'Content of second file' > %t2.tgt | ||
// RUN: echo "%t1.tgt" > %t.list | ||
// RUN: echo "%t2.tgt" >> %t.list | ||
|
||
// RUN: echo "#!/bin/sh" > %t.sh | ||
// RUN: echo "cat \$1" >> %t.sh | ||
// RUN: echo "exit 21" >> %t.sh | ||
// RUN: chmod 777 %t.sh | ||
// RUN: echo "#!/bin/sh" > %t2.sh | ||
// RUN: echo "llvm-foreach --in-replace=\"{}\" --in-file-list=%t.list -- %t.sh \"{}\" > %t.res" >> %t2.sh | ||
// RUN: echo "echo \$? >> %t.res" >> %t2.sh | ||
// RUN: chmod 777 %t2.sh | ||
// RUN: %t2.sh | ||
// RUN: FileCheck < %t.res %s | ||
// CHECK: Content of first file | ||
// CHECK: Content of second file | ||
// CHECK: 21 |
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.