diff --git a/sycl-jit/test/internalization/promote-private-non-unit-hip.ll b/sycl-jit/test/internalization/promote-private-non-unit-hip.ll index 592987b6ae0d6..2037979b7e89f 100644 --- a/sycl-jit/test/internalization/promote-private-non-unit-hip.ll +++ b/sycl-jit/test/internalization/promote-private-non-unit-hip.ll @@ -1,4 +1,4 @@ -; REQUIRES: hip_amd +; REQUIRES: hip ; RUN: opt -load-pass-plugin %shlibdir/SYCLKernelJIT%shlibext \ ; RUN: -passes=sycl-internalization -S %s | FileCheck %s diff --git a/sycl-jit/test/kernel-fusion/check-failed-remapping-amdgpu.ll b/sycl-jit/test/kernel-fusion/check-failed-remapping-amdgpu.ll index 69b9ab3b7f293..8dd7784902909 100644 --- a/sycl-jit/test/kernel-fusion/check-failed-remapping-amdgpu.ll +++ b/sycl-jit/test/kernel-fusion/check-failed-remapping-amdgpu.ll @@ -1,4 +1,4 @@ -; REQUIRES: hip_amd +; REQUIRES: hip ; RUN: opt -load-pass-plugin %shlibdir/SYCLKernelJIT%shlibext \ ; RUN: -passes=sycl-kernel-fusion -S %s | FileCheck %s diff --git a/sycl-jit/test/kernel-fusion/check-remapping-amdgpu.ll b/sycl-jit/test/kernel-fusion/check-remapping-amdgpu.ll index 52e4710fd0c2d..f142e9d89322b 100644 --- a/sycl-jit/test/kernel-fusion/check-remapping-amdgpu.ll +++ b/sycl-jit/test/kernel-fusion/check-remapping-amdgpu.ll @@ -1,4 +1,4 @@ -; REQUIRES: hip_amd +; REQUIRES: hip ; RUN: opt -load-pass-plugin %shlibdir/SYCLKernelJIT%shlibext \ ; RUN: -passes=sycl-kernel-fusion -S %s | FileCheck %s diff --git a/sycl-jit/test/kernel-fusion/check-remapping-interproc-amdgpu.ll b/sycl-jit/test/kernel-fusion/check-remapping-interproc-amdgpu.ll index 7a214eef3b2dd..65a843935933b 100644 --- a/sycl-jit/test/kernel-fusion/check-remapping-interproc-amdgpu.ll +++ b/sycl-jit/test/kernel-fusion/check-remapping-interproc-amdgpu.ll @@ -1,4 +1,4 @@ -; REQUIRES: hip_amd +; REQUIRES: hip ; RUN: opt -load-pass-plugin %shlibdir/SYCLKernelJIT%shlibext \ ; RUN: -passes=sycl-kernel-fusion -S %s | FileCheck %s diff --git a/sycl-jit/test/lit.cfg.py b/sycl-jit/test/lit.cfg.py index fffa59585ef0e..3abb6c1d1b2d6 100644 --- a/sycl-jit/test/lit.cfg.py +++ b/sycl-jit/test/lit.cfg.py @@ -27,4 +27,4 @@ if "NVPTX" in config.llvm_targets_to_build: config.available_features.add("cuda") if "AMDGPU" in config.llvm_targets_to_build: - config.available_features.add("hip_amd") + config.available_features.add("hip") diff --git a/sycl-jit/test/materializer/basic.ll b/sycl-jit/test/materializer/basic.ll index 524322116a384..2885eb77bde78 100644 --- a/sycl-jit/test/materializer/basic.ll +++ b/sycl-jit/test/materializer/basic.ll @@ -1,4 +1,4 @@ -; RUN: %if hip_amd %{ opt -load-pass-plugin %shlibdir/SYCLKernelJIT%shlibext\ +; RUN: %if hip %{ opt -load-pass-plugin %shlibdir/SYCLKernelJIT%shlibext\ ; RUN: --mtriple amdgcn-amd-amdhsa -passes=sycl-spec-const-materializer -S %s |\ ; RUN: FileCheck --check-prefix=CHECK-MATERIALIZER %s %} @@ -6,7 +6,7 @@ ; RUN: --mtriple nvptx64-nvidia-cuda -passes=sycl-spec-const-materializer -S %s |\ ; RUN: FileCheck --check-prefix=CHECK-MATERIALIZER %s %} -; RUN: %if hip_amd %{ opt -load-pass-plugin %shlibdir/SYCLKernelJIT%shlibext\ +; RUN: %if hip %{ opt -load-pass-plugin %shlibdir/SYCLKernelJIT%shlibext\ ; RUN: --mtriple amdgcn-amd-amdhsa -passes=sycl-spec-const-materializer,early-cse,adce -S %s |\ ; RUN: FileCheck --check-prefix=CHECK-MATERIALIZER-CSE %s %} diff --git a/sycl-jit/test/materializer/multi_type.ll b/sycl-jit/test/materializer/multi_type.ll index f69bd057748e0..65204e3f12e64 100644 --- a/sycl-jit/test/materializer/multi_type.ll +++ b/sycl-jit/test/materializer/multi_type.ll @@ -1,4 +1,4 @@ -; RUN: %if hip_amd %{ opt -load-pass-plugin %shlibdir/SYCLKernelJIT%shlibext\ +; RUN: %if hip %{ opt -load-pass-plugin %shlibdir/SYCLKernelJIT%shlibext\ ; RUN: --mtriple amdgcn-amd-amdhsa -passes=sycl-spec-const-materializer -S %s |\ ; RUN: FileCheck --check-prefix=CHECK-MATERIALIZER %s %} @@ -6,7 +6,7 @@ ; RUN: --mtriple nvptx64-nvidia-cuda -passes=sycl-spec-const-materializer -S %s |\ ; RUN: FileCheck --check-prefix=CHECK-MATERIALIZER %s %} -; RUN: %if hip_amd %{ opt -load-pass-plugin %shlibdir/SYCLKernelJIT%shlibext\ +; RUN: %if hip %{ opt -load-pass-plugin %shlibdir/SYCLKernelJIT%shlibext\ ; RUN: --mtriple amdgcn-amd-amdhsa -passes=sycl-spec-const-materializer,early-cse -S %s |\ ; RUN: FileCheck --check-prefix=CHECK-MATERIALIZER-CSE %s %} diff --git a/sycl/test-e2e/Adapters/enqueue-arg-order-buffer.cpp b/sycl/test-e2e/Adapters/enqueue-arg-order-buffer.cpp index 468069e275a29..07fd78194ef71 100644 --- a/sycl/test-e2e/Adapters/enqueue-arg-order-buffer.cpp +++ b/sycl/test-e2e/Adapters/enqueue-arg-order-buffer.cpp @@ -1,4 +1,3 @@ -// UNSUPPORTED: hip_nvidia // RUN: %{build} -Wno-error=deprecated-declarations -o %t.out // RUN: env SYCL_UR_TRACE=2 %{run} %t.out | FileCheck %s diff --git a/sycl/test-e2e/AtomicRef/assignment_atomic64_generic.cpp b/sycl/test-e2e/AtomicRef/assignment_atomic64_generic.cpp index 1469e40139e07..c0bfa74ad33d5 100644 --- a/sycl/test-e2e/AtomicRef/assignment_atomic64_generic.cpp +++ b/sycl/test-e2e/AtomicRef/assignment_atomic64_generic.cpp @@ -2,7 +2,7 @@ // RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out // RUN: %{run} %t.out -// UNSUPPORTED: hip_amd +// UNSUPPORTED: hip // UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/15791 #include "assignment.h" diff --git a/sycl/test-e2e/AtomicRef/exchange.cpp b/sycl/test-e2e/AtomicRef/exchange.cpp index 0252142480c52..7e405689c65c8 100644 --- a/sycl/test-e2e/AtomicRef/exchange.cpp +++ b/sycl/test-e2e/AtomicRef/exchange.cpp @@ -1,7 +1,7 @@ // RUN: %{build} -o %t.out // RUN: %{run} %t.out -// UNSUPPORTED: hip_amd +// UNSUPPORTED: hip // UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/15791 #include "exchange.h" diff --git a/sycl/test-e2e/Basic/built-ins.cpp b/sycl/test-e2e/Basic/built-ins.cpp index e10cf7ba8a08a..5967e7837d505 100644 --- a/sycl/test-e2e/Basic/built-ins.cpp +++ b/sycl/test-e2e/Basic/built-ins.cpp @@ -5,7 +5,7 @@ // RUN: %{run} %t_var.out | FileCheck %s // Hits an assertion and kernel page fault with AMD: -// UNSUPPORTED: hip_amd +// UNSUPPORTED: hip // UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/14404 #include diff --git a/sycl/test-e2e/Basic/host-task-dependency.cpp b/sycl/test-e2e/Basic/host-task-dependency.cpp index 817b6c46b087b..3b015051377c9 100644 --- a/sycl/test-e2e/Basic/host-task-dependency.cpp +++ b/sycl/test-e2e/Basic/host-task-dependency.cpp @@ -2,8 +2,7 @@ // RUN: env SYCL_UR_TRACE=2 %{run} %t.out 2>&1 | FileCheck %s // // TODO: Behaviour is unstable for level zero on Windows. Enable when fixed. -// TODO: The test is sporadically fails on CUDA. Enable when fixed. -// UNSUPPORTED: (windows && level_zero) || hip_nvidia +// UNSUPPORTED: (windows && level_zero) #define SYCL2020_DISABLE_DEPRECATION_WARNINGS diff --git a/sycl/test-e2e/DeviceGlobal/device_global_static.cpp b/sycl/test-e2e/DeviceGlobal/device_global_static.cpp index 363c716b9d98a..75c7fc165016d 100644 --- a/sycl/test-e2e/DeviceGlobal/device_global_static.cpp +++ b/sycl/test-e2e/DeviceGlobal/device_global_static.cpp @@ -4,7 +4,7 @@ // UNSUPPORTED: opencl && gpu // UNSUPPORTED-TRACKER: GSD-4287 // -// UNSUPPORTED: hip_amd +// UNSUPPORTED: hip // UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/15329 // // Tests static device_global access through device kernels. diff --git a/sycl/test-e2e/DeviceImageDependencies/NewOffloadDriver/free_function_kernels.cpp b/sycl/test-e2e/DeviceImageDependencies/NewOffloadDriver/free_function_kernels.cpp index 74758a837cd46..f0de42b7f13f9 100644 --- a/sycl/test-e2e/DeviceImageDependencies/NewOffloadDriver/free_function_kernels.cpp +++ b/sycl/test-e2e/DeviceImageDependencies/NewOffloadDriver/free_function_kernels.cpp @@ -8,7 +8,7 @@ // UNSUPPORTED: cuda // UNSUPPORTED-INTENDED: Not implemented yet for Nvidia/AMD backends. -// XFAIL: hip_amd +// XFAIL: hip // XFAIL-TRACKER: https://github.com/intel/llvm/issues/15742 #include diff --git a/sycl/test-e2e/DeviceImageDependencies/free_function_kernels.cpp b/sycl/test-e2e/DeviceImageDependencies/free_function_kernels.cpp index 5c50f8430ad78..40862c5dc6ad9 100644 --- a/sycl/test-e2e/DeviceImageDependencies/free_function_kernels.cpp +++ b/sycl/test-e2e/DeviceImageDependencies/free_function_kernels.cpp @@ -7,7 +7,7 @@ // The name mangling for free function kernels currently does not work with PTX. // UNSUPPORTED: cuda -// XFAIL: hip_amd +// XFAIL: hip // XFAIL-TRACKER: https://github.com/intel/llvm/issues/15742 #include diff --git a/sycl/test-e2e/HierPar/hier_par_wgscope.cpp b/sycl/test-e2e/HierPar/hier_par_wgscope.cpp index e950055641770..dc709664e53e0 100644 --- a/sycl/test-e2e/HierPar/hier_par_wgscope.cpp +++ b/sycl/test-e2e/HierPar/hier_par_wgscope.cpp @@ -3,7 +3,7 @@ // RUN: %{run} %t.out // // Test hangs on AMD -// UNSUPPORTED: hip_amd +// UNSUPPORTED: hip //==- hier_par_wgscope.cpp --- hierarchical parallelism test for WG scope---==// // diff --git a/sycl/test-e2e/InlineAsm/asm_16_empty.cpp b/sycl/test-e2e/InlineAsm/asm_16_empty.cpp index a1d2ec9220763..0bc3d9624f749 100644 --- a/sycl/test-e2e/InlineAsm/asm_16_empty.cpp +++ b/sycl/test-e2e/InlineAsm/asm_16_empty.cpp @@ -1,4 +1,4 @@ -// UNSUPPORTED: cuda || hip_nvidia +// UNSUPPORTED: cuda // REQUIRES: gpu,linux,sg-16 // RUN: %{build} -o %t.out // RUN: %{run} %t.out diff --git a/sycl/test-e2e/InlineAsm/asm_8_empty.cpp b/sycl/test-e2e/InlineAsm/asm_8_empty.cpp index 4a690b3088b51..a87704672680b 100644 --- a/sycl/test-e2e/InlineAsm/asm_8_empty.cpp +++ b/sycl/test-e2e/InlineAsm/asm_8_empty.cpp @@ -1,4 +1,4 @@ -// UNSUPPORTED: cuda || hip_nvidia +// UNSUPPORTED: cuda // REQUIRES: gpu,linux,sg-8 // RUN: %{build} -o %t.out // RUN: %{run} %t.out diff --git a/sycl/test-e2e/OptionalKernelFeatures/is_compatible/is_compatible_amdgcn.cpp b/sycl/test-e2e/OptionalKernelFeatures/is_compatible/is_compatible_amdgcn.cpp index e1616ec80dec0..c0a1cb07db1e1 100644 --- a/sycl/test-e2e/OptionalKernelFeatures/is_compatible/is_compatible_amdgcn.cpp +++ b/sycl/test-e2e/OptionalKernelFeatures/is_compatible/is_compatible_amdgcn.cpp @@ -1,4 +1,4 @@ -// REQUIRES: hip_amd, opencl, gpu, cpu +// REQUIRES: hip, opencl, gpu, cpu // REQUIRES: build-and-run-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 diff --git a/sycl/test-e2e/Printf/char.cpp b/sycl/test-e2e/Printf/char.cpp index 550186eefea27..f409a5f8150d1 100644 --- a/sycl/test-e2e/Printf/char.cpp +++ b/sycl/test-e2e/Printf/char.cpp @@ -4,7 +4,7 @@ // The test is written using conversion specifiers table from cppreference [1] // [1]: https://en.cppreference.com/w/cpp/io/c/fprintf // -// UNSUPPORTED: hip_amd +// UNSUPPORTED: hip // // RUN: %{build} -o %t.out // RUN: %{run} %t.out | FileCheck %s diff --git a/sycl/test-e2e/Printf/double.cpp b/sycl/test-e2e/Printf/double.cpp index f7c0292fc7a21..ab756e6e83372 100644 --- a/sycl/test-e2e/Printf/double.cpp +++ b/sycl/test-e2e/Printf/double.cpp @@ -5,7 +5,7 @@ // [1]: https://en.cppreference.com/w/cpp/io/c/fprintf // // REQUIRES: aspect-fp64 -// UNSUPPORTED: hip_amd +// UNSUPPORTED: hip // // RUN: %{build} -o %t.out // RUN: %{run} %t.out | FileCheck %s diff --git a/sycl/test-e2e/Printf/float.cpp b/sycl/test-e2e/Printf/float.cpp index 0643b06684860..070649f99d849 100644 --- a/sycl/test-e2e/Printf/float.cpp +++ b/sycl/test-e2e/Printf/float.cpp @@ -4,7 +4,7 @@ // The test is written using conversion specifiers table from cppreference [1] // [1]: https://en.cppreference.com/w/cpp/io/c/fprintf // -// UNSUPPORTED: hip_amd +// UNSUPPORTED: hip // // RUN: %{build} -o %t.out // RUN: %{run} %t.out | FileCheck %s diff --git a/sycl/test-e2e/Printf/int.cpp b/sycl/test-e2e/Printf/int.cpp index 17b3e212c5988..d87d35bbf5186 100644 --- a/sycl/test-e2e/Printf/int.cpp +++ b/sycl/test-e2e/Printf/int.cpp @@ -4,7 +4,7 @@ // The test is written using conversion specifiers table from cppreference [1] // [1]: https://en.cppreference.com/w/cpp/io/c/fprintf // -// UNSUPPORTED: hip_amd +// UNSUPPORTED: hip // FIXME: The 'short' type gets overflown with sporadic values on CUDA. // XFAIL: cuda // XFAIL-TRACKER: https://github.com/intel/llvm/issues/14734 diff --git a/sycl/test-e2e/Printf/mixed-address-space.cpp b/sycl/test-e2e/Printf/mixed-address-space.cpp index d79013007ca03..72d7c009569bd 100644 --- a/sycl/test-e2e/Printf/mixed-address-space.cpp +++ b/sycl/test-e2e/Printf/mixed-address-space.cpp @@ -1,7 +1,7 @@ // This test is written with an aim to check that experimental::printf versions // for constant and generic address space can be used in the same module. // -// UNSUPPORTED: hip_amd +// UNSUPPORTED: hip // XFAIL: cuda && windows // XFAIL-TRACKER: https://github.com/intel/llvm/issues/14733 // FIXME: Drop the test once generic AS support is considered stable and the diff --git a/sycl/test-e2e/Printf/percent-symbol.cpp b/sycl/test-e2e/Printf/percent-symbol.cpp index f08cd3e085d0d..ea3e1ea40a925 100644 --- a/sycl/test-e2e/Printf/percent-symbol.cpp +++ b/sycl/test-e2e/Printf/percent-symbol.cpp @@ -4,7 +4,7 @@ // The test is written using conversion specifiers table from cppreference [1] // [1]: https://en.cppreference.com/w/cpp/io/c/fprintf // -// UNSUPPORTED: hip_amd +// UNSUPPORTED: hip // XFAIL: cuda && windows // XFAIL-TRACKER: https://github.com/intel/llvm/issues/14733 // RUN: %{build} -o %t.out diff --git a/sycl/test-e2e/README.md b/sycl/test-e2e/README.md index 396aa9ef7341a..f3b2ce0582335 100644 --- a/sycl/test-e2e/README.md +++ b/sycl/test-e2e/README.md @@ -184,12 +184,6 @@ at the full path specified by this variable. ***CUDA_LIBS_DIR*** - path to CUDA libraries. -***HIP_PLATFORM*** - platform selection for HIP targeted devices. -Defaults to AMD if no value is given. Supported values are: - -* **AMD** - for HIP to target AMD GPUs -* **NVIDIA** - for HIP to target NVIDIA GPUs - ***AMD_ARCH*** - flag may be set for when using HIP AMD triple. For example it may be set to "gfx906". Otherwise must be provided via the ***amd_arch*** LIT parameter (e.g., ***--param amd_arch=gfx906***) at runtime via the command line diff --git a/sycl/test-e2e/Regression/DAE-separate-compile.cpp b/sycl/test-e2e/Regression/DAE-separate-compile.cpp index 64e19ec8f90ad..ab6712507f439 100644 --- a/sycl/test-e2e/Regression/DAE-separate-compile.cpp +++ b/sycl/test-e2e/Regression/DAE-separate-compile.cpp @@ -9,8 +9,7 @@ // RUN: %{run} %t.out // Failing on HIP AMD, enable after fixed -// UNSUPPORTED: hip_amd - +// UNSUPPORTED: hip #include #include diff --git a/sycl/test-e2e/Regression/static-buffer-dtor.cpp b/sycl/test-e2e/Regression/static-buffer-dtor.cpp index 8ff9328d6535d..e84d3a062978b 100644 --- a/sycl/test-e2e/Regression/static-buffer-dtor.cpp +++ b/sycl/test-e2e/Regression/static-buffer-dtor.cpp @@ -13,7 +13,7 @@ // RUN: %{run} %t.out // Failing on HIP AMD -// UNSUPPORTED: hip_amd +// UNSUPPORTED: hip // Windows doesn't yet have full shutdown(). // UNSUPPORTED: ze_debug && windows diff --git a/sycl/test-e2e/Sampler/normalized-clampedge-nearest.cpp b/sycl/test-e2e/Sampler/normalized-clampedge-nearest.cpp index 6f349254dda55..b1f13e0b63140 100644 --- a/sycl/test-e2e/Sampler/normalized-clampedge-nearest.cpp +++ b/sycl/test-e2e/Sampler/normalized-clampedge-nearest.cpp @@ -4,7 +4,7 @@ // // Missing __spirv_ImageWrite, __spirv_SampledImage, // __spirv_ImageSampleExplicitLod on AMD -// XFAIL: hip_amd +// XFAIL: hip // XFAIL-TRACKER: https://github.com/intel/llvm/issues/14732 /* diff --git a/sycl/test-e2e/Tracing/usm/queue_copy_released_pointer.cpp b/sycl/test-e2e/Tracing/usm/queue_copy_released_pointer.cpp index a37e5b8f4238c..86992e63e57fb 100644 --- a/sycl/test-e2e/Tracing/usm/queue_copy_released_pointer.cpp +++ b/sycl/test-e2e/Tracing/usm/queue_copy_released_pointer.cpp @@ -1,4 +1,4 @@ -// UNSUPPORTED: windows || hip_amd +// UNSUPPORTED: windows || hip // RUN: %{build} -o %t.out // RUN: not --crash env SYCL_TRACE_TERMINATE_ON_WARNING=1 %{run} sycl-trace --verify %t.out | FileCheck %s diff --git a/sycl/test-e2e/Tracing/usm/queue_single_task_nullptr.cpp b/sycl/test-e2e/Tracing/usm/queue_single_task_nullptr.cpp index 4c4299dd93d8e..d7407bbeeab97 100644 --- a/sycl/test-e2e/Tracing/usm/queue_single_task_nullptr.cpp +++ b/sycl/test-e2e/Tracing/usm/queue_single_task_nullptr.cpp @@ -1,4 +1,4 @@ -// UNSUPPORTED: windows || hip_amd +// UNSUPPORTED: windows || hip // RUN: %{build} -o %t.out // RUN: not --crash env SYCL_TRACE_TERMINATE_ON_WARNING=1 %{run} sycl-trace --verify %t.out | FileCheck %s diff --git a/sycl/test-e2e/Tracing/usm/queue_single_task_released_pointer.cpp b/sycl/test-e2e/Tracing/usm/queue_single_task_released_pointer.cpp index 61e27b7927f7b..4444ee1b7b903 100644 --- a/sycl/test-e2e/Tracing/usm/queue_single_task_released_pointer.cpp +++ b/sycl/test-e2e/Tracing/usm/queue_single_task_released_pointer.cpp @@ -1,4 +1,4 @@ -// UNSUPPORTED: windows || hip_amd +// UNSUPPORTED: windows || hip // RUN: %{build} -o %t.out // RUN: not --crash env SYCL_TRACE_TERMINATE_ON_WARNING=1 %{run} sycl-trace --verify %t.out | FileCheck %s diff --git a/sycl/test-e2e/USM/memadvise_flags.cpp b/sycl/test-e2e/USM/memadvise_flags.cpp index 7de2a8a931f30..df2a1b31532ad 100644 --- a/sycl/test-e2e/USM/memadvise_flags.cpp +++ b/sycl/test-e2e/USM/memadvise_flags.cpp @@ -1,5 +1,5 @@ // RUN: %{build} -o %t1.out -// REQUIRES: cuda || hip_amd +// REQUIRES: cuda || hip // RUN: %{run} %t1.out //==---------------- memadvise_flags.cpp -----------------------------------==// diff --git a/sycl/test-e2e/USM/memops2d/copy2d_dhost_to_shared.cpp b/sycl/test-e2e/USM/memops2d/copy2d_dhost_to_shared.cpp index 317447d645b67..90eaa14189ae1 100644 --- a/sycl/test-e2e/USM/memops2d/copy2d_dhost_to_shared.cpp +++ b/sycl/test-e2e/USM/memops2d/copy2d_dhost_to_shared.cpp @@ -13,7 +13,7 @@ // Temporarily disabled until the failure is addressed. // UNSUPPORTED: (level_zero && windows) -// UNSUPPORTED: (gpu-intel-dg2 || hip_amd) && linux +// UNSUPPORTED: (gpu-intel-dg2 || hip) && linux // UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/15648 #include "copy2d_common.hpp" diff --git a/sycl/test-e2e/USM/memops2d/copy2d_host_to_shared.cpp b/sycl/test-e2e/USM/memops2d/copy2d_host_to_shared.cpp index 48bf7fe13abb6..fa39cfdcaa6f4 100644 --- a/sycl/test-e2e/USM/memops2d/copy2d_host_to_shared.cpp +++ b/sycl/test-e2e/USM/memops2d/copy2d_host_to_shared.cpp @@ -13,7 +13,7 @@ // Temporarily disabled until the failure is addressed. // UNSUPPORTED: (level_zero && windows) -// UNSUPPORTED: (gpu-intel-dg2 || hip_amd) && linux +// UNSUPPORTED: (gpu-intel-dg2 || hip) && linux // UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/15648 #include "copy2d_common.hpp" diff --git a/sycl/test-e2e/USM/memops2d/copy2d_shared_to_dhost.cpp b/sycl/test-e2e/USM/memops2d/copy2d_shared_to_dhost.cpp index ab766f59c3d10..85498b3a9f993 100644 --- a/sycl/test-e2e/USM/memops2d/copy2d_shared_to_dhost.cpp +++ b/sycl/test-e2e/USM/memops2d/copy2d_shared_to_dhost.cpp @@ -13,7 +13,7 @@ // Temporarily disabled until the failure is addressed. // UNSUPPORTED: (level_zero && windows) -// UNSUPPORTED: (gpu-intel-dg2 || hip_amd) && linux +// UNSUPPORTED: (gpu-intel-dg2 || hip) && linux // UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/15648 #include "copy2d_common.hpp" diff --git a/sycl/test-e2e/USM/memops2d/copy2d_shared_to_host.cpp b/sycl/test-e2e/USM/memops2d/copy2d_shared_to_host.cpp index de99f08d24096..26497825c4f51 100644 --- a/sycl/test-e2e/USM/memops2d/copy2d_shared_to_host.cpp +++ b/sycl/test-e2e/USM/memops2d/copy2d_shared_to_host.cpp @@ -13,7 +13,7 @@ // Temporarily disabled until the failure is addressed. // UNSUPPORTED: (level_zero && windows) -// UNSUPPORTED: (gpu-intel-dg2 || hip_amd) && linux +// UNSUPPORTED: (gpu-intel-dg2 || hip) && linux // UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/15648 #include "copy2d_common.hpp" diff --git a/sycl/test-e2e/USM/memops2d/memcpy2d_dhost_to_shared.cpp b/sycl/test-e2e/USM/memops2d/memcpy2d_dhost_to_shared.cpp index f01317710c35d..ca57afcc1e206 100644 --- a/sycl/test-e2e/USM/memops2d/memcpy2d_dhost_to_shared.cpp +++ b/sycl/test-e2e/USM/memops2d/memcpy2d_dhost_to_shared.cpp @@ -13,7 +13,7 @@ // Temporarily disabled until the failure is addressed. // UNSUPPORTED: (level_zero && windows) -// UNSUPPORTED: (gpu-intel-dg2 || hip_amd) && linux +// UNSUPPORTED: (gpu-intel-dg2 || hip) && linux // UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/15648 #include "memcpy2d_common.hpp" diff --git a/sycl/test-e2e/USM/memops2d/memcpy2d_host_to_shared.cpp b/sycl/test-e2e/USM/memops2d/memcpy2d_host_to_shared.cpp index 0418678424dfc..51916927f3bed 100644 --- a/sycl/test-e2e/USM/memops2d/memcpy2d_host_to_shared.cpp +++ b/sycl/test-e2e/USM/memops2d/memcpy2d_host_to_shared.cpp @@ -13,7 +13,7 @@ // Temporarily disabled until the failure is addressed. // UNSUPPORTED: (level_zero && windows) -// UNSUPPORTED: (gpu-intel-dg2 || hip_amd) && linux +// UNSUPPORTED: (gpu-intel-dg2 || hip) && linux // UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/15648 #include "memcpy2d_common.hpp" diff --git a/sycl/test-e2e/USM/memops2d/memcpy2d_shared_to_dhost.cpp b/sycl/test-e2e/USM/memops2d/memcpy2d_shared_to_dhost.cpp index 7e2dcb8a9bd4d..279d62c51cb87 100644 --- a/sycl/test-e2e/USM/memops2d/memcpy2d_shared_to_dhost.cpp +++ b/sycl/test-e2e/USM/memops2d/memcpy2d_shared_to_dhost.cpp @@ -10,7 +10,7 @@ // RUN: %{build} -o %t.out // RUN: %{run} %t.out -// UNSUPPORTED: (gpu-intel-dg2 || hip_amd) && linux +// UNSUPPORTED: (gpu-intel-dg2 || hip) && linux // UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/15648 // Temporarily disabled until the failure is addressed. diff --git a/sycl/test-e2e/USM/memops2d/memcpy2d_shared_to_host.cpp b/sycl/test-e2e/USM/memops2d/memcpy2d_shared_to_host.cpp index 645adac407f90..f30e80c39b4dd 100644 --- a/sycl/test-e2e/USM/memops2d/memcpy2d_shared_to_host.cpp +++ b/sycl/test-e2e/USM/memops2d/memcpy2d_shared_to_host.cpp @@ -13,7 +13,7 @@ // Temporarily disabled until the failure is addressed. // UNSUPPORTED: (level_zero && windows) -// UNSUPPORTED: (gpu-intel-dg2 || hip_amd) && linux +// UNSUPPORTED: (gpu-intel-dg2 || hip) && linux // UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/15648 #include "memcpy2d_common.hpp" diff --git a/sycl/test-e2e/USM/memory_coherency_hip.cpp b/sycl/test-e2e/USM/memory_coherency_hip.cpp index a6cca6620deb7..e060b018025d7 100644 --- a/sycl/test-e2e/USM/memory_coherency_hip.cpp +++ b/sycl/test-e2e/USM/memory_coherency_hip.cpp @@ -1,5 +1,5 @@ // RUN: %{build} -o %t1.out -// REQUIRES: hip_amd +// REQUIRES: hip // RUN: %{run} %t1.out //==---- memory_coherency_hip.cpp -----------------------------------------==// diff --git a/sycl/test-e2e/format.py b/sycl/test-e2e/format.py index a69810145507d..fc04da53e6730 100644 --- a/sycl/test-e2e/format.py +++ b/sycl/test-e2e/format.py @@ -17,10 +17,7 @@ def get_triple(test, backend): if backend == "cuda": return "nvptx64-nvidia-cuda" if backend == "hip": - if test.config.hip_platform == "NVIDIA": - return "nvptx64-nvidia-cuda" - else: - return "amdgcn-amd-amdhsa" + return "amdgcn-amd-amdhsa" if backend == "native_cpu": return "native_cpu" return "spir64" diff --git a/sycl/test-e2e/lit.cfg.py b/sycl/test-e2e/lit.cfg.py index a374cfaee402f..23a1ec5692afd 100644 --- a/sycl/test-e2e/lit.cfg.py +++ b/sycl/test-e2e/lit.cfg.py @@ -524,18 +524,6 @@ def open_check_file(file_name): if be not in available_devices or dev not in available_devices[be]: lit_config.error("Unsupported device {}".format(d)) -# If HIP_PLATFORM flag is not set, default to AMD, and check if HIP platform is supported -supported_hip_platforms = ["AMD", "NVIDIA"] -if config.hip_platform == "": - config.hip_platform = "AMD" -if config.hip_platform not in supported_hip_platforms: - lit_config.error( - "Unknown HIP platform '" - + config.hip_platform - + "' supported platforms are " - + ", ".join(supported_hip_platforms) - ) - if "cuda:gpu" in config.sycl_devices: if "CUDA_PATH" not in os.environ: if platform.system() == "Windows": @@ -839,7 +827,7 @@ def open_check_file(file_name): # Use short names for LIT rules. features.add(be) - if be == "hip" and config.hip_platform == "AMD": + if be == "hip": if not config.amd_arch: # Guaranteed to be a single element in the set arch = [x for x in architecture_feature][0] @@ -850,15 +838,12 @@ def open_check_file(file_name): ) config.amd_arch = arch.replace(amd_arch_prefix, "") llvm_config.with_system_environment("ROCM_PATH") - config.available_features.add("hip_amd") arch_flag = ( "-Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=" + config.amd_arch ) config.substitutions.append( ("%rocm_path", os.environ.get("ROCM_PATH", "/opt/rocm")) ) - elif be == "hip" and config.hip_platform == "NVIDIA": - config.available_features.add("hip_nvidia") config.sycl_dev_features[sycl_device] = features.union(config.available_features) if is_intel_driver: diff --git a/sycl/test-e2e/lit.site.cfg.py.in b/sycl/test-e2e/lit.site.cfg.py.in index a6b86cb73d505..00928dd9141fc 100644 --- a/sycl/test-e2e/lit.site.cfg.py.in +++ b/sycl/test-e2e/lit.site.cfg.py.in @@ -30,7 +30,6 @@ config.igc_tag_file = os.path.join("/usr/local/lib/igc/", 'IGCTAG.txt') config.sycl_devices = lit_config.params.get("sycl_devices", "@SYCL_TEST_E2E_TARGETS@").split(';') -config.hip_platform = "@HIP_PLATFORM@" config.amd_arch = lit_config.params.get("amd_arch", "@AMD_ARCH@") config.sycl_threads_lib = '@SYCL_THREADS_LIB@' config.extra_environment = lit_config.params.get("extra_environment", "@LIT_EXTRA_ENVIRONMENT@") diff --git a/sycl/test/CMakeLists.txt b/sycl/test/CMakeLists.txt index b0b0629cffbd6..c0a02a874b962 100644 --- a/sycl/test/CMakeLists.txt +++ b/sycl/test/CMakeLists.txt @@ -68,10 +68,10 @@ add_lit_testsuite(check-sycl-deploy "Running the SYCL regression tests" set_target_properties(check-sycl-deploy PROPERTIES FOLDER "SYCL tests") set(TRIPLES "spir64-unknown-unknown") -if (SYCL_BUILD_BACKEND_CUDA OR (SYCL_BUILD_BACKEND_HIP AND "${SYCL_BUILD_PI_HIP_PLATFORM}" STREQUAL "NVIDIA")) +if (SYCL_BUILD_BACKEND_CUDA) set(TRIPLES "${TRIPLES},nvptx64-nvidia-cuda") endif() -if ((SYCL_BUILD_BACKEND_HIP AND "${SYCL_BUILD_PI_HIP_PLATFORM}" STREQUAL "AMD")) +if (SYCL_BUILD_BACKEND_HIP) set(TRIPLES "${TRIPLES},amdgcn-amd-amdhsa") endif() diff --git a/sycl/test/basic_tests/macros.cpp b/sycl/test/basic_tests/macros.cpp index 9eb09d27b1b9e..e9163d4677606 100644 --- a/sycl/test/basic_tests/macros.cpp +++ b/sycl/test/basic_tests/macros.cpp @@ -1,12 +1,12 @@ // RUN: %clangxx %fsycl-host-only -dM -E %s -o %t.host // RUN: %clangxx -fsycl -fsycl-targets=spir64-unknown-unknown -fsycl-device-only -dM -E %s -o %t.device.spirv // RUN: %if cuda %{ %clangxx -fsycl -fsycl-targets=nvptx64-nvidia-cuda -fsycl-device-only -dM -E %s -o %t.device.cuda %} -// RUN: %if hip_amd %{ %clangxx -fsycl -fsycl-targets=amdgcn-amd-amdhsa -fsycl-device-only -dM -E %s -o %t.device.hip %} +// RUN: %if hip %{ %clangxx -fsycl -fsycl-targets=amdgcn-amd-amdhsa -fsycl-device-only -dM -E %s -o %t.device.hip %} // // RUN: FileCheck %s < %t.host --check-prefixes=COMMON --implicit-check-not=__SPIRV // RUN: FileCheck %s < %t.device.spirv --check-prefixes=DEVICE,COMMON --implicit-check-not=__SPIRV // RUN: %if cuda %{ FileCheck %s < %t.device.cuda --check-prefixes=DEVICE,COMMON --implicit-check-not=__SPIRV %} -// RUN: %if hip_amd %{ FileCheck %s < %t.device.hip --check-prefixes=DEVICE,COMMON --implicit-check-not=__SPIRV %} +// RUN: %if hip %{ FileCheck %s < %t.device.hip --check-prefixes=DEVICE,COMMON --implicit-check-not=__SPIRV %} // // FIXME: we should also check that we don't leak __SYCL* and SYCL* macro from // our header files. diff --git a/sycl/test/basic_tests/macros_no_rdc.cpp b/sycl/test/basic_tests/macros_no_rdc.cpp index aed25568e6a6e..22a48012a9006 100644 --- a/sycl/test/basic_tests/macros_no_rdc.cpp +++ b/sycl/test/basic_tests/macros_no_rdc.cpp @@ -2,17 +2,17 @@ // RUN: %clangxx %fsycl-host-only -fno-sycl-rdc -E -dD %s -o %t.host // RUN: %clangxx -fsycl -fsycl-targets=spir64-unknown-unknown -fsycl-device-only -E -dD -fno-sycl-rdc %s -o %t.device.spirv // RUN: %if cuda %{ %clangxx -fsycl -fsycl-targets=nvptx64-nvidia-cuda -fsycl-device-only -E -dD -fno-sycl-rdc %s -o %t.device.cuda %} -// RUN: %if hip_amd %{ %clangxx -fsycl -fsycl-targets=amdgcn-amd-amdhsa -fsycl-device-only -E -dD -fno-sycl-rdc %s -o %t.device.hip %} +// RUN: %if hip %{ %clangxx -fsycl -fsycl-targets=amdgcn-amd-amdhsa -fsycl-device-only -E -dD -fno-sycl-rdc %s -o %t.device.hip %} // // RUN: FileCheck --match-full-lines %s < %t.host --check-prefixes=HOST // RUN: FileCheck --match-full-lines %s < %t.device.spirv --check-prefixes=DEVICE-FULL-LINE --implicit-check-not="#define SYCL_EXTERNAL" // RUN: %if cuda %{ FileCheck --match-full-lines %s < %t.device.cuda --check-prefixes=DEVICE-FULL-LINE --implicit-check-not="#define SYCL_EXTERNAL" %} -// RUN: %if hip_amd %{ FileCheck --match-full-lines %s < %t.device.hip --check-prefixes=DEVICE-FULL-LINE --implicit-check-not="#define SYCL_EXTERNAL" %} +// RUN: %if hip %{ FileCheck --match-full-lines %s < %t.device.hip --check-prefixes=DEVICE-FULL-LINE --implicit-check-not="#define SYCL_EXTERNAL" %} // // Remove __DPCPP_SYCL_EXTERNAL to simplify regex for DEVICE prefix // RUN: sed 's|__DPCPP_SYCL_EXTERNAL||g' %t.device.spirv | FileCheck %s --check-prefixes=DEVICE // RUN: %if cuda %{ sed 's|__DPCPP_SYCL_EXTERNAL||g' %t.device.cuda | FileCheck %s --check-prefixes=DEVICE %} -// RUN: %if hip_amd %{ sed 's|__DPCPP_SYCL_EXTERNAL||g' %t.device.hip | FileCheck %s --check-prefixes=DEVICE %} +// RUN: %if hip %{ sed 's|__DPCPP_SYCL_EXTERNAL||g' %t.device.hip | FileCheck %s --check-prefixes=DEVICE %} // RUN: // // With -fno-sycl-rdc, device code should not define or use SYCL_EXTERNAL diff --git a/sycl/test/e2e_test_requirements/no-unsupported-without-info.cpp b/sycl/test/e2e_test_requirements/no-unsupported-without-info.cpp index 1de08c8f0c495..2d42dd7f1fae9 100644 --- a/sycl/test/e2e_test_requirements/no-unsupported-without-info.cpp +++ b/sycl/test/e2e_test_requirements/no-unsupported-without-info.cpp @@ -54,7 +54,7 @@ // tests to match the required format and in that case you should just update // (i.e. reduce) the number and the list below. // -// NUMBER-OF-UNSUPPORTED-WITHOUT-INFO: 415 +// NUMBER-OF-UNSUPPORTED-WITHOUT-INFO: 414 // // List of improperly UNSUPPORTED tests. // Remove the CHECK once the test has been properly UNSUPPORTED. @@ -62,7 +62,6 @@ // CHECK: AOT/early_aot.cpp // CHECK-NEXT: AOT/gpu.cpp // CHECK-NEXT: AOT/multiple-devices.cpp -// CHECK-NEXT: Adapters/enqueue-arg-order-buffer.cpp // CHECK-NEXT: Adapters/enqueue-arg-order-image.cpp // CHECK-NEXT: Adapters/enqueue-arg-order-image.cpp // CHECK-NEXT: Adapters/interop-l0-direct.cpp diff --git a/sycl/test/lit.cfg.py b/sycl/test/lit.cfg.py index 788d9ab37a9e3..089395d5c1400 100644 --- a/sycl/test/lit.cfg.py +++ b/sycl/test/lit.cfg.py @@ -168,7 +168,7 @@ if "amdgcn-amd-amdhsa" in triple: llvm_config.with_system_environment("ROCM_PATH") - config.available_features.add("hip_amd") + config.available_features.add("hip") # For AMD the specific GPU has to be specified with --offload-arch if not any([f.startswith("--offload-arch") for f in additional_flags]): # If the offload arch wasn't specified in SYCL_CLANG_EXTRA_FLAGS,