Skip to content

Commit 3089d5e

Browse files
committed
[Comgr] Use 4-tuple triple in comgr test
This is a prime PR that clears potential internal test breaks. (cherry picked from commit 3fa4cf4)
1 parent ad6f6be commit 3089d5e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

amd/comgr/test/unbundle_hip_test.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,19 @@
4949
//
5050
// // Manually unbundle bitcode bundle
5151
// clang-offload-bundler -type=bc \
52-
// -targets=hip-amdgcn-amd-amdhsa-gfx900 \
52+
// -targets=hip-amdgcn-amd-amdhsa-unknown-gfx900 \
5353
// -input=square.bc -output=square-gfx900.bc \
5454
// -unbundle -allow-missing-bundles
5555
//
5656
// // Manually unbundle object file bundle
5757
// clang-offload-bundler -type=o \
58-
// -targets=hip-amdgcn-amd-amdhsa-gfx900 \
58+
// -targets=hip-amdgcn-amd-amdhsa-unknown-gfx900 \
5959
// -input=double.o -output=double-gfx900.o \
6060
// -unbundle -allow-missing-bundles
6161
//
6262
// // Manually unbundle archive bundle
6363
// clang-offload-bundler -type=a \
64-
// -targets=hip-amdgcn-amd-amdhsa-gfx900 \
64+
// -targets=hip-amdgcn-amd-amdhsa-unknown-gfx900 \
6565
// -input=cube.a -output=cube-gfx900.a \
6666
// -unbundle -allow-missing-bundles \
6767
// -hip-openmp-compatible
@@ -131,7 +131,7 @@ int main(int Argc, char *Argv[]) {
131131
checkError(Status, "amd_comgr_action_info_set_language");
132132

133133
const char *BundleEntryIDs[] = {"host-x86_64-unknown-linux-gnu",
134-
"hip-amdgcn-amd-amdhsa-gfx900"};
134+
"hip-amdgcn-amd-amdhsa-unknown-gfx900"};
135135
size_t BundleEntryIDsCount =
136136
sizeof(BundleEntryIDs) / sizeof(BundleEntryIDs[0]);
137137
Status = amd_comgr_action_info_set_bundle_entry_ids(ActionInfoUnbundle,
@@ -197,7 +197,7 @@ int main(int Argc, char *Argv[]) {
197197
Status = amd_comgr_get_data_name(DataElement, &NameSize, &Name[0]);
198198
checkError(Status, "amd_comgr_get_data_name");
199199

200-
ExpectedName = "square-hip-amdgcn-amd-amdhsa-gfx900.bc";
200+
ExpectedName = "square-hip-amdgcn-amd-amdhsa-unknown-gfx900.bc";
201201
if (strcmp(Name, ExpectedName)) {
202202
printf("Bitcode hip-gfx900 element name mismatch: %s (expected %s)\n",
203203
Name, ExpectedName);
@@ -262,7 +262,7 @@ int main(int Argc, char *Argv[]) {
262262
Status = amd_comgr_get_data_name(DataElement, &NameSize, &Name[0]);
263263
checkError(Status, "amd_comgr_get_data_name");
264264

265-
ExpectedName = "double-hip-amdgcn-amd-amdhsa-gfx900.o";
265+
ExpectedName = "double-hip-amdgcn-amd-amdhsa-unknown-gfx900.o";
266266
if (strcmp(Name, ExpectedName)) {
267267
printf("Object hip-gfx900 element name mismatch: %s (expected %s)\n",
268268
Name, ExpectedName);
@@ -327,7 +327,7 @@ int main(int Argc, char *Argv[]) {
327327
Status = amd_comgr_get_data_name(DataElement, &NameSize, &Name[0]);
328328
checkError(Status, "amd_comgr_get_data_name");
329329

330-
ExpectedName = "cube-hip-amdgcn-amd-amdhsa-gfx900.a";
330+
ExpectedName = "cube-hip-amdgcn-amd-amdhsa-unknown-gfx900.a";
331331
if (strcmp(Name, ExpectedName)) {
332332
printf("Archive hip-gfx900 bundle name mismatch: %s (expected %s)\n",
333333
Name, ExpectedName);

0 commit comments

Comments
 (0)