-
Notifications
You must be signed in to change notification settings - Fork 42
Description
Rationale
UMF is currently being used by UR and Intel/llvm. Those projects use the /DEPENDENTLOADFLAG:0x800 linker flag on Windows when building .dlls, which results in the loader only looking for .dll dependencies in System32. Since we currently do not have an installer for UMF, we cannot make UR depend on umf.dll or libwloc.dll. Instead, we need to link with UMF and hwloc statically.
Description
Add CMake option to link with hwloc statically. This may be supported only on Windows.
API Changes
None.
Implementation details
I'm not exactly sure how static linking works on windows, we might need to do something like this: https://stackoverflow.com/questions/2157629/linking-static-libraries-to-other-static-libraries or in addition to changes in UMF, also link to hwloc when building the application (UR adapter / llvm plugin).
Meta
Related PRs: