CheryPick SWDEV-442738 - Static package generation for rocm-core
Change-Id: I8e55f4cc3e476a9b4f3d73c02bab51c70b936bcc SWDEV-442738 - ROCM-CORE Static Package Pre/Post Script Change-Id: Ie55ffc98dfc60d9cb01b7a6df7a5fe1a890bc771
This commit is contained in:
committed by
Nirmal Unnikrishnan
orang tua
a5a437e48a
melakukan
be3728bd33
@@ -124,6 +124,7 @@ static int getROCmBase(char *buf)
|
||||
// If Environment Variable is not set
|
||||
// use dl APIs to get target lib path
|
||||
// and get rocm base install path using the lib Path.
|
||||
#if BUILD_SHARED_LIBS
|
||||
sprintf(libFileName, "lib%s.so", TARGET_LIBRARY_NAME);
|
||||
void *handle=dlopen(libFileName,RTLD_NOW);
|
||||
if (!handle){
|
||||
@@ -157,6 +158,7 @@ static int getROCmBase(char *buf)
|
||||
return PathLinuxRuntimeErrors;
|
||||
}
|
||||
*end = '\0';
|
||||
#endif
|
||||
|
||||
/* Length of Path String up to Parent Directoy (ROCm Base Path)
|
||||
* with trailing '/'.*/
|
||||
|
||||
Reference in New Issue
Block a user