Skip to content

Commit

Permalink
Add InlineAsm/IntelGPU test directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ayylol committed Jan 22, 2025
1 parent 745d9b5 commit d83a37d
Show file tree
Hide file tree
Showing 36 changed files with 21 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions sycl/test-e2e/InlineAsm/IntelGPU/lit.local.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
config.required_features += ['opencl || level_zero']
1 change: 1 addition & 0 deletions sycl/test-e2e/InlineAsm/asm_16_empty.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// UNSUPPORTED: cuda
// REQUIRES: sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out
Expand Down
1 change: 1 addition & 0 deletions sycl/test-e2e/InlineAsm/asm_8_empty.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// UNSUPPORTED: cuda
// REQUIRES: sg-8
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out
Expand Down
9 changes: 8 additions & 1 deletion sycl/test-e2e/InlineAsm/lit.local.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
config.unsupported_features += ['cuda', 'hip']
config.required_features += ['gpu', 'linux']

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 '))

0 comments on commit d83a37d

Please sign in to comment.