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

Commit d05cf86

Browse files
committed
[SYCL] Rename ROCm to HIP in on-devce tests
1 parent 748f7ee commit d05cf86

25 files changed

+36
-37
lines changed

SYCL/AtomicRef/atomic_memory_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
// RUN: %ACC_RUN_PLACEHOLDER %t.out
6-
// L0, OpenCL, and ROCm backends don't currently support
6+
// L0, OpenCL, and HIP backends don't currently support
77
// info::device::atomic_memory_order_capabilities
88
// UNSUPPORTED: level_zero || opencl || hip
99

SYCL/AtomicRef/atomic_memory_order_acq_rel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %ACC_RUN_PLACEHOLDER %t.out
6-
// L0, OpenCL, and ROCm backends don't currently support
6+
// L0, OpenCL, and HIP backends don't currently support
77
// info::device::atomic_memory_order_capabilities
8-
// UNSUPPORTED: level_zero || opencl || rocm
8+
// UNSUPPORTED: level_zero || opencl || hip
99

1010
// NOTE: Tests load and store for acquire-release memory ordering.
1111

SYCL/AtomicRef/atomic_memory_order_acq_rel_atomic64.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %ACC_RUN_PLACEHOLDER %t.out
6-
// L0, OpenCL, and ROCm backends don't currently support
6+
// L0, OpenCL, and HIP backends don't currently support
77
// info::device::atomic_memory_order_capabilities
8-
// UNSUPPORTED: level_zero || opencl || rocm
8+
// UNSUPPORTED: level_zero || opencl || hip
99

1010
// NOTE: Tests load and store for acquire-release memory ordering with 64-bit
1111
// values.

SYCL/AtomicRef/atomic_memory_order_seq_cst.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %ACC_RUN_PLACEHOLDER %t.out
6-
// L0, OpenCL, and ROCm backends don't currently support
6+
// L0, OpenCL, and HIP backends don't currently support
77
// info::device::atomic_memory_order_capabilities
8-
// UNSUPPORTED: level_zero || opencl || rocm
8+
// UNSUPPORTED: level_zero || opencl || hip
99

1010
// NOTE: Tests load and store for sequentially consistent memory ordering.
1111

SYCL/AtomicRef/atomic_memory_order_seq_cst_atomic64.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %ACC_RUN_PLACEHOLDER %t.out
6-
// L0, OpenCL, and ROCm backends don't currently support
6+
// L0, OpenCL, and HIP backends don't currently support
77
// info::device::atomic_memory_order_capabilities
8-
// UNSUPPORTED: level_zero || opencl || rocm
8+
// UNSUPPORTED: level_zero || opencl || hip
99

1010
// NOTE: Tests load and store for sequentially consistent memory ordering with
1111
// 64-bit values.

SYCL/Basic/aspects.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: %clangxx -fsycl %s -o %t.out
22
// RUN: env SYCL_DEVICE_FILTER=%sycl_be %t.out
33
//
4-
// Hip is missing some of the parameters tested here so it fails with ROCm for
5-
// NVIDIA
6-
// XFAIL: rocm_nvidia
4+
// Hip is missing some of the parameters tested here so it fails with NVIDIA
5+
// XFAIL: hip_nvidia
76

87
//==--------------- aspects.cpp - SYCL device test ------------------------==//
98
//

SYCL/Basic/image/srgba-read.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
// XFAIL: level_zero
66
// UNSUPPORTED: cuda
7-
// UNSUPPORTED: rocm_nvidia
8-
// UNSUPPORTED: rocm_amd
7+
// UNSUPPORTED: hip
98

109
#include <sycl/sycl.hpp>
1110

SYCL/Basic/intel-ext-device.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
//
55
// REQUIRES: gpu
66
// UNSUPPORTED: cuda
7-
// UNSUPPORTED: rocm_nvidia
8-
// UNSUPPORTED: rocm_amd
7+
// UNSUPPORTED: hip
98

109
//==--------- intel-ext-device.cpp - SYCL device test ------------==//
1110
//

SYCL/Basic/span.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// RUN: %GPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55
//
6-
// Fails to release USM pointer on ROCm for NVIDIA
7-
// XFAIL: rocm_nvidia
6+
// Fails to release USM pointer on HIP for NVIDIA
7+
// XFAIL: hip_nvidia
88

99
#include <numeric>
1010
#include <sycl/sycl.hpp>

SYCL/GroupAlgorithm/SYCL2020/all_of.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55
//
66
// Missing __spirv_GroupAll on AMD:
7-
// XFAIL: rocm_amd
7+
// XFAIL: hip_amd
88

99
#include "support.h"
1010
#include <CL/sycl.hpp>

SYCL/GroupAlgorithm/SYCL2020/any_of.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55
//
66
// Missing __spirv_GroupAny on AMD:
7-
// XFAIL: rocm_amd
7+
// XFAIL: hip_amd
88

99
#include "support.h"
1010
#include <CL/sycl.hpp>

SYCL/GroupAlgorithm/SYCL2020/exclusive_scan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//
66
// Missing __spirv_GroupIAdd, __spirv_GroupBroadcast, __spirv_GroupSMin and
77
// __spirv_GroupSMax on AMD:
8-
// XFAIL: rocm_amd
8+
// XFAIL: hip_amd
99

1010
// TODO: enable compile+runtime checks for operations defined in SPIR-V 1.3.
1111
// That requires either adding a switch to clang (-spirv-max-version=1.3) or

SYCL/GroupAlgorithm/SYCL2020/group_broadcast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55
//
66
// Missing __spirv_GroupBroadcast on AMD:
7-
// XFAIL: rocm_amd
7+
// XFAIL: hip_amd
88

99
#include "support.h"
1010
#include <CL/sycl.hpp>

SYCL/GroupAlgorithm/SYCL2020/inclusive_scan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//
66
// Missing __spirv_GroupIAdd, __spirv_GroupBroadcast, __spirv_GroupSMin and
77
// __spirv_GroupSMax on AMD:
8-
// XFAIL: rocm_amd
8+
// XFAIL: hip_amd
99

1010
// TODO: enable compile+runtime checks for operations defined in SPIR-V 1.3.
1111
// That requires either adding a switch to clang (-spirv-max-version=1.3) or

SYCL/GroupAlgorithm/SYCL2020/none_of.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55
//
66
// Missing __spirv_GroupAll and __spirv_GroupAny on AMD:
7-
// XFAIL: rocm_amd
7+
// XFAIL: hip_amd
88

99
#include "support.h"
1010
#include <CL/sycl.hpp>

SYCL/GroupAlgorithm/SYCL2020/permute_select.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//
66
// Missing __spirv_SubgroupId, __spirv_SubgroupMaxSize, __spirv_SubgroupShuffle*
77
// on AMD:
8-
// XFAIL: rocm_amd
8+
// XFAIL: hip_amd
99
//
1010
//==------------ permute_select.cpp -*- C++ -*-----------------------------===//
1111
//

SYCL/GroupAlgorithm/SYCL2020/reduce.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55
//
66
// Missinsg __spirv_GroupIAdd, __spirv_GroupSMin and __spirv_GroupSMax on AMD:
7-
// XFAIL: rocm_amd
7+
// XFAIL: hip_amd
88

99
// TODO: enable compile+runtime checks for operations defined in SPIR-V 1.3.
1010
// That requires either adding a switch to clang (-spirv-max-version=1.3) or

SYCL/GroupAlgorithm/SYCL2020/shift_left_right.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//
66
// Missing __spirv_SubgroupId, __spirv_SubgroupMaxSize, __spirv_SubgroupShuffle*
77
// on AMD:
8-
// XFAIL: rocm_amd
8+
// XFAIL: hip_amd
99
//
1010
//==------------ shift_left_right.cpp -*- C++ -*----------------------------==//
1111
//

SYCL/GroupAlgorithm/back_to_back_collectives.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: %ACC_RUN_PLACEHOLDER %t.out
66
//
77
// Missing __spirv_GroupIAdd on AMD:
8-
// XFAIL: rocm_amd
8+
// XFAIL: hip_amd
99

1010
#include <CL/sycl.hpp>
1111
#include <numeric>

SYCL/SpecConstants/2020/host_apis.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
// RUN: %t.out
33

44
// UNSUPPORTED: cuda
5-
// UNSUPPORTED: rocm_nvidia
6-
// UNSUPPORTED: rocm_amd
5+
// UNSUPPORTED: hip
76

87
#include <sycl/sycl.hpp>
98

SYCL/SpecConstants/2020/kernel_lambda_with_kernel_handler_arg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %CPU_RUN_PLACEHOLDER %t.out
33
//
44
// Hits an assert in the Lower Work Group Scope Code pass on AMD:
5-
// XFAIL: rocm_amd
5+
// XFAIL: hip_amd
66

77
// This test checks all possible scenarios of running single_task, parallel_for
88
// and parallel_for_work_group to verify that this code compiles and runs

SYCL/SpecConstants/2020/non_native/aot_w_kernel_handler_wo_spec_consts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %CPU_RUN_PLACEHOLDER %t.out
33
//
44
// Hits an assert in the Lower Work Group Scope Code pass on AMD:
5-
// XFAIL: rocm_amd
5+
// XFAIL: hip_amd
66

77
// This test checks correctness of compiling and running of application with
88
// kernel lambdas containing kernel_handler arguments and w/o usage of

SYCL/SpecConstants/2020/non_native/gpu.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
// UNSUPPORTED: cuda
33
// CUDA is not compatible with SPIR.
44
//
5-
// UNSUPPORTED: rocm_nvidia
6-
// UNSUPPORTED: rocm_amd
7-
// ROCm is not compatible with SPIR.
5+
// UNSUPPORTED: hip
6+
// HIP is not compatible with SPIR.
87

98
// RUN: %clangxx -fsycl -fsycl-targets=spir64_gen-unknown-unknown-sycldevice -Xsycl-target-backend=spir64_gen-unknown-unknown-sycldevice "-device *" %S/Inputs/common.cpp -o %t.out
109
// RUN: %GPU_RUN_PLACEHOLDER %t.out

SYCL/USM/dep_events.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
1313
// RUN: %ACC_RUN_PLACEHOLDER %t1.out
1414
//
15-
// XFAIL: cuda || rocm
15+
// XFAIL: cuda || hip
1616
// TODO enable the test when cuda_piextUSMEnqueuePrefetch and
17-
// rocm_piextUSMEnqueuePrefetch starts handling flags
17+
// hip_piextUSMEnqueuePrefetch starts handling flags
1818

1919
#include <CL/sycl.hpp>
2020

SYCL/lit.cfg.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,11 @@
184184
lit_config.error("Unknown HIP platform '" + config.hip_platform + "' supported platforms are " + ', '.join(supported_hip_platforms))
185185

186186
if config.sycl_be == "hip" and config.hip_platform == "AMD":
187+
config.available_features.add('hip_amd')
187188
arch_flag = '-Xsycl-target-backend=amdgcn-amd-amdhsa-sycldevice --offload-arch=' + config.amd_arch
189+
elif config.sycl_be == "hip" and config.hip_platform == "NVIDIA":
190+
config.available_features.add('hip_nvidia')
191+
arch_flag = ""
188192
else:
189193
arch_flag = ""
190194

0 commit comments

Comments
 (0)