Skip to content

Commit f368708

Browse files
committed
Remove new usages of -sycldevice triple compoenent.
1 parent 176d9bf commit f368708

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

clang/test/CodeGenSYCL/nvptx-printf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -triple nvptx64-nvidia-cuda-sycldevice -std=c++11 -S -emit-llvm -x c++ %s -o - | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl-is-device -triple nvptx64-nvidia-cuda -std=c++11 -S -emit-llvm -x c++ %s -o - | FileCheck %s
22

33
#include "Inputs/sycl.hpp"
44

clang/test/CodeGenSYCL/unique_unnamed_kernels.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -triple spir64-sycldevice -IInputs -emit-llvm %s -o - | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl-is-device -triple spir64 -IInputs -emit-llvm %s -o - | FileCheck %s
22
// This test ensures that we don't generate a kernel before we have instantiated
33
// all the kernel declarations, which can change the name of a kernel in the
44
// unnamed kernel case. Previously we would have duplicate manglings of the

clang/test/Driver/sycl-int-footer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@
8686
// DEP_GEN_PHASES: 2: input, "[[INPUTFILE]]", c++, (device-sycl)
8787
// DEP_GEN_PHASES: 3: preprocessor, {2}, c++-cpp-output, (device-sycl)
8888
// DEP_GEN_PHASES: 4: compiler, {3}, ir, (device-sycl)
89-
// DEP_GEN_PHASES: 5: offload, "device-sycl (spir64-unknown-unknown-sycldevice)" {4}, ir
89+
// DEP_GEN_PHASES: 5: offload, "device-sycl (spir64-unknown-unknown)" {4}, ir
9090
// DEP_GEN_PHASES: 6: append-footer, {0}, c++, (host-sycl)
9191
// DEP_GEN_PHASES: 7: preprocessor, {6}, c++-cpp-output, (host-sycl)
92-
// DEP_GEN_PHASES: 8: offload, "host-sycl (x86_64-unknown-linux-gnu)" {7}, "device-sycl (spir64-unknown-unknown-sycldevice)" {4}, c++-cpp-output
92+
// DEP_GEN_PHASES: 8: offload, "host-sycl (x86_64-unknown-linux-gnu)" {7}, "device-sycl (spir64-unknown-unknown)" {4}, c++-cpp-output
9393
// DEP_GEN_PHASES: 9: compiler, {8}, ir, (host-sycl)
9494
// DEP_GEN_PHASES: 10: backend, {9}, assembler, (host-sycl)
9595
// DEP_GEN_PHASES: 11: assembler, {10}, object, (host-sycl)

llvm-spirv/test/lower-non-standard-types.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
; ModuleID = 'lower-non-standard-types'
1616
source_filename = "lower-non-standard-types.cpp"
1717
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64"
18-
target triple = "spir64-unknown-unknown-sycldevice"
18+
target triple = "spir64-unknown-unknown"
1919

2020
@Id = external dso_local local_unnamed_addr addrspace(1) constant <3 x i64>, align 32
2121

llvm-spirv/test/lower-non-standard-vec-with-ext.ll

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

55
; ModuleID = 'lower-non-standard-vec-with-ext'
66
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64"
7-
target triple = "spir64-unknown-unknown-sycldevice"
7+
target triple = "spir64-unknown-unknown"
88

99
@Id = external dso_local local_unnamed_addr addrspace(1) constant <3 x i64>, align 32
1010

sycl/doc/GetStartedGuide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ If CUDA support has been built, it is tested only if there are CUDA devices
425425
available.
426426
427427
If testing with ROCm for AMD make sure to specify the GPU being used
428-
by adding `-Xsycl-target-backend=amdgcn-amd-amdhsa-sycldevice
428+
by adding `-Xsycl-target-backend=amdgcn-amd-amdhsa
429429
--offload-arch=<target>` to the CMake variable
430430
`SYCL_CLANG_EXTRA_FLAGS`.
431431

sycl/test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ if(SYCL_BUILD_PI_ROCM)
8383
add_lit_testsuite(check-sycl-rocm-ptx "Running device-agnostic SYCL regression tests for ROCm NVidia PTX"
8484
${CMAKE_CURRENT_BINARY_DIR}
8585
ARGS ${RT_TEST_ARGS}
86-
PARAMS "SYCL_TRIPLE=nvptx64-nvidia-cuda-sycldevice;SYCL_PLUGIN=rocm"
86+
PARAMS "SYCL_TRIPLE=nvptx64-nvidia-cuda;SYCL_PLUGIN=rocm"
8787
DEPENDS ${SYCL_TEST_DEPS}
8888
EXCLUDE_FROM_CHECK_ALL
8989
)
@@ -93,7 +93,7 @@ if(SYCL_BUILD_PI_ROCM)
9393
add_lit_testsuite(check-sycl-rocm-gcn "Running device-agnostic SYCL regression tests for ROCm AMDGCN"
9494
${CMAKE_CURRENT_BINARY_DIR}
9595
ARGS ${RT_TEST_ARGS}
96-
PARAMS "SYCL_TRIPLE=amdgcn-amd-amdhsa-sycldevice;SYCL_PLUGIN=rocm"
96+
PARAMS "SYCL_TRIPLE=amdgcn-amd-amdhsa;SYCL_PLUGIN=rocm"
9797
DEPENDS ${SYCL_TEST_DEPS}
9898
EXCLUDE_FROM_CHECK_ALL
9999
)

sycl/test/lit.cfg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@
103103
if triple == 'nvptx64-nvidia-cuda':
104104
config.available_features.add('cuda')
105105

106-
if triple == 'amdgcn-amd-amdhsa-sycldevice':
106+
if triple == 'amdgcn-amd-amdhsa':
107107
config.available_features.add('rocm_amd')
108108
# For AMD the specific GPU has to be specified with --offload-arch
109109
if not re.match('.*--offload-arch.*', config.sycl_clang_extra_flags):
110110
raise Exception("Error: missing --offload-arch flag when trying to " \
111111
"run lit tests for AMD GPU, please add " \
112-
"`-Xsycl-target-backend=amdgcn-amd-amdhsa-sycldevice --offload-arch=<target>` to " \
112+
"`-Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=<target>` to " \
113113
"the CMake variable SYCL_CLANG_EXTRA_FLAGS")
114114

115115
# Set timeout for test = 10 mins

0 commit comments

Comments
 (0)