Skip to content

Commit 042fbcf

Browse files
committed
[SYCL][HIP] Emit program metadata for HIP
And enable reqd wg size tests.
1 parent 06a830d commit 042fbcf

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10227,7 +10227,7 @@ void SYCLPostLink::ConstructJob(Compilation &C, const JobAction &JA,
1022710227
if (!(T.isAMDGCN()))
1022810228
addArgs(CmdArgs, TCArgs, {"-emit-param-info"});
1022910229
// Enable PI program metadata
10230-
if (T.isNVPTX())
10230+
if (T.isNVPTX() || T.isAMDGCN())
1023110231
addArgs(CmdArgs, TCArgs, {"-emit-program-metadata"});
1023210232
if (SYCLPostLink->getTrueType() == types::TY_LLVM_BC) {
1023310233
// single file output requested - this means only perform necessary IR

sycl/test-e2e/Basic/reqd_work_group_size.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
3-
//
4-
// Failing negative test with HIP
5-
// UNSUPPORTED: hip
63

74
#include <sycl/sycl.hpp>
85

sycl/test-e2e/Basic/reqd_work_group_size_check_exception.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple} %s -o %t.out
22
// RUN: %{run} %t.out
33

4-
// UNSUPPORTED: hip
5-
64
#include <sycl/sycl.hpp>
75

86
#define CHECK_INVALID_REQD_WORK_GROUP_SIZE(Dim, ...) \

0 commit comments

Comments
 (0)