forked from Xilinx/XRT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work-around indirect loading of libxrt_core during profiling (Xilinx#…
…2953) CR1056184 triggers a problem during emulation with profiling enabled. PR Xilinx#2949 enabled emulation with native XRT kernel APIs, but that triggered a conflict with profiling which incorrectly and uncoditionally loads libxrt_core. Having two shim libraries loaded with same symbols is not cool to begin with, but with the reference PR it falt out doesn't work since shim libraries intialize a singleton xrt_core::system variable. This PR also fixes the historical weirdness where both libxrt_swemu and libxrt_hwemu were loaded when emulation was specified. Now only one library is loaded depending on the value of XCL_EMULATION_MODE.
- Loading branch information
Showing
4 changed files
with
46 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters