Skip to content

Commit

Permalink
Put REQUIRES: unsplit-mode in separate line
Browse files Browse the repository at this point in the history
Hopefully avoids merge conflicts
  • Loading branch information
ayylol committed Nov 6, 2024
1 parent cd8afdd commit 13d54c0
Show file tree
Hide file tree
Showing 26 changed files with 49 additions and 26 deletions.
3 changes: 2 additions & 1 deletion sycl/test-e2e/AmdNvidiaJIT/kernel_and_bundle.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// UNSUPPORTED: windows
// REQUIRES: (cuda || hip) && unsplit-mode
// REQUIRES: (cuda || hip)
// REQUIRES: unsplit-mode

// This test relies on debug output from a pass, make sure that the compiler
// can generate it.
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/Compression/no_zstd_warning.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// using --offload-compress without zstd should throw an error.
// UNSUPPORTED: zstd
// REQUIRES: windows && cpu
// RUN: not %{build} -O0 -g --offload-compress %S/Inputs/single_kernel.cpp -o %t_compress.out 2>&1 | FileCheck %s
// CHECK: '--offload-compress' option is specified but zstd is not available. The device image will not be compressed.
1 change: 0 additions & 1 deletion sycl/test-e2e/DeviceGlobal/device_global_copy.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// RUN: %{build} -std=c++23 -o %t.out
// RUN: %{run} %t.out
//
// REQUIRES: unsplit-mode
// UNSUPPORTED: opencl && gpu
// UNSUPPORTED-TRACKER: GSD-4287
//
Expand Down
3 changes: 2 additions & 1 deletion sycl/test-e2e/EnqueueNativeCommand/custom-command-cuda.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out %cuda_options
// RUN: %{run} %t.out
// REQUIRES: cuda, cuda_dev_kit, unsplit-mode
// REQUIRES: cuda, cuda_dev_kit
// REQUIRES: unsplit-mode

#include <cuda.h>

Expand Down
3 changes: 2 additions & 1 deletion sycl/test-e2e/EnqueueNativeCommand/custom-command-hip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// we should set this with some variable instead.
// RUN: %{build} -o %t.out -I%rocm_path/include -L%rocm_path/lib -lamdhip64
// RUN: %{run} %t.out
// REQUIRES: hip, unsplit-mode
// REQUIRES: hip
// REQUIRES: unsplit-mode

#include <iostream>
#include <sycl/backend.hpp>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// REQUIRES: cuda, cuda_dev_kit, unsplit-mode
// REQUIRES: cuda, cuda_dev_kit
// REQUIRES: unsplit-mode
// RUN: %{build} -o %t.out %cuda_options
// RUN: %{run} %t.out

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// REQUIRES: cuda, cuda_dev_kit, unsplit-mode
// REQUIRES: cuda, cuda_dev_kit
// REQUIRES: unsplit-mode
//
// RUN: %{build} -o %t.out %cuda_options
// RUN: %{run} %t.out
Expand Down
3 changes: 2 additions & 1 deletion sycl/test-e2e/HostInteropTask/interop-task-cuda.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// RUN: %{build} -o %t.out %cuda_options
// RUN: %{run} %t.out
// REQUIRES: cuda, cuda_dev_kit, unsplit-mode
// REQUIRES: cuda, cuda_dev_kit
// REQUIRES: unsplit-mode

#include <iostream>
#include <sycl/backend.hpp>
Expand Down
3 changes: 2 additions & 1 deletion sycl/test-e2e/HostInteropTask/interop-task-hip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// we should set this with some variable instead.
// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out -I%rocm_path/include -L%rocm_path/lib -lamdhip64
// RUN: %{run} %t.out
// REQUIRES: hip, unsplit-mode
// REQUIRES: hip
// REQUIRES: unsplit-mode

#include <iostream>
#include <sycl/backend.hpp>
Expand Down
3 changes: 2 additions & 1 deletion sycl/test-e2e/KernelAndProgram/test_cache_jit_aot.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Don't use normal %{run} as we need to control cache directory removal and
// cannot do that reliably when number of devices is unknown.
//
// REQUIRES: level_zero, ocloc, unsplit-mode
// REQUIRES: level_zero, ocloc
// REQUIRES: unsplit-mode
//
// DEFINE: %{cache_vars} = env SYCL_CACHE_PERSISTENT=1 SYCL_CACHE_TRACE=1 SYCL_CACHE_DIR=%t/cache_dir
// DEFINE: %{build_cmd} = %{build}
Expand Down
3 changes: 2 additions & 1 deletion sycl/test-e2e/Matrix/joint_matrix_hip_gfx90a.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
// RUN: %{build} -fsycl -fsycl-targets=amd_gpu_gfx90a %s -o %t.out
// RUN: %{run} %t.out

// REQUIRES: gpu-amd-gfx90a, unsplit-mode
// REQUIRES: gpu-amd-gfx90a
// REQUIRES: unsplit-mode

#include "joint_matrix_hip_apply.hpp"
#include "joint_matrix_hip_copy.hpp"
Expand Down
3 changes: 2 additions & 1 deletion sycl/test-e2e/Matrix/joint_matrix_tensorcores_sm70.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
//
//===----------------------------------------------------------------------===//

// REQUIRES: cuda, unsplit-mode
// REQUIRES: cuda
// REQUIRES: unsplit-mode
// RUN: %{build} -Xsycl-target-backend --cuda-gpu-arch=sm_70 -o %t.out
// RUN: %{run} %t.out
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// REQUIRES: hip_amd, opencl, gpu, cpu, unsplit-mode
// REQUIRES: hip_amd, opencl, gpu, cpu
// REQUIRES: unsplit-mode

// RUN: %clangxx -fsycl -Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=gfx906 -fsycl-targets=amdgcn-amd-amdhsa %S/Inputs/is_compatible_with_env.cpp -o %t.out

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// REQUIRES: cuda, opencl, gpu, cpu, unsplit-mode
// REQUIRES: cuda, opencl, gpu, cpu
// REQUIRES: unsplit-mode

// RUN: %clangxx -fsycl -fsycl-targets=nvptx64-nvidia-cuda %S/Inputs/is_compatible_with_env.cpp -o %t.out

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// REQUIRES: ocloc, level_zero, gpu, cpu, unsplit-mode
// REQUIRES: ocloc, level_zero, gpu, cpu
// REQUIRES: unsplit-mode

// RUN: %clangxx -fsycl -fsycl-targets=spir64_fpga,spir64_gen -Xsycl-target-backend "-device *" %S/Inputs/is_compatible_with_env.cpp -o %t.out

Expand Down
3 changes: 2 additions & 1 deletion sycl/test-e2e/Plugin/cuda_queue_priority.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// REQUIRES: gpu, cuda, cuda_dev_kit, unsplit-mode
// REQUIRES: gpu, cuda, cuda_dev_kit
// REQUIRES: unsplit-mode
// RUN: %{build} %cuda_options -o %t.out
// RUN: %{run} %t.out
//
Expand Down
3 changes: 2 additions & 1 deletion sycl/test-e2e/Plugin/sycl-ls-gpu-cuda.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// REQUIRES: gpu, cuda, unsplit-mode
// REQUIRES: gpu, cuda
// REQUIRES: unsplit-mode

// RUN: env ONEAPI_DEVICE_SELECTOR="cuda:*" sycl-ls --verbose >%t.cuda.out
// RUN: FileCheck %s --check-prefixes=CHECK-BUILTIN-GPU-CUDA,CHECK-CUSTOM-GPU-CUDA --input-file %t.cuda.out
Expand Down
3 changes: 2 additions & 1 deletion sycl/test-e2e/Plugin/sycl-ls-gpu-hip.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// REQUIRES: gpu, hip, sycl-ls, unsplit-mode
// REQUIRES: gpu, hip, sycl-ls
// REQUIRES: unsplit-mode

// RUN: env ONEAPI_DEVICE_SELECTOR="hip:*" sycl-ls --verbose >%t.hip.out
// RUN: FileCheck %s --check-prefixes=CHECK-BUILTIN-GPU-HIP,CHECK-CUSTOM-GPU-HIP --input-file %t.hip.out
Expand Down
3 changes: 2 additions & 1 deletion sycl/test-e2e/Plugin/sycl-ls-gpu-sycl-be.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// REQUIRES: gpu, cuda, hip, opencl, sycl-ls, unsplit-mode
// REQUIRES: gpu, cuda, hip, opencl, sycl-ls
// REQUIRES: unsplit-mode

// RUN: sycl-ls --verbose >%t.default.out
// RUN: FileCheck %s --check-prefixes=CHECK-BUILTIN-GPU-OPENCL,CHECK-CUSTOM-GPU-OPENCL --input-file %t.default.out
Expand Down
3 changes: 2 additions & 1 deletion sycl/test-e2e/Plugin/sycl-targets-order.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
// RUN: %{run-unfiltered-devices} env ONEAPI_DEVICE_SELECTOR="opencl:*" %t-nvptx64-spir64.out
// RUN: %{run-unfiltered-devices} env ONEAPI_DEVICE_SELECTOR="cuda:*" %t-nvptx64-spir64.out

// REQUIRES: opencl, cuda, unsplit-mode
// REQUIRES: opencl, cuda
// REQUIRES: unsplit-mode

//==------- sycl-targets-order.cpp - SYCL -fsycl-targets order test --------==//
//
Expand Down
3 changes: 2 additions & 1 deletion sycl/test-e2e/Regression/multiple-targets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// It tests if the target triples can be specified with any order.
// The test is repeated for per_kernel device code splitting.
//
// REQUIRES: (cuda || hip || native_cpu) && unsplit-mode
// REQUIRES: (cuda || hip || native_cpu)
// REQUIRES: unsplit-mode
// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple},spir64 -o %t1.out %s
// RUN: %{run} %t1.out
//
Expand Down
3 changes: 2 additions & 1 deletion sycl/test-e2e/SpecConstants/2020/non_native/cuda.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// REQUIRES: cuda, unsplit-mode
// REQUIRES: cuda
// REQUIRES: unsplit-mode

// RUN: %clangxx -fsycl -fsycl-targets=nvptx64-nvidia-cuda %S/Inputs/common.cpp -o %t.out
// RUN: %{run-unfiltered-devices} env ONEAPI_DEVICE_SELECTOR="cuda:*" %t.out
Expand Down
3 changes: 2 additions & 1 deletion sycl/test-e2e/bindless_images/cubemap/cubemap_sampled.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// REQUIRES: cuda,aspect-ext_oneapi_cubemap, unsplit-mode
// REQUIRES: cuda,aspect-ext_oneapi_cubemap
// REQUIRES: aspect-ext_oneapi_cubemap_seamless_filtering
// REQUIRES: unsplit-mode

// RUN: %{build} -o %t.out
// RUN: %{run} %t.out
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// REQUIRES: cuda, unsplit-mode
// REQUIRES: cuda
// REQUIRES: unsplit-mode

// RUN: %{build} -o %t.out
// RUN: %{run} %t.out
Expand Down
3 changes: 2 additions & 1 deletion sycl/test-e2e/syclcompat/launch/launch_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
* sycl/test-e2e/ClusterLaunch/cluster_launch_parallel_for.cpp
**************************************************************************/

// REQUIRES: aspect-ext_oneapi_cuda_cluster_group, unsplit-mode
// REQUIRES: aspect-ext_oneapi_cuda_cluster_group
// REQUIRES: unsplit-mode
// RUN: %{build} -Xsycl-target-backend=nvptx64-nvidia-cuda --cuda-gpu-arch=sm_90 -o %t.out
// RUN: %{run} %t.out

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// REQUIRES: cuda, unsplit-mode
// REQUIRES: cuda
// REQUIRES: unsplit-mode
// RUN: %{build} -Xsycl-target-backend --cuda-gpu-arch=sm_75 -o %t.out
// RUN: %{run} %t.out
#include <sycl/detail/core.hpp>
Expand Down

0 comments on commit 13d54c0

Please sign in to comment.