This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 19 files changed +41
-43
lines changed Expand file tree Collapse file tree 19 files changed +41
-43
lines changed Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- // TODO enable on Windows and Level Zero
9
- // REQUIRES: linux && gpu && opencl
8
+ // TODO enable on Windows
9
+ // REQUIRES: linux && gpu
10
10
// RUN: %clangxx-esimd -fsycl %s -o %t.out
11
11
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
12
12
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- // TODO enable on Windows and Level Zero
9
- // REQUIRES: linux && gpu && opencl
8
+ // TODO enable on Windows
9
+ // REQUIRES: linux && gpu
10
10
// RUN: %clangxx-esimd -fsycl %s -o %t.out
11
11
// RUN: %HOST_RUN_PLACEHOLDER %t.out
12
12
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- // TODO enable on Windows and Level Zero
9
- // REQUIRES: linux && gpu && opencl
8
+ // TODO enable on Windows
9
+ // REQUIRES: linux && gpu
10
10
// RUN: %clangxx-esimd -fsycl %s -o %t.out
11
11
// RUN: %HOST_RUN_PLACEHOLDER %t.out 20
12
12
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out 20
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- // TODO enable on Windows and Level Zero
9
- // REQUIRES: linux && gpu && opencl
8
+ // TODO enable on Windows
9
+ // REQUIRES: linux && gpu
10
10
// RUN: %clangxx-esimd -fsycl %s -o %t.out
11
11
// RUN: %HOST_RUN_PLACEHOLDER %t.out 20
12
12
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out 20
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- // TODO enable on Windows and Level Zero
9
- // REQUIRES: linux && gpu && opencl
8
+ // TODO enable on Windows
9
+ // REQUIRES: linux && gpu
10
10
// RUN: %clangxx-esimd -fsycl %s -o %t.out
11
11
// RUN: %HOST_RUN_PLACEHOLDER %t.out 20
12
12
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out 20
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- // TODO enable on Windows and Level Zero
9
- // REQUIRES: linux && gpu && opencl
8
+ // TODO enable on Windows
9
+ // REQUIRES: linux && gpu
10
10
// RUN: %clangxx-esimd -fsycl %s -o %t.out
11
11
// RUN: %HOST_RUN_PLACEHOLDER %t.out
12
12
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- // TODO enable on Windows and Level Zero
9
- // REQUIRES: linux && gpu && opencl
8
+ // TODO enable on Windows
9
+ // REQUIRES: linux && gpu
10
10
// RUN: %clangxx-esimd -fsycl %s -o %t.out
11
11
// RUN: %HOST_RUN_PLACEHOLDER %t.out
12
12
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- // TODO enable on Windows and Level Zero
9
- // REQUIRES: linux && gpu && opencl
8
+ // TODO enable on Windows
9
+ // REQUIRES: linux && gpu
10
10
// RUN: %clangxx-esimd -fsycl -D_CRT_SECURE_NO_WARNINGS=1 %s -o %t.out
11
11
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
12
12
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- // TODO enable on Windows and Level Zero
9
- // REQUIRES: linux && gpu && opencl
8
+ // TODO enable on Windows
9
+ // REQUIRES: linux && gpu
10
10
// RUN: %clangxx-esimd -fsycl %s -I%S/.. -o %t.out
11
11
// RUN: %HOST_RUN_PLACEHOLDER %t.out %S/points.big.json
12
12
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out %S/points.big.json
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- // TODO enable on Windows and Level Zero
9
- // REQUIRES: linux && gpu && opencl
8
+ // TODO enable on Windows
9
+ // REQUIRES: linux && gpu
10
10
// RUN: %clangxx-esimd -fsycl %s -o %t.out
11
11
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
12
12
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- // TODO enable on Windows and Level Zero
9
- // REQUIRES: linux && gpu && opencl
8
+ // TODO enable on Windows
9
+ // REQUIRES: linux && gpu
10
10
// RUN: %clangxx-esimd -fsycl %s -o %t.out
11
11
// RUN: %HOST_RUN_PLACEHOLDER %t.out
12
12
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
Original file line number Diff line number Diff line change 6
6
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
7
//
8
8
// ===----------------------------------------------------------------------===//
9
- // TODO enable on Windows and Level Zero
10
- // REQUIRES: linux && gpu && opencl
9
+ // TODO enable on Windows
10
+ // REQUIRES: linux && gpu
11
11
// RUN: %clangxx-esimd -fsycl %s -o %t.out
12
12
// RUN: %HOST_RUN_PLACEHOLDER %t.out
13
13
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- // TODO enable on Windows and Level Zero
9
- // REQUIRES: linux && gpu && opencl
8
+ // TODO enable on Windows
9
+ // REQUIRES: linux && gpu
10
10
// RUN: %clangxx-esimd -fsycl %s -o %t.out
11
11
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
12
12
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- // TODO enable on Windows and Level Zero
9
- // REQUIRES: linux && gpu && opencl
8
+ // TODO enable on Windows
9
+ // REQUIRES: linux && gpu
10
10
// RUN: %clangxx-esimd -fsycl %s -o %t.out
11
11
// RUN: %HOST_RUN_PLACEHOLDER %t.out
12
12
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- // TODO enable on Windows and Level Zero
9
- // REQUIRES: linux && gpu && opencl
8
+ // TODO enable on Windows
9
+ // REQUIRES: linux && gpu
10
10
// RUN: %clangxx-esimd -fsycl %s -o %t.out
11
11
// RUN: %HOST_RUN_PLACEHOLDER %t.out
12
12
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- // TODO enable on Windows and Level Zero
9
- // REQUIRES: linux && gpu && opencl
8
+ // TODO enable on Windows
9
+ // REQUIRES: linux && gpu
10
10
// RUN: %clangxx-esimd -fsycl %s -o %t.out
11
11
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
12
12
Original file line number Diff line number Diff line change 6
6
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
7
//
8
8
// ===----------------------------------------------------------------------===//
9
- // TODO enable on Windows and Level Zero
10
- // REQUIRES: linux && gpu && opencl
9
+ // TODO enable on Windows
10
+ // REQUIRES: linux && gpu
11
11
// RUN: %clangxx-esimd -fsycl %s -o %t.out
12
12
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
13
13
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- // TODO enable on Windows and Level Zero
9
- // REQUIRES: linux && gpu && opencl
8
+ // TODO enable on Windows
9
+ // REQUIRES: linux && gpu
10
10
// RUN: %clangxx-esimd -fsycl %s -o %t.out
11
11
// RUN: %HOST_RUN_PLACEHOLDER %t.out
12
12
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
Original file line number Diff line number Diff line change 100
100
config .sycl_be +
101
101
"' supported values are PI_OPENCL, PI_CUDA, PI_LEVEL_ZERO" )
102
102
103
- # ESIMD-specific setup. Requires OpenCL for now.
104
- if "opencl" in config .available_features :
105
- esimd_run_substitute = " env SYCL_BE=PI_OPENCL SYCL_DEVICE_TYPE=GPU SYCL_PROGRAM_COMPILE_OPTIONS=-vc-codegen"
106
- config .substitutions .append ( ('%ESIMD_RUN_PLACEHOLDER' , esimd_run_substitute ) )
107
- config .substitutions .append ( ('%clangxx-esimd' , config .dpcpp_compiler +
108
- ' ' + '-fsycl-explicit-simd' + ' ' +
109
- config .cxx_flags ) )
103
+ esimd_run_substitute = "env SYCL_BE={SYCL_BE} SYCL_DEVICE_TYPE=GPU SYCL_PROGRAM_COMPILE_OPTIONS=-vc-codegen" .format (SYCL_BE = config .sycl_be )
104
+ config .substitutions .append ( ('%ESIMD_RUN_PLACEHOLDER' , esimd_run_substitute ) )
105
+ config .substitutions .append ( ('%clangxx-esimd' , config .dpcpp_compiler +
106
+ ' ' + '-fsycl-explicit-simd' + ' ' +
107
+ config .cxx_flags ) )
110
108
111
109
config .substitutions .append ( ('%clangxx' , ' ' + config .dpcpp_compiler + ' ' + config .cxx_flags ) )
112
110
config .substitutions .append ( ('%clang' , ' ' + config .dpcpp_compiler + ' ' + config .c_flags ) )
You can’t perform that action at this time.
0 commit comments