Skip to content

Commit 62143ff

Browse files
committed
Revert "[AMDGPU][Comgr] Fix test issues in amd/comgr/test/unbundle_hip_test.c"
This reverts commit 3af4447.
1 parent 3af4447 commit 62143ff

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

amd/comgr/test/unbundle_hip_test.c

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,11 @@ int main(int Argc, char *Argv[]) {
182182
Status = amd_comgr_release_data(DataElement);
183183
checkError(Status, "amd_comgr_release_data");
184184

185-
if (!BytesSize) {
186-
printf("Bitcode host empty (expected non-empty)\n");
187-
exit(1);
188-
}
185+
// TODO: Re-enable after finalizing LLVM PR #122629
186+
// if (BytesSize != 0) {
187+
// printf("Bitcode host element size: %ld (expected 0)\n", BytesSize);
188+
// exit(1);
189+
// }
189190

190191
// bitcode hip-gfx900 element (non-empty)
191192
Status = amd_comgr_action_data_get_data(
@@ -247,10 +248,11 @@ int main(int Argc, char *Argv[]) {
247248
Status = amd_comgr_release_data(DataElement);
248249
checkError(Status, "amd_comgr_release_data");
249250

250-
if (BytesSize != 0) {
251-
printf("Object host element size: %ld (expected empty)\n", BytesSize);
252-
exit(1);
253-
}
251+
// TODO: Re-enable after finalizing LLVM PR #122629
252+
// if (BytesSize != 0) {
253+
// printf("Object host element size: %ld (expected empty)\n", BytesSize);
254+
// exit(1);
255+
//}
254256

255257
// object hip-gfx900 element (non-empty)
256258
Status = amd_comgr_action_data_get_data(
@@ -312,8 +314,8 @@ int main(int Argc, char *Argv[]) {
312314
Status = amd_comgr_release_data(DataElement);
313315
checkError(Status, "amd_comgr_release_data");
314316

315-
if (!BytesSize) {
316-
printf("Arvhive host empty (expected non-empty)\n");
317+
if (BytesSize != 8) {
318+
printf("Arvhive host element size: %ld (expected 8)\n", BytesSize);
317319
exit(1);
318320
}
319321

0 commit comments

Comments
 (0)