Skip to content
Draft

wip #20438

Show file tree
Hide file tree
Changes from all commits
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
3 changes: 0 additions & 3 deletions sycl/test-e2e/AtomicRef/compare_exchange.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
2 changes: 0 additions & 2 deletions sycl/test-e2e/AtomicRef/compare_exchange_local.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// UNSUPPORTED: target-nvidia, cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 0 additions & 3 deletions sycl/test-e2e/AtomicRef/max.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 0 additions & 3 deletions sycl/test-e2e/AtomicRef/max_local.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 0 additions & 3 deletions sycl/test-e2e/AtomicRef/min.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 0 additions & 3 deletions sycl/test-e2e/AtomicRef/min_local.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 0 additions & 3 deletions sycl/test-e2e/BFloat16/bfloat16_vec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
//
//===----------------------------------------------------------------------===//

// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// RUN: %{build} -o %t.out
// RUN: %{run} %t.out
// RUN: %if preview-breaking-changes-supported %{ %{build} -fpreview-breaking-changes -o %t2.out %}
Expand Down
5 changes: 1 addition & 4 deletions sycl/test-e2e/Basic/code_location_e2e.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED: cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/19214
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// RUN: %{build} -DNDEBUG -o %t1.out
// RUN: %{run} %t1.out | FileCheck %s

Expand Down
3 changes: 0 additions & 3 deletions sycl/test-e2e/Basic/compare_exchange_strong.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 0 additions & 3 deletions sycl/test-e2e/Basic/stream/auto_flush.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// RUN: %{build} -o %t.out
// RUN: %{run} %t.out %if !gpu || linux %{ | FileCheck %s %}

Expand Down
3 changes: 0 additions & 3 deletions sycl/test-e2e/Basic/stream/release_resources_test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// UNSUPPORTED: windows
// UNSUPPORTED-INTENDED: We can't safely release any resoureces on Windows, so
// the test is expected to fail there. See comments in
Expand Down
5 changes: 1 addition & 4 deletions sycl/test-e2e/Basic/stream/stream.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED: cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/19214
// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out
// RUN: %{run} %t.out %if !gpu || linux %{ | FileCheck %s %}
Expand Down
3 changes: 0 additions & 3 deletions sycl/test-e2e/Basic/stream/stream_copies_buffer_sync.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// RUN: %{build} -o %t.out
// RUN: %{run} %t.out %if !gpu || linux %{ | FileCheck %s %}

Expand Down
3 changes: 0 additions & 3 deletions sycl/test-e2e/Basic/stream/stream_max_stmt_exceed.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// RUN: %{build} -o %t.out
// RUN: %{run} %t.out %if !gpu || linux %{ | FileCheck %s %}

Expand Down
3 changes: 0 additions & 3 deletions sycl/test-e2e/Basic/stream/zero_buffer_size.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

#include <sycl/detail/core.hpp>
#include <sycl/stream.hpp>

Expand Down
3 changes: 0 additions & 3 deletions sycl/test-e2e/Basic/vector/scalar_access.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// RUN: %{build} -o %t.out
// RUN: %{run} %t.out | FileCheck %s

Expand Down
3 changes: 0 additions & 3 deletions sycl/test-e2e/Complex/sycl_complex_stream_test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-finite-math-only%} %else %{-fno-finite-math-only%}

// RUN: %{build} -Wno-error=deprecated-declarations -fsycl-device-code-split=per_kernel %{mathflags} -o %t.out
Expand Down
3 changes: 0 additions & 3 deletions sycl/test-e2e/Reduction/reduction_big_data.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// RUN: %{build} -o %t.out
// RUN: %{run} %t.out
//
Expand Down
3 changes: 0 additions & 3 deletions sycl/test-e2e/Reduction/reduction_nd_ext_double.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 0 additions & 3 deletions sycl/test-e2e/Reduction/reduction_usm.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 0 additions & 3 deletions sycl/test-e2e/Reduction/reduction_usm_dw.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down
3 changes: 0 additions & 3 deletions sycl/test-e2e/Regression/unoptimized_stream.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// RUN: %{build} %O0 -o %t.out
// RUN: %{run} %t.out

Expand Down
2 changes: 0 additions & 2 deletions sycl/test-e2e/syclcompat/atomic/atomic_class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
//
//
// ===----------------------------------------------------------------------===//
// UNSUPPORTED: target-nvidia,cuda
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20109

// UNSUPPORTED: target-amd || (windows && level_zero)

Expand Down
20 changes: 12 additions & 8 deletions unified-runtime/test/conformance/device_code/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,17 @@ macro(add_device_binary SOURCE_FILE)
set(BIN_PATH "${DEVICE_BINARY_DIR}/${TRIPLE}.bin.0")

if(${TRIPLE} MATCHES "amd")
set(AMD_TARGET_BACKEND -Xsycl-target-backend=${TRIPLE})
set(AMD_OFFLOAD_ARCH --offload-arch=${AMD_ARCH})
set(AMD_NOGPULIB -nogpulib)
set(TARGET_BACKEND -Xsycl-target-backend=${TRIPLE})
set(OFFLOAD_ARCH --offload-arch=${AMD_ARCH})
set(NOGPULIB -nogpulib)
elseif(${TRIPLE} MATCHES "cuda")
set(TARGET_BACKEND -Xsycl-target-backend=${TRIPLE})
set(OFFLOAD_ARCH --offload-arch=sm_75)
set(NOGPULIB -nogpulib)
else()
set(AMD_TARGET_BACKEND)
set(AMD_OFFLOAD_ARCH)
set(AMD_NOGPULIB)
set(TARGET_BACKEND)
set(OFFLOAD_ARCH)
set(NOGPULIB)
endif()
# images are not yet supported in sycl on AMD
if(${TRIPLE} MATCHES "amd" AND ${KERNEL_NAME} MATCHES "image_copy")
Expand Down Expand Up @@ -107,8 +111,8 @@ macro(add_device_binary SOURCE_FILE)
add_custom_command(OUTPUT ${BIN_PATH}
COMMAND LD_LIBRARY_PATH=${UR_SYCL_LIBRARY_DIR}:$ENV{LD_LIBRARY_PATH}
${UR_FOUND_DPCXX} -fsycl -fsycl-targets=${TRIPLE}
-fsycl-device-code-split=off ${AMD_TARGET_BACKEND}
${AMD_OFFLOAD_ARCH} ${AMD_NOGPULIB} ${DPCXX_BUILD_FLAGS_LIST}
-fsycl-device-code-split=off ${TARGET_BACKEND}
${OFFLOAD_ARCH} ${NOGPULIB} ${DPCXX_BUILD_FLAGS_LIST}
${SOURCE_FILE} -o ${EXE_PATH}

COMMAND ${CMAKE_COMMAND} -E env ${EXTRA_ENV} ${UR_FOUND_DEVICE_CODE_EXTRACTOR} -q --stem="${TRIPLE}.bin" ${EXE_PATH}
Expand Down
Loading