Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit ae342e8

Browse files
author
Alexander Batashev
committed
Merge remote-tracking branch 'upstream/intel' into remove_program_class
2 parents 742540d + 0ad1054 commit ae342e8

File tree

148 files changed

+441
-147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+441
-147
lines changed

SYCL/AOT/accelerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88

99
// REQUIRES: aoc, accelerator
1010

11-
// RUN: %clangxx -fsycl -fsycl-targets=spir64_fpga-unknown-unknown-sycldevice %S/Inputs/aot.cpp -o %t.out
11+
// RUN: %clangxx -fsycl -fsycl-targets=spir64_fpga %S/Inputs/aot.cpp -o %t.out
1212
// RUN: %ACC_RUN_PLACEHOLDER %t.out

SYCL/AOT/cpu.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
// REQUIRES: opencl-aot, cpu
1010

11-
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64-unknown-unknown-sycldevice %S/Inputs/aot.cpp -o %t.out
11+
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %S/Inputs/aot.cpp -o %t.out
1212
// RUN: %CPU_RUN_PLACEHOLDER %t.out
1313

1414
// Test that opencl-aot can handle multiple build options.
15-
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64-unknown-unknown-sycldevice %S/Inputs/aot.cpp -Xsycl-target-backend "--bo=-g" -Xsycl-target-backend "--bo=-cl-opt-disable" -o %t2.out
15+
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %S/Inputs/aot.cpp -Xsycl-target-backend "--bo=-g" -Xsycl-target-backend "--bo=-cl-opt-disable" -o %t2.out

SYCL/AOT/gpu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
// UNSUPPORTED: cuda
1111
// CUDA is not compatible with SPIR.
1212
//
13-
// RUN: %clangxx -fsycl -fsycl-targets=spir64_gen-unknown-unknown-sycldevice -Xsycl-target-backend=spir64_gen-unknown-unknown-sycldevice "-device *" %S/Inputs/aot.cpp -o %t.out
13+
// RUN: %clangxx -fsycl -fsycl-targets=spir64_gen -Xsycl-target-backend=spir64_gen "-device *" %S/Inputs/aot.cpp -o %t.out
1414
// RUN: %GPU_RUN_PLACEHOLDER %t.out

SYCL/AOT/multiple-devices.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// 1-command compilation case
1414
// Targeting CPU, GPU, FPGA
15-
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64-unknown-unknown-sycldevice,spir64_gen-unknown-unknown-sycldevice,spir64_fpga-unknown-unknown-sycldevice -Xsycl-target-backend=spir64_gen-unknown-unknown-sycldevice "-device *" %S/Inputs/aot.cpp -o %t_all.out
15+
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64,spir64_gen,spir64_fpga -Xsycl-target-backend=spir64_gen "-device *" %S/Inputs/aot.cpp -o %t_all.out
1616
// RUN: %HOST_RUN_PLACEHOLDER %t_all.out
1717
// RUN: %CPU_RUN_PLACEHOLDER %t_all.out
1818
// RUN: %GPU_RUN_PLACEHOLDER %t_all.out
@@ -26,7 +26,7 @@
2626
// Produce object file, spirv, device images to combine these differently
2727
// at link-time, thus testing various AOT-compiled images configurations
2828
// RUN: %clangxx -fsycl %S/Inputs/aot.cpp -c -o %t.o
29-
// RUN: %clangxx -fsycl -fsycl-link-targets=spir64-unknown-unknown-sycldevice %t.o -o %t.spv
29+
// RUN: %clangxx -fsycl -fsycl-link-targets=spir64 %t.o -o %t.spv
3030
// AOT-compile device binary images
3131
// Neither of AOT tools can compile several files, hence, here is this
3232
// workaround

SYCL/AOT/spec_const_aot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: opencl-aot, cpu
22
//
3-
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64-unknown-unknown-sycldevice %s -o %t.out
3+
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %s -o %t.out
44
// RUN: %CPU_RUN_PLACEHOLDER %t.out
55
//
66
// The test checks that the specialization constant feature works with ahead

SYCL/AOT/with-llvm-bc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
// REQUIRES: cpu, dump_ir
1010

11-
// RUN: %clangxx -fsycl -fsycl-targets=spir64-unknown-unknown-sycldevice -c %S/Inputs/aot.cpp -o %t.o
12-
// RUN: %clangxx -fsycl -fsycl-link-targets=spir64-unknown-unknown-sycldevice %t.o -o %t.spv
11+
// RUN: %clangxx -fsycl -fsycl-targets=spir64 -c %S/Inputs/aot.cpp -o %t.o
12+
// RUN: %clangxx -fsycl -fsycl-link-targets=spir64 %t.o -o %t.spv
1313
// RUN: llvm-spirv -r %t.spv -o %t.bc
1414
// RUN: %clangxx -fsycl -fsycl-add-targets=spir64:%t.bc %t.o -o %t.out
1515
//

SYCL/AtomicRef/add.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsycl-targets=%sycl_triple %s -o %t.out \
2-
// RUN: -Xsycl-target-backend=nvptx64-nvidia-cuda-sycldevice --cuda-gpu-arch=sm_60
2+
// RUN: -Xsycl-target-backend=nvptx64-nvidia-cuda --cuda-gpu-arch=sm_60
33
// RUN: %HOST_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %CPU_RUN_PLACEHOLDER %t.out

SYCL/AtomicRef/add_atomic64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsycl-targets=%sycl_triple %s -o %t.out \
2-
// RUN: -Xsycl-target-backend=nvptx64-nvidia-cuda-sycldevice --cuda-gpu-arch=sm_60
2+
// RUN: -Xsycl-target-backend=nvptx64-nvidia-cuda --cuda-gpu-arch=sm_60
33
// RUN: %HOST_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %CPU_RUN_PLACEHOLDER %t.out

SYCL/AtomicRef/sub.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsycl-targets=%sycl_triple %s -o %t.out \
2-
// RUN: -Xsycl-target-backend=nvptx64-nvidia-cuda-sycldevice --cuda-gpu-arch=sm_60
2+
// RUN: -Xsycl-target-backend=nvptx64-nvidia-cuda --cuda-gpu-arch=sm_60
33
// RUN: %HOST_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %CPU_RUN_PLACEHOLDER %t.out

SYCL/AtomicRef/sub_atomic64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsycl-targets=%sycl_triple %s -o %t.out \
2-
// RUN: -Xsycl-target-backend=nvptx64-nvidia-cuda-sycldevice --cuda-gpu-arch=sm_60
2+
// RUN: -Xsycl-target-backend=nvptx64-nvidia-cuda --cuda-gpu-arch=sm_60
33
// RUN: %HOST_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %CPU_RUN_PLACEHOLDER %t.out

SYCL/BFloat16/bfloat16_type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// UNSUPPORTED: cuda
1+
// UNSUPPORTED: cuda || hip
22
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
33
// TODO currently the feature isn't supported on most of the devices
44
// need to enable the test when the aspect and device_if feature are

SYCL/Basic/barrier_order.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55

6-
// UNSUPPORTED: cuda
6+
// UNSUPPORTED: cuda || hip
77

88
#include <CL/sycl.hpp>
99
#include <stdlib.h>

SYCL/Basic/buffer/buffer_full_copy.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
// RUN: %CPU_RUN_PLACEHOLDER %t2.out
66
// RUN: %GPU_RUN_PLACEHOLDER %t2.out
77
// RUN: %ACC_RUN_PLACEHOLDER %t2.out
8+
//
9+
// Incorrect results with hip
10+
// XFAIL: hip
811

912
//==------------- buffer_full_copy.cpp - SYCL buffer basic test ------------==//
1013
//

SYCL/Basic/buffer/subbuffer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %ACC_RUN_PLACEHOLDER %t.out
66
//
7+
// Test failing with hip on AMD
8+
// XFAIL: hip_amd
79
//==---------- subbuffer.cpp --- sub-buffer basic test ---------------------==//
810
//
911
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

SYCL/Basic/device_code_dae.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// NOTE A temporary test before this compilation flow is enabled by default in
22
// driver
3-
// UNSUPPORTED: cuda
4-
// CUDA does not support SPIR-V.
3+
// UNSUPPORTED: cuda || hip
4+
// CUDA and HIP don't support SPIR-V.
55
// RUN: %clangxx -fsycl-device-only -Xclang -fenable-sycl-dae -Xclang -fsycl-int-header=int_header.h %s -c -o device_code.bc -Wno-sycl-strict
66
// RUN: %clangxx %cxx_std_optionc++17 %include_option int_header.h %debug_option -c %s -o host_code.o %sycl_options -Wno-sycl-strict
77
// FIXME Added explicit offline linking step here until online-linking support

SYCL/Basic/device_event.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
// RUN: %ACC_RUN_PLACEHOLDER %t.run
55
// TODO: nd_item::barrier() is not implemented on HOST
66
// RUNx: %HOST_RUN_PLACEHOLDER %t.run
7+
//
8+
// Crashes on AMD
9+
// XFAIL: hip_amd
710

811
//==--------device_event.cpp - SYCL class device_event test ----------------==//
912
//

SYCL/Basic/enqueue_barrier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// The test is failing sporadically on Windows OpenCL RTs
77
// Disabling on windows until fixed
8-
// UNSUPPORTED: cuda || windows
8+
// UNSUPPORTED: cuda || windows || hip
99

1010
#include <CL/sycl.hpp>
1111
#include <sycl/ext/intel/fpga_device_selector.hpp>

SYCL/Basic/free_function_queries/free_function_queries_sub_group.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// UNSUPPORTED: cuda
2-
// CUDA compilation and runtime do not yet support sub-groups.
1+
// UNSUPPORTED: cuda || hip
2+
// CUDA and HIP compilation and runtime do not yet support sub-groups.
33
//
44
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
55
// RUN: %HOST_RUN_PLACEHOLDER %t.out

SYCL/Basic/get_backend.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
22
// RUN: env SYCL_DEVICE_FILTER=%sycl_be %t.out
33
//
4+
// Failing on HIP AMD
5+
// XFAIL: hip_amd
6+
//
47
//==----------------- get_backend.cpp ------------------------==//
58
// This is a test of get_backend().
69
// Do not set SYCL_DEVICE_FILTER. We do not want the preferred

SYCL/Basic/group_async_copy.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.run
44
// RUN: %ACC_RUN_PLACEHOLDER %t.run
55
// RUN: env SYCL_DEVICE_FILTER=host %t.run
6+
//
7+
// Crashes on AMD
8+
// XFAIL: hip_amd
69

710
#include <CL/sycl.hpp>
811
#include <iostream>

SYCL/Basic/handler/handler_set_args.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// RUN: %CPU_RUN_PLACEHOLDER %t.out
33
// RUN: %GPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
5+
//
6+
// Memory access fault on AMD
7+
// XFAIL: hip_amd
58
//==--------------- handler_set_args.cpp -------------------==//
69
//
710
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

SYCL/Basic/host_platform_avail.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
33
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
5-
// RUN: %ACC_RUN_PLACEHOLDER %t1.out
5+
// RUN: env SYCL_DEVICE_FILTER=acc,host %t1.out
66

77
//==------ host_platform_avail.cpp - Host Platform Availability test -------==//
88
//

SYCL/Basic/image/image_read.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
* the OpenCL 1.2 specification, Section 8. Image Addressing and Filtering
77
*
88
* https://www.khronos.org/registry/OpenCL/specs/opencl-1.2.pdf#page=329
9-
*
10-
* Confirmed to pass with -fsycl-targets=spir64-unknown-linux-sycldevice
119
*/
1210

1311
#include <CL/sycl.hpp>

SYCL/Basic/image/image_write.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
* the OpenCL 1.2 specification, Section 8. Image Addressing and Filtering
77
*
88
* https://www.khronos.org/registry/OpenCL/specs/opencl-1.2.pdf#page=329
9-
*
10-
* Confirmed to pass with -fsycl-targets=spir64-unknown-linux-sycldevice
119
*/
1210

1311
#include <CL/sycl.hpp>

SYCL/Basic/info.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %ACC_RUN_PLACEHOLDER %t.out
6+
//
7+
// Hits a terminate on HIP AMD
8+
// XFAIL: hip_amd
69

710
//==----------------info.cpp - SYCL objects get_info() test ----------------==//
811
//

SYCL/Basic/kernel_info.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
//
66
// Fail is flaky for level_zero, enable when fixed.
77
// UNSUPPORTED: level_zero
8+
//
9+
// Failing on HIP AMD
10+
// XFAIL: hip_amd
811

912
//==--- kernel_info.cpp - SYCL kernel info test ----------------------------==//
1013
//

SYCL/Basic/linear-sub_group.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %ACC_RUN_PLACEHOLDER %t.out
6+
//
7+
// Missing built-ins on AMD
8+
// XFAIL: hip_amd
69
//==--------------- linear-sub_group.cpp - SYCL linear id test -------------==//
710
//
811
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

SYCL/Basic/parallel_for_indexers.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
// RUN: %CPU_RUN_PLACEHOLDER %t2.out
66
// RUN: %GPU_RUN_PLACEHOLDER %t2.out
77
// RUN: %ACC_RUN_PLACEHOLDER %t2.out
8+
//
9+
// Incorrect results with hip on AMD
10+
// XFAIL: hip_amd
811

912
#include <CL/sycl.hpp>
1013

SYCL/Basic/query_emulate_subdevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
// RUN: env CreateMultipleSubDevices=2 EnableTimestampPacket=1 \
33
// RUN: NEOReadDebugKeys=1 SYCL_DEVICE_FILTER="gpu" %t.out
44

5-
// UNSUPPORTED: gpu-intel-dg1,cuda
5+
// UNSUPPORTED: gpu-intel-dg1,cuda,hip
66
#include "query.hpp"

SYCL/Basic/reqd_work_group_size.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// RUN: %CPU_RUN_PLACEHOLDER %t.out
33
// RUN: %GPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
5+
//
6+
// Failing negative test with HIP
7+
// XFAIL: hip
58

69
#include <CL/sycl.hpp>
710

SYCL/Basic/scalar_vec_access.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out %CPU_CHECK_PLACEHOLDER
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out %GPU_CHECK_PLACEHOLDER
55
// RUN: %ACC_RUN_PLACEHOLDER %t.out %ACC_CHECK_PLACEHOLDER
6+
//
7+
// Missing built-ins on AMD
8+
// XFAIL: hip_amd
69

710
//==------- scalar_vec_access.cpp - SYCL scalar access to vec test ---------==//
811
//

SYCL/Basic/stream/stream.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
// RUN: %CPU_RUN_PLACEHOLDER %t.out %CPU_CHECK_PLACEHOLDER
55
// RUN: %GPU_RUN_ON_LINUX_PLACEHOLDER %t.out %GPU_CHECK_ON_LINUX_PLACEHOLDER
66
// RUN: %ACC_RUN_PLACEHOLDER %t.out %ACC_CHECK_PLACEHOLDER
7+
//
8+
// Missing built-ins on AMD
9+
// XFAIL: hip_amd
710

811
//==------------------ stream.cpp - SYCL stream basic test -----------------==//
912
//

SYCL/Basic/submit_barrier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55

6-
// UNSUPPORTED: cuda
6+
// UNSUPPORTED: cuda || hip
77

88
#include <CL/sycl.hpp>
99
#include <stdlib.h>

SYCL/Config/kernel_from_file.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// UNSUPPORTED: cuda
2-
// CUDA does not support SPIR-V.
1+
// UNSUPPORTED: cuda || hip
2+
// CUDA and HIP don't support SPIR-V.
33

44
// FIXME Disabled fallback assert as it'll require either online linking or
55
// explicit offline linking step here

SYCL/Config/select_device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
//
3939
// REQUIRES: gpu
4040
//
41-
// XFAIL: cuda
41+
// XFAIL: cuda || hip
4242
//
4343
// TODO: Update this test when SYCL_DEVICE_FILTER support in enabled.
4444

SYCL/DeprecatedFeatures/basic-program.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// XFAIL: cuda
1+
// XFAIL: cuda || hip
22
// RUN: %clangxx -D__SYCL_INTERNAL_API -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out

SYCL/DeprecatedFeatures/get-options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %ACC_RUN_PLACEHOLDER %t.out
6-
// XFAIL: cuda
6+
// XFAIL: cuda || hip
77

88
#include <CL/sycl.hpp>
99

SYCL/DeprecatedFeatures/kernel-and-program.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %ACC_RUN_PLACEHOLDER %t.out
6-
// XFAIL: cuda
6+
// XFAIL: cuda || hip
77

88
//==--- kernel-and-program.cpp - SYCL kernel/program test ------------------==//
99
//

SYCL/DeprecatedFeatures/parallel_for_range.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// XFAIL: level_zero&&gpu
22
// UNSUPPORTED: windows
33
// Level0 testing times out on Windows.
4+
//
5+
// Failing on HIP AMD
6+
// UNSUPPORTED: hip_amd
47

58
// RUN: %clangxx -D__SYCL_INTERNAL_API -fsycl -fno-sycl-id-queries-fit-in-int -fsycl-targets=%sycl_triple %s -o %t.out
69
// RUN: %CPU_RUN_PLACEHOLDER %t.out

SYCL/DeprecatedFeatures/program_link.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
// RUN: %CPU_RUN_PLACEHOLDER SYCL_PI_TRACE=-1 SYCL_PROGRAM_COMPILE_OPTIONS="-cl-opt-disable" %t.out %CPU_CHECK_PLACEHOLDER --check-prefix=CHECK-IS-OPT-DISABLE
77
// RUN: %GPU_RUN_PLACEHOLDER SYCL_PI_TRACE=-1 SYCL_PROGRAM_COMPILE_OPTIONS="-cl-opt-disable" %t.out %GPU_CHECK_PLACEHOLDER --check-prefix=CHECK-IS-OPT-DISABLE
88
// RUN: %ACC_RUN_PLACEHOLDER SYCL_PI_TRACE=-1 SYCL_PROGRAM_COMPILE_OPTIONS="-cl-opt-disable" %t.out %ACCPU_CHECK_PLACEHOLDER --check-prefix=CHECK-IS-OPT-DISABLE
9+
//
10+
// Hits an assertion on AMD with multiple GPUs available
11+
// XFAIL: hip_amd
912

1013
#include <CL/sycl.hpp>
1114
#include <iostream>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// REQUIRES: aoc, accelerator
22

3-
// RUN: %clangxx -fsycl -fsycl-device-code-split=per_source -fsycl-targets=spir64_fpga-unknown-unknown-sycldevice -I %S/Inputs -o %t.out %S/split-per-source-main.cpp %S/Inputs/split-per-source-second-file.cpp
3+
// RUN: %clangxx -fsycl -fsycl-device-code-split=per_source -fsycl-targets=spir64_fpga -I %S/Inputs -o %t.out %S/split-per-source-main.cpp %S/Inputs/split-per-source-second-file.cpp
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out

SYCL/DeviceCodeSplit/aot-cpu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// REQUIRES: opencl-aot, cpu
22

3-
// RUN: %clangxx -fsycl -fsycl-device-code-split=per_source -fsycl-targets=spir64_x86_64-unknown-unknown-sycldevice -I %S/Inputs -o %t.out %S/split-per-source-main.cpp %S/Inputs/split-per-source-second-file.cpp
3+
// RUN: %clangxx -fsycl -fsycl-device-code-split=per_source -fsycl-targets=spir64_x86_64 -I %S/Inputs -o %t.out %S/split-per-source-main.cpp %S/Inputs/split-per-source-second-file.cpp
44
// RUN: %CPU_RUN_PLACEHOLDER %t.out

SYCL/DeviceCodeSplit/aot-gpu.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// CUDA does neither support device code splitting nor SPIR.
44
//
55
// RUN: %clangxx -fsycl -fsycl-device-code-split=per_source \
6-
// RUN: -fsycl-targets=spir64_gen-unknown-unknown-sycldevice \
7-
// RUN: -Xsycl-target-backend=spir64_gen-unknown-unknown-sycldevice \
6+
// RUN: -fsycl-targets=spir64_gen \
7+
// RUN: -Xsycl-target-backend=spir64_gen \
88
// RUN: "-device *" -I %S/Inputs -o %t.out \
99
// RUN: %S/split-per-source-main.cpp \
1010
// RUN: %S/Inputs/split-per-source-second-file.cpp

SYCL/DeviceLib/assert-aot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// REQUIRES: opencl-aot, cpu, linux
22

3-
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64-unknown-unknown-sycldevice %S/assert.cpp -o %t.aot.out
3+
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %S/assert.cpp -o %t.aot.out
44
// RUN: %CPU_RUN_PLACEHOLDER EXPECTED_SIGNAL=SIGABRT SHOULD_CRASH=1 %t.aot.out 2>%t.aot.msg
55
// RUN: FileCheck %S/assert.cpp --input-file %t.aot.msg --check-prefixes=CHECK-MESSAGE

0 commit comments

Comments
 (0)