Skip to content

Commit 7a2580b

Browse files
authored
Merge pull request #173 from AMD-Lightning-Internal/amd/dev/4-tuple-in-comgr-test
[Comgr] Use 4-tuple triple in comgr test
2 parents adc542d + 3fa4cf4 commit 7a2580b

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,
@@ -198,7 +198,7 @@ int main(int Argc, char *Argv[]) {
198198
Status = amd_comgr_get_data_name(DataElement, &NameSize, &Name[0]);
199199
checkError(Status, "amd_comgr_get_data_name");
200200

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

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

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

0 commit comments

Comments
 (0)