Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions sycl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -415,11 +415,6 @@ option(SYCL_INCLUDE_TESTS
"Generate build targets for the SYCL unit tests."
${LLVM_INCLUDE_TESTS})

# Ensure that HIP platform is uppercase, to match buildbot's output.
if(NOT "${SYCL_BUILD_PI_HIP_PLATFORM}" STREQUAL "")
string(TOUPPER ${SYCL_BUILD_PI_HIP_PLATFORM} SYCL_BUILD_PI_HIP_PLATFORM)
endif()

add_subdirectory(tools)

if (WIN32)
Expand Down Expand Up @@ -523,7 +518,7 @@ if("hip" IN_LIST SYCL_ENABLE_BACKENDS)
"HIP support requires adding \"libclc\" to the CMake argument \"LLVM_ENABLE_PROJECTS\"")
endif()

if(NOT TARGET lld AND "${SYCL_BUILD_PI_HIP_PLATFORM}" STREQUAL "AMD")
if(NOT TARGET lld)
message(FATAL_ERROR
"HIP support requires adding \"lld\" to the CMake argument \"LLVM_ENABLE_PROJECTS\"")
endif()
Expand Down
1 change: 0 additions & 1 deletion sycl/test-e2e/Adapters/enqueue-arg-order-buffer.cpp
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/AtomicRef/assignment_atomic64_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/AtomicRef/exchange.cpp
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/Basic/built-ins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sycl/detail/core.hpp>
Expand Down
3 changes: 1 addition & 2 deletions sycl/test-e2e/Basic/host-task-dependency.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/DeviceGlobal/device_global_static.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <iostream>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <iostream>
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/HierPar/hier_par_wgscope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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---==//
//
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/InlineAsm/asm_16_empty.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// UNSUPPORTED: cuda || hip_nvidia
// UNSUPPORTED: cuda
// REQUIRES: gpu,linux,sg-16
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/InlineAsm/asm_8_empty.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// UNSUPPORTED: cuda || hip_nvidia
// UNSUPPORTED: cuda
// REQUIRES: gpu,linux,sg-8
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/Printf/char.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/Printf/double.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/Printf/float.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/Printf/int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/Printf/mixed-address-space.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/Printf/percent-symbol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions sycl/test-e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/Regression/DAE-separate-compile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// RUN: %{run} %t.out

// Failing on HIP AMD, enable after fixed
// UNSUPPORTED: hip_amd
// UNSUPPORTED: hip


#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/Regression/static-buffer-dtor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/Sampler/normalized-clampedge-nearest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

/*
Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/Tracing/usm/queue_single_task_nullptr.cpp
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/USM/memadvise_flags.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %{build} -o %t1.out
// REQUIRES: cuda || hip_amd
// REQUIRES: cuda || hip
// RUN: %{run} %t1.out

//==---------------- memadvise_flags.cpp -----------------------------------==//
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/USM/memops2d/copy2d_dhost_to_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/USM/memops2d/copy2d_host_to_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/USM/memops2d/copy2d_shared_to_dhost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/USM/memops2d/copy2d_shared_to_host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/USM/memops2d/memcpy2d_dhost_to_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/USM/memops2d/memcpy2d_host_to_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/USM/memops2d/memcpy2d_shared_to_dhost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/USM/memops2d/memcpy2d_shared_to_host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/USM/memory_coherency_hip.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %{build} -o %t1.out
// REQUIRES: hip_amd
// REQUIRES: hip
// RUN: %{run} %t1.out

//==---- memory_coherency_hip.cpp -----------------------------------------==//
Expand Down
5 changes: 1 addition & 4 deletions sycl/test-e2e/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
17 changes: 1 addition & 16 deletions sycl/test-e2e/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down Expand Up @@ -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]
Expand All @@ -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:
Expand Down
1 change: 0 additions & 1 deletion sycl/test-e2e/lit.site.cfg.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -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@")
Expand Down
4 changes: 2 additions & 2 deletions sycl/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
Loading
Loading