|
49 | 49 | // |
50 | 50 | // // Manually unbundle bitcode bundle |
51 | 51 | // clang-offload-bundler -type=bc \ |
52 | | -// -targets=hip-amdgcn-amd-amdhsa-gfx900 \ |
| 52 | +// -targets=hip-amdgcn-amd-amdhsa-unknown-gfx900 \ |
53 | 53 | // -input=square.bc -output=square-gfx900.bc \ |
54 | 54 | // -unbundle -allow-missing-bundles |
55 | 55 | // |
56 | 56 | // // Manually unbundle object file bundle |
57 | 57 | // clang-offload-bundler -type=o \ |
58 | | -// -targets=hip-amdgcn-amd-amdhsa-gfx900 \ |
| 58 | +// -targets=hip-amdgcn-amd-amdhsa-unknown-gfx900 \ |
59 | 59 | // -input=double.o -output=double-gfx900.o \ |
60 | 60 | // -unbundle -allow-missing-bundles |
61 | 61 | // |
62 | 62 | // // Manually unbundle archive bundle |
63 | 63 | // clang-offload-bundler -type=a \ |
64 | | -// -targets=hip-amdgcn-amd-amdhsa-gfx900 \ |
| 64 | +// -targets=hip-amdgcn-amd-amdhsa-unknown-gfx900 \ |
65 | 65 | // -input=cube.a -output=cube-gfx900.a \ |
66 | 66 | // -unbundle -allow-missing-bundles \ |
67 | 67 | // -hip-openmp-compatible |
@@ -131,7 +131,7 @@ int main(int Argc, char *Argv[]) { |
131 | 131 | checkError(Status, "amd_comgr_action_info_set_language"); |
132 | 132 |
|
133 | 133 | const char *BundleEntryIDs[] = {"host-x86_64-unknown-linux-gnu", |
134 | | - "hip-amdgcn-amd-amdhsa-gfx900"}; |
| 134 | + "hip-amdgcn-amd-amdhsa-unknown-gfx900"}; |
135 | 135 | size_t BundleEntryIDsCount = |
136 | 136 | sizeof(BundleEntryIDs) / sizeof(BundleEntryIDs[0]); |
137 | 137 | Status = amd_comgr_action_info_set_bundle_entry_ids(ActionInfoUnbundle, |
@@ -198,7 +198,7 @@ int main(int Argc, char *Argv[]) { |
198 | 198 | Status = amd_comgr_get_data_name(DataElement, &NameSize, &Name[0]); |
199 | 199 | checkError(Status, "amd_comgr_get_data_name"); |
200 | 200 |
|
201 | | - ExpectedName = "square-hip-amdgcn-amd-amdhsa-gfx900.bc"; |
| 201 | + ExpectedName = "square-hip-amdgcn-amd-amdhsa-unknown-gfx900.bc"; |
202 | 202 | if (strcmp(Name, ExpectedName)) { |
203 | 203 | printf("Bitcode hip-gfx900 element name mismatch: %s (expected %s)\n", |
204 | 204 | Name, ExpectedName); |
@@ -264,7 +264,7 @@ int main(int Argc, char *Argv[]) { |
264 | 264 | Status = amd_comgr_get_data_name(DataElement, &NameSize, &Name[0]); |
265 | 265 | checkError(Status, "amd_comgr_get_data_name"); |
266 | 266 |
|
267 | | - ExpectedName = "double-hip-amdgcn-amd-amdhsa-gfx900.o"; |
| 267 | + ExpectedName = "double-hip-amdgcn-amd-amdhsa-unknown-gfx900.o"; |
268 | 268 | if (strcmp(Name, ExpectedName)) { |
269 | 269 | printf("Object hip-gfx900 element name mismatch: %s (expected %s)\n", |
270 | 270 | Name, ExpectedName); |
@@ -329,7 +329,7 @@ int main(int Argc, char *Argv[]) { |
329 | 329 | Status = amd_comgr_get_data_name(DataElement, &NameSize, &Name[0]); |
330 | 330 | checkError(Status, "amd_comgr_get_data_name"); |
331 | 331 |
|
332 | | - ExpectedName = "cube-hip-amdgcn-amd-amdhsa-gfx900.a"; |
| 332 | + ExpectedName = "cube-hip-amdgcn-amd-amdhsa-unknown-gfx900.a"; |
333 | 333 | if (strcmp(Name, ExpectedName)) { |
334 | 334 | printf("Archive hip-gfx900 bundle name mismatch: %s (expected %s)\n", |
335 | 335 | Name, ExpectedName); |
|
0 commit comments