File tree Expand file tree Collapse file tree 16 files changed +33
-10
lines changed Expand file tree Collapse file tree 16 files changed +33
-10
lines changed Original file line number Diff line number Diff line change
1
+ // REQUIRES: opencl
2
+
1
3
// RUN: %clangxx %s -o %t1.out -lsycl
2
4
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out
3
5
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t2.out
Original file line number Diff line number Diff line change
1
+ // REQUIRES: opencl
2
+
1
3
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -L %opencl_libs_dir -lOpenCL
2
4
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3
5
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4
6
// RUN: %ACC_RUN_PLACEHOLDER %t.out
5
7
6
- // REQUIRES: opencl
7
-
8
8
// ==------------------- buffer.cpp - SYCL buffer basic test ----------------==//
9
9
//
10
10
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Original file line number Diff line number Diff line change
1
+ // REQUIRES: opencl
2
+
1
3
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -L %opencl_libs_dir -lOpenCL
2
4
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3
5
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4
6
// RUN: %ACC_RUN_PLACEHOLDER %t.out
5
7
6
- // REQUIRES: opencl
7
-
8
8
// ==------------ subbuffer_interop.cpp - SYCL buffer basic test ------------==//
9
9
//
10
10
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Original file line number Diff line number Diff line change
1
+ // REQUIRES: opencl
2
+
1
3
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -L %opencl_libs_dir -lOpenCL
2
4
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
3
5
// ==--------------- event.cpp - SYCL event test ----------------------------==//
Original file line number Diff line number Diff line change
1
+ // REQUIRES: opencl
2
+
1
3
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -I %sycl_source_dir %s -o %t1.out
2
4
// RUN: %clangxx -I %sycl_source_dir %s -o %t3.out -lsycl
3
5
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out
Original file line number Diff line number Diff line change
1
+ // REQUIRES: opencl
2
+
1
3
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -L %opencl_libs_dir -lOpenCL
2
4
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3
5
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4
6
// RUN: %ACC_RUN_PLACEHOLDER %t.out
5
7
6
- // REQUIRES: opencl
7
-
8
8
// ==--------------- kernel_interop.cpp - SYCL kernel ocl interop test ------==//
9
9
//
10
10
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Original file line number Diff line number Diff line change
1
+ // REQUIRES: opencl
2
+
1
3
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -L %opencl_libs_dir -lOpenCL
2
4
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
3
5
// RUN: %CPU_RUN_PLACEHOLDER %t.out
Original file line number Diff line number Diff line change
1
+ // REQUIRES: opencl
2
+
1
3
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -L %opencl_libs_dir -lOpenCL -O3
2
4
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3
5
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4
6
// RUN: %ACC_RUN_PLACEHOLDER %t.out
5
7
6
- // REQUIRES: opencl
7
-
8
-
9
8
#include < CL/sycl.hpp>
10
9
11
10
#include < cassert>
Original file line number Diff line number Diff line change
1
+ // REQUIRES: opencl
2
+
1
3
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -L %opencl_libs_dir -lOpenCL
2
4
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
3
5
// RUN: %ACC_RUN_PLACEHOLDER %t.out
Original file line number Diff line number Diff line change
1
+ // REQUIRES: opencl
2
+
1
3
// RUN: %clangxx -fsycl -I %sycl_source_dir %s -o %t.out
2
4
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3
5
// ==---------------- cache.cpp - SYCL kernel/program test ------------------==//
Original file line number Diff line number Diff line change
1
+ // REQUIRES: opencl
2
+
1
3
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -L %opencl_libs_dir -lOpenCL
2
4
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
3
5
// RUN: %CPU_RUN_PLACEHOLDER %t.out
Original file line number Diff line number Diff line change
1
+ // REQUIRES: opencl
2
+
1
3
// RUN: %clangxx -fsycl %s -o %t.out
2
4
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3
5
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4
6
// RUN: %ACC_RUN_PLACEHOLDER %t.out
5
- // REQUIRES: opencl
6
7
// UNSUPPORTED: cuda
7
8
// ==---------------- opencl-interop.cpp - SYCL linear id test --------------==//
8
9
//
Original file line number Diff line number Diff line change 67
67
if 'OCL_ICD_FILENAMES' in os .environ :
68
68
config .environment ['OCL_ICD_FILENAMES' ] = os .environ ['OCL_ICD_FILENAMES' ]
69
69
70
+ if 'SYCL_DEVICE_WHITE_LIST' in os .environ :
71
+ config .environment ['SYCL_DEVICE_WHITE_LIST' ] = os .environ ['SYCL_DEVICE_WHITE_LIST' ]
72
+
70
73
config .substitutions .append ( ('%sycl_libs_dir' , config .sycl_libs_dir ) )
71
74
config .substitutions .append ( ('%sycl_include' , config .sycl_include ) )
72
75
config .substitutions .append ( ('%opencl_libs_dir' , config .opencl_libs_dir ) )
Original file line number Diff line number Diff line change
1
+ // REQUIRES: opencl
2
+
1
3
// RUN: %clangxx -fsycl %s -o %t.out -L %opencl_libs_dir -lOpenCL
2
4
// RUN: %ACC_RUN_PLACEHOLDER %t.out
3
5
// RUN: %CPU_RUN_PLACEHOLDER %t.out
Original file line number Diff line number Diff line change
1
+ // REQUIRES: opencl
2
+
1
3
// RUN: %clangxx -fsycl %s -o %t1.out -L %opencl_libs_dir -lOpenCL
2
4
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
3
5
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
Original file line number Diff line number Diff line change
1
+ // REQUIRES: opencl
2
+
1
3
// RUN: %clang_cc1 -x cl -cl-std=CL2.0 %S/sg.cl -triple spir64-unknown-unknown -emit-llvm-bc -o %T/kernel_ocl.bc -include opencl-c.h
2
4
// RUN: llvm-spirv %T/kernel_ocl.bc -o %T/kernel_ocl.spv
3
5
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -L %opencl_libs_dir -lOpenCL
You can’t perform that action at this time.
0 commit comments