|
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, |
@@ -197,7 +197,7 @@ int main(int Argc, char *Argv[]) { |
197 | 197 | Status = amd_comgr_get_data_name(DataElement, &NameSize, &Name[0]); |
198 | 198 | checkError(Status, "amd_comgr_get_data_name"); |
199 | 199 |
|
200 | | - ExpectedName = "square-hip-amdgcn-amd-amdhsa-gfx900.bc"; |
| 200 | + ExpectedName = "square-hip-amdgcn-amd-amdhsa-unknown-gfx900.bc"; |
201 | 201 | if (strcmp(Name, ExpectedName)) { |
202 | 202 | printf("Bitcode hip-gfx900 element name mismatch: %s (expected %s)\n", |
203 | 203 | Name, ExpectedName); |
@@ -262,7 +262,7 @@ int main(int Argc, char *Argv[]) { |
262 | 262 | Status = amd_comgr_get_data_name(DataElement, &NameSize, &Name[0]); |
263 | 263 | checkError(Status, "amd_comgr_get_data_name"); |
264 | 264 |
|
265 | | - ExpectedName = "double-hip-amdgcn-amd-amdhsa-gfx900.o"; |
| 265 | + ExpectedName = "double-hip-amdgcn-amd-amdhsa-unknown-gfx900.o"; |
266 | 266 | if (strcmp(Name, ExpectedName)) { |
267 | 267 | printf("Object hip-gfx900 element name mismatch: %s (expected %s)\n", |
268 | 268 | Name, ExpectedName); |
@@ -327,7 +327,7 @@ int main(int Argc, char *Argv[]) { |
327 | 327 | Status = amd_comgr_get_data_name(DataElement, &NameSize, &Name[0]); |
328 | 328 | checkError(Status, "amd_comgr_get_data_name"); |
329 | 329 |
|
330 | | - ExpectedName = "cube-hip-amdgcn-amd-amdhsa-gfx900.a"; |
| 330 | + ExpectedName = "cube-hip-amdgcn-amd-amdhsa-unknown-gfx900.a"; |
331 | 331 | if (strcmp(Name, ExpectedName)) { |
332 | 332 | printf("Archive hip-gfx900 bundle name mismatch: %s (expected %s)\n", |
333 | 333 | Name, ExpectedName); |
|
0 commit comments