Skip to content

Commit d83a37d

Browse files
committed
Add InlineAsm/IntelGPU test directory
1 parent 745d9b5 commit d83a37d

36 files changed

+21
-11
lines changed

sycl/test-e2e/InlineAsm/Negative/asm_bad_opcode.cpp renamed to sycl/test-e2e/InlineAsm/IntelGPU/Negative/asm_bad_opcode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %{build} -o %t.out
33
// RUN: %{run} %t.out
44

5-
#include "../include/asmhelper.h"
5+
#include "include/asmhelper.h"
66
#include <sycl/detail/core.hpp>
77

88
struct KernelFunctor {

sycl/test-e2e/InlineAsm/Negative/asm_bad_operand_syntax.cpp renamed to sycl/test-e2e/InlineAsm/IntelGPU/Negative/asm_bad_operand_syntax.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %{build} -o %t.out
33
// RUN: %{run} %t.out
44

5-
#include "../include/asmhelper.h"
5+
#include "include/asmhelper.h"
66
#include <sycl/detail/core.hpp>
77

88
struct KernelFunctor {

sycl/test-e2e/InlineAsm/Negative/asm_duplicate_label.cpp renamed to sycl/test-e2e/InlineAsm/IntelGPU/Negative/asm_duplicate_label.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %{build} -o %t.out
33
// RUN: %{run} %t.out
44

5-
#include "../include/asmhelper.h"
5+
#include "include/asmhelper.h"
66
#include <sycl/detail/core.hpp>
77

88
struct KernelFunctor {

sycl/test-e2e/InlineAsm/Negative/asm_illegal_exec_size.cpp renamed to sycl/test-e2e/InlineAsm/IntelGPU/Negative/asm_illegal_exec_size.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %{build} -o %t.out
33
// RUN: %{run} %t.out
44

5-
#include "../include/asmhelper.h"
5+
#include "include/asmhelper.h"
66
#include <sycl/detail/core.hpp>
77

88
struct KernelFunctor {

sycl/test-e2e/InlineAsm/Negative/asm_missing_label.cpp renamed to sycl/test-e2e/InlineAsm/IntelGPU/Negative/asm_missing_label.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %{build} -o %t.out
33
// RUN: %{run} %t.out
44

5-
#include "../include/asmhelper.h"
5+
#include "include/asmhelper.h"
66
#include <sycl/detail/core.hpp>
77

88
struct KernelFunctor {

sycl/test-e2e/InlineAsm/Negative/asm_missing_region.cpp renamed to sycl/test-e2e/InlineAsm/IntelGPU/Negative/asm_missing_region.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %{build} -o %t.out
33
// RUN: %{run} %t.out
44

5-
#include "../include/asmhelper.h"
5+
#include "include/asmhelper.h"
66
#include <sycl/detail/core.hpp>
77

88
struct KernelFunctor {

sycl/test-e2e/InlineAsm/Negative/asm_simple.cpp renamed to sycl/test-e2e/InlineAsm/IntelGPU/Negative/asm_simple.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %{build} -o %t.out
33
// RUN: %{run} %t.out
44

5-
#include "../include/asmhelper.h"
5+
#include "include/asmhelper.h"
66
#include <sycl/detail/core.hpp>
77

88
struct KernelFunctor {

sycl/test-e2e/InlineAsm/Negative/asm_undefined_decl.cpp renamed to sycl/test-e2e/InlineAsm/IntelGPU/Negative/asm_undefined_decl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %{build} -o %t.out
33
// RUN: %{run} %t.out
44

5-
#include "../include/asmhelper.h"
5+
#include "include/asmhelper.h"
66
#include <sycl/detail/core.hpp>
77

88
struct KernelFunctor {

sycl/test-e2e/InlineAsm/Negative/asm_undefined_pred.cpp renamed to sycl/test-e2e/InlineAsm/IntelGPU/Negative/asm_undefined_pred.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %{build} -o %t.out
33
// RUN: %{run} %t.out
44

5-
#include "../include/asmhelper.h"
5+
#include "include/asmhelper.h"
66
#include <sycl/detail/core.hpp>
77

88
struct KernelFunctor {

sycl/test-e2e/InlineAsm/Negative/asm_wrong_declare.cpp renamed to sycl/test-e2e/InlineAsm/IntelGPU/Negative/asm_wrong_declare.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %{build} -o %t.out
33
// RUN: %{run} %t.out
44

5-
#include "../include/asmhelper.h"
5+
#include "include/asmhelper.h"
66
#include <sycl/detail/core.hpp>
77

88
struct KernelFunctor {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
config.required_features += ['opencl || level_zero']

sycl/test-e2e/InlineAsm/asm_16_empty.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// UNSUPPORTED: cuda
12
// REQUIRES: sg-16
23
// RUN: %{build} -o %t.out
34
// RUN: %{run} %t.out

sycl/test-e2e/InlineAsm/asm_8_empty.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// UNSUPPORTED: cuda
12
// REQUIRES: sg-8
23
// RUN: %{build} -o %t.out
34
// RUN: %{run} %t.out

sycl/test-e2e/InlineAsm/lit.local.cfg

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1-
config.unsupported_features += ['cuda', 'hip']
21
config.required_features += ['gpu', 'linux']
2+
3+
config.substitutions.append(("%helper-includes", "-I {}".format(os.path.dirname(os.path.abspath(__file__)))))
4+
original_clangxx=""
5+
for substitution in config.substitutions:
6+
if substitution[0] == "%clangxx":
7+
original_clangxx=substitution[1]
8+
config.substitutions.insert(0,
9+
("%clangxx", original_clangxx + ' %helper-includes '))

0 commit comments

Comments
 (0)