This repository was archived by the owner on Mar 28, 2023. It is now read-only.
forked from llvm/llvm-test-suite
-
Notifications
You must be signed in to change notification settings - Fork 130
Fix InvokeSimd simd_size and call_vadd_1d_loop_naive tests #1602
Merged
v-klochkov
merged 2 commits into
intel:intel
from
fveselov:invoke_simd-fix_simd_size_tests
Feb 17, 2023
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
19 changes: 0 additions & 19 deletions
19
SYCL/InvokeSimd/Spec/simd_size/simd16_ImplicitSubgroup.cpp
This file was deleted.
Oops, something went wrong.
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
20 changes: 0 additions & 20 deletions
20
SYCL/InvokeSimd/Spec/simd_size/simd32_ImplicitSubgroup.cpp
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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 was deleted.
Oops, something went wrong.
File renamed without changes.
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,54 @@ | ||
// TODO: enable on Windows once driver is ready | ||
// REQUIRES: gpu && linux | ||
// UNSUPPORTED: cuda || hip | ||
// | ||
// TODO: enable when Jira ticket resolved | ||
// XFAIL: gpu | ||
// | ||
// Check that full compilation works: | ||
// RUN: %clangxx -fsycl -fno-sycl-device-code-split-esimd -Xclang -fsycl-allow-func-ptr %s -o %t.out | FileCheck %s | ||
|
||
/* Tests invoke_simd support in the compiler/headers | ||
* The test checks that compiler emits a meaningful and user friendly error message | ||
* when the target function of invoke_simd has arguments or returns of simd<T,N> or | ||
* simd_mask<T,N> type and N is not equal to subgroup size. | ||
*/ | ||
|
||
#include "Inputs/common.hpp" | ||
|
||
int main(void) { | ||
auto q = queue{gpu_selector_v}; | ||
auto dev = q.get_device(); | ||
std::cout << "Running on " << dev.get_info<sycl::info::device::name>() | ||
<< "\n"; | ||
bool passed = true; | ||
|
||
// TODO: exact error message is a subject to future changes | ||
|
||
// simd_size 8 | ||
passed &= test<4, 8>(q); | ||
// CHECK: {{.*}}error: Kernel subgroup size (8) does not match size of invoke_simd return type (4){{.*}} | ||
passed &= test<16, 8>(q); | ||
// CHECK: {{.*}}error: Kernel subgroup size (8) does not match size of invoke_simd return type (16){{.*}} | ||
passed &= test<32, 8>(q); | ||
// CHECK: {{.*}}error: Kernel subgroup size (8) does not match size of invoke_simd return type (32){{.*}} | ||
|
||
// simd_size 16 | ||
passed &= test<4, 16>(q); | ||
// CHECK: {{.*}}error: Kernel subgroup size (16) does not match size of invoke_simd return type (4){{.*}} | ||
passed &= test<8, 16>(q); | ||
// CHECK: {{.*}}error: Kernel subgroup size (16) does not match size of invoke_simd return type (8){{.*}} | ||
sarnex marked this conversation as resolved.
Show resolved
Hide resolved
|
||
passed &= test<32, 16>(q); | ||
// CHECK: {{.*}}error: Kernel subgroup size (16) does not match size of invoke_simd return type (32){{.*}} | ||
|
||
// simd_size 32 | ||
passed &= test<4, 32>(q); | ||
// CHECK: {{.*}}error: Kernel subgroup size (32) does not match size of invoke_simd return type (4){{.*}} | ||
passed &= test<8, 32>(q); | ||
// CHECK: {{.*}}error: Kernel subgroup size (32) does not match size of invoke_simd return type (8){{.*}} | ||
passed &= test<16, 32>(q); | ||
// CHECK: {{.*}}error: Kernel subgroup size (32) does not match size of invoke_simd return type (16){{.*}} | ||
|
||
std::cout << (passed ? "Passed\n" : "FAILED\n"); | ||
return passed ? 0 : 1; | ||
} |
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.