Skip to content

Commit

Permalink
[SYCL][E2E] Add InlineAsm/lit.local.cfg to clean up REQUIRES/`UNS…
Browse files Browse the repository at this point in the history
…UPPORTED` (#16311)

All test in this folder use `REQUIRES: gpu,linux` and `UNSUPPORTED:
cuda, hip`. So using a lit.local.cfg file makes sense here.
  • Loading branch information
ayylol authored Jan 28, 2025
1 parent f7fc46d commit 8324bb2
Show file tree
Hide file tree
Showing 36 changed files with 54 additions and 113 deletions.
5 changes: 2 additions & 3 deletions sycl/test-e2e/InlineAsm/Negative/asm_bad_opcode.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// UNSUPPORTED: cuda || hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include "../include/asmhelper.h"
#include "include/asmhelper.h"
#include <sycl/detail/core.hpp>

struct KernelFunctor {
Expand Down
5 changes: 2 additions & 3 deletions sycl/test-e2e/InlineAsm/Negative/asm_bad_operand_syntax.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// UNSUPPORTED: cuda || hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include "../include/asmhelper.h"
#include "include/asmhelper.h"
#include <sycl/detail/core.hpp>

struct KernelFunctor {
Expand Down
5 changes: 2 additions & 3 deletions sycl/test-e2e/InlineAsm/Negative/asm_duplicate_label.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// UNSUPPORTED: cuda || hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include "../include/asmhelper.h"
#include "include/asmhelper.h"
#include <sycl/detail/core.hpp>

struct KernelFunctor {
Expand Down
5 changes: 2 additions & 3 deletions sycl/test-e2e/InlineAsm/Negative/asm_illegal_exec_size.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// UNSUPPORTED: cuda || hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include "../include/asmhelper.h"
#include "include/asmhelper.h"
#include <sycl/detail/core.hpp>

struct KernelFunctor {
Expand Down
5 changes: 2 additions & 3 deletions sycl/test-e2e/InlineAsm/Negative/asm_missing_label.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// UNSUPPORTED: cuda || hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include "../include/asmhelper.h"
#include "include/asmhelper.h"
#include <sycl/detail/core.hpp>

struct KernelFunctor {
Expand Down
5 changes: 2 additions & 3 deletions sycl/test-e2e/InlineAsm/Negative/asm_missing_region.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// UNSUPPORTED: cuda || hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include "../include/asmhelper.h"
#include "include/asmhelper.h"
#include <sycl/detail/core.hpp>

struct KernelFunctor {
Expand Down
5 changes: 2 additions & 3 deletions sycl/test-e2e/InlineAsm/Negative/asm_simple.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// UNSUPPORTED: cuda || hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include "../include/asmhelper.h"
#include "include/asmhelper.h"
#include <sycl/detail/core.hpp>

struct KernelFunctor {
Expand Down
5 changes: 2 additions & 3 deletions sycl/test-e2e/InlineAsm/Negative/asm_undefined_decl.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// UNSUPPORTED: cuda || hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include "../include/asmhelper.h"
#include "include/asmhelper.h"
#include <sycl/detail/core.hpp>

struct KernelFunctor {
Expand Down
5 changes: 2 additions & 3 deletions sycl/test-e2e/InlineAsm/Negative/asm_undefined_pred.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// UNSUPPORTED: cuda || hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include "../include/asmhelper.h"
#include "include/asmhelper.h"
#include <sycl/detail/core.hpp>

struct KernelFunctor {
Expand Down
5 changes: 2 additions & 3 deletions sycl/test-e2e/InlineAsm/Negative/asm_wrong_declare.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// UNSUPPORTED: cuda || hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include "../include/asmhelper.h"
#include "include/asmhelper.h"
#include <sycl/detail/core.hpp>

struct KernelFunctor {
Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_16_empty.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_16_matrix_mult.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda, hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_16_no_input_int.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda, hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_16_no_opts.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda, hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_8_empty.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda
// REQUIRES: gpu,linux,sg-8
// REQUIRES: sg-8
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_8_no_input_int.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda, hip
// REQUIRES: gpu,linux,sg-8
// REQUIRES: sg-8
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_arbitrary_ops_order.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda, hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_decl_in_scope.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda, hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_float_add.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda, hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_float_imm_arg.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda, hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_float_neg.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda, hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_if.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda, hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_imm_arg.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda, hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_loop.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda, hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_mul.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda, hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_multiple_instructions.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda || hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -DTO_PASS -o %t.out.pass
// RUN: %{run} %t.out.pass
// RUN: %{build} -o %t.out
Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_no_operands.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda, hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_no_output.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda || hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_plus_mod.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda || hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/asm_switch.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda || hip
// REQUIRES: gpu,linux,sg-16
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/letter_example.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda, hip
// REQUIRES: gpu,linux,sg-16,aspect-usm_shared_allocations
// REQUIRES: sg-16,aspect-usm_shared_allocations
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
9 changes: 9 additions & 0 deletions sycl/test-e2e/InlineAsm/lit.local.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
config.required_features += ['gpu', 'linux', 'target-spir']

config.substitutions.append(("%helper-includes", "-I {}".format(os.path.dirname(os.path.abspath(__file__)))))
original_clangxx=""
for substitution in config.substitutions:
if substitution[0] == "%clangxx":
original_clangxx=substitution[1]
config.substitutions.insert(0,
("%clangxx", original_clangxx + ' %helper-includes '))
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/malloc_shared_32.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda, hip
// REQUIRES: gpu,linux,sg-32,aspect-usm_shared_allocations
// REQUIRES: sg-32,aspect-usm_shared_allocations
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/malloc_shared_in_out_dif.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda, hip
// REQUIRES: gpu,linux,sg-16,aspect-usm_shared_allocations
// REQUIRES: sg-16,aspect-usm_shared_allocations
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/InlineAsm/malloc_shared_no_input.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// UNSUPPORTED: cuda, hip
// REQUIRES: gpu,linux,sg-16,aspect-usm_shared_allocations
// REQUIRES: sg-16,aspect-usm_shared_allocations
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
36 changes: 1 addition & 35 deletions sycl/test/e2e_test_requirements/no-unsupported-without-info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
// tests to match the required format and in that case you should just update
// (i.e. reduce) the number and the list below.
//
// NUMBER-OF-UNSUPPORTED-WITHOUT-INFO: 409
// NUMBER-OF-UNSUPPORTED-WITHOUT-INFO: 375
//
// List of improperly UNSUPPORTED tests.
// Remove the CHECK once the test has been properly UNSUPPORTED.
Expand Down Expand Up @@ -233,40 +233,6 @@
// CHECK-NEXT: HierPar/hier_par_wgscope.cpp
// CHECK-NEXT: HostInteropTask/host-task-failure.cpp
// CHECK-NEXT: HostInteropTask/interop-task.cpp
// CHECK-NEXT: InlineAsm/Negative/asm_bad_opcode.cpp
// CHECK-NEXT: InlineAsm/Negative/asm_bad_operand_syntax.cpp
// CHECK-NEXT: InlineAsm/Negative/asm_duplicate_label.cpp
// CHECK-NEXT: InlineAsm/Negative/asm_illegal_exec_size.cpp
// CHECK-NEXT: InlineAsm/Negative/asm_missing_label.cpp
// CHECK-NEXT: InlineAsm/Negative/asm_missing_region.cpp
// CHECK-NEXT: InlineAsm/Negative/asm_simple.cpp
// CHECK-NEXT: InlineAsm/Negative/asm_undefined_decl.cpp
// CHECK-NEXT: InlineAsm/Negative/asm_undefined_pred.cpp
// CHECK-NEXT: InlineAsm/Negative/asm_wrong_declare.cpp
// CHECK-NEXT: InlineAsm/asm_16_empty.cpp
// CHECK-NEXT: InlineAsm/asm_16_matrix_mult.cpp
// CHECK-NEXT: InlineAsm/asm_16_no_input_int.cpp
// CHECK-NEXT: InlineAsm/asm_16_no_opts.cpp
// CHECK-NEXT: InlineAsm/asm_8_empty.cpp
// CHECK-NEXT: InlineAsm/asm_8_no_input_int.cpp
// CHECK-NEXT: InlineAsm/asm_arbitrary_ops_order.cpp
// CHECK-NEXT: InlineAsm/asm_decl_in_scope.cpp
// CHECK-NEXT: InlineAsm/asm_float_add.cpp
// CHECK-NEXT: InlineAsm/asm_float_imm_arg.cpp
// CHECK-NEXT: InlineAsm/asm_float_neg.cpp
// CHECK-NEXT: InlineAsm/asm_if.cpp
// CHECK-NEXT: InlineAsm/asm_imm_arg.cpp
// CHECK-NEXT: InlineAsm/asm_loop.cpp
// CHECK-NEXT: InlineAsm/asm_mul.cpp
// CHECK-NEXT: InlineAsm/asm_multiple_instructions.cpp
// CHECK-NEXT: InlineAsm/asm_no_operands.cpp
// CHECK-NEXT: InlineAsm/asm_no_output.cpp
// CHECK-NEXT: InlineAsm/asm_plus_mod.cpp
// CHECK-NEXT: InlineAsm/asm_switch.cpp
// CHECK-NEXT: InlineAsm/letter_example.cpp
// CHECK-NEXT: InlineAsm/malloc_shared_32.cpp
// CHECK-NEXT: InlineAsm/malloc_shared_in_out_dif.cpp
// CHECK-NEXT: InlineAsm/malloc_shared_no_input.cpp
// CHECK-NEXT: InvokeSimd/Feature/ImplicitSubgroup/SPMD_invoke_ESIMD_external.cpp
// CHECK-NEXT: InvokeSimd/Feature/ImplicitSubgroup/popcnt.cpp
// CHECK-NEXT: InvokeSimd/Feature/popcnt.cpp
Expand Down

0 comments on commit 8324bb2

Please sign in to comment.