# Node ID 3dbaf4ac9c8101e02aed020e54aac4a960e7be92 # Parent c38fcdaa5fe508dbb18cc084e758ad0ce8e2e2f4 diff --git a/src/gpu-compute/brig_object.cc b/src/gpu-compute/brig_object.cc --- a/src/gpu-compute/brig_object.cc +++ b/src/gpu-compute/brig_object.cc @@ -176,8 +176,10 @@ p->firstCodeBlockEntry, p->nextModuleEntry); if (p->firstCodeBlockEntry != p->nextModuleEntry) { - panic("Function calls are not fully supported yet!!: %s\n", - getString(p->name)); + // Function calls are not supported. We allow the BRIG + // object file to create stubs, but the function calls will + // not work properly if the application makes use of them. + warn("HSA function invocations are unsupported.\n"); const char *name = getString(p->name); @@ -199,8 +201,8 @@ panic("Multiple definition of Function!!: %s\n", getString(p->name)); } + } - } nextDirPtr = getCodeSectionEntry(p->nextModuleEntry); } break;