Skip to content

Commit

Permalink
Added missing flag to build XRT
Browse files Browse the repository at this point in the history
Signed-off-by: root <[email protected]>
  • Loading branch information
root committed Dec 12, 2023
1 parent 35e37d4 commit 8c457d7
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/runtime_src/core/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ target_link_libraries(xrt_coreutil_static
if (NOT WIN32)
# Additional link dependencies for xrt_coreutil
# xrt_uuid.h depends on uuid
target_link_libraries(xrt_coreutil PRIVATE pthread dl PUBLIC uuid)
target_link_libraries(xrt_coreutil PRIVATE pthread dl PUBLIC uuid stdc++fs)

# Targets of xrt_coreutil_static must link with these additional
# system libraries
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
#define XOCL_BO_ARE (1 << 26)

// Linux 5.18 uses iosys-map instead of dma-buf-map
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) || defined(RHEL_8_7) || defined(RHEL_8_8) || defined(RHEL_8_9) || defined(RHEL_9_1_GE)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) || defined(RHEL_8_7_GE) || defined(RHEL_9_1_GE)
#define XOCL_MAP_TYPE iosys_map
#define XOCL_MAP_SET_VADDR iosys_map_set_vaddr
#define XOCL_MAP_IS_NULL iosys_map_is_null
Expand Down
10 changes: 2 additions & 8 deletions src/runtime_src/core/pcie/driver/linux/xocl/xocl_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,8 @@
#if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0)
#define RHEL_9_0_GE
#endif
#if RHEL_RELEASE_CODE == RHEL_RELEASE_VERSION(8, 9)
#define RHEL_8_9
#endif
#if RHEL_RELEASE_CODE == RHEL_RELEASE_VERSION(8, 8)
#define RHEL_8_8
#endif
#if RHEL_RELEASE_CODE == RHEL_RELEASE_VERSION(8, 7)
#define RHEL_8_7
#if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8, 7)
#define RHEL_8_7_GE
#endif
#if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8, 5)
#define RHEL_8_5_GE
Expand Down
1 change: 1 addition & 0 deletions src/runtime_src/core/pcie/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ target_link_libraries(xrt_core_static
dl
rt
pthread
stdc++fs
)

install(TARGETS xrt_core
Expand Down
2 changes: 2 additions & 0 deletions src/runtime_src/core/pcie/tools/cloud-daemon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ target_link_libraries(mpd
uuid
dl
udev
stdc++fs
)
install (TARGETS mpd RUNTIME DESTINATION ${XRT_INSTALL_DIR}/bin)

Expand All @@ -49,6 +50,7 @@ target_link_libraries(msd
${Boost_SYSTEM_LIBRARY}
uuid
dl
stdc++fs
)
install (TARGETS msd RUNTIME DESTINATION ${XRT_INSTALL_DIR}/bin)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ if(${INTERNAL_TESTING_FOR_AWS})
pthread
rt
dl
stdc++fs
)
else()
include_directories(${AWS_FPGA_REPO_DIR}/sdk/userspace/include/) # path to fpga_mgmt.h
Expand Down
4 changes: 2 additions & 2 deletions src/runtime_src/tools/xclbinutil/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ add_executable(${XCLBINUTIL_NAME} ${XCLBINUTIL_SRCS})

# Signing xclbin images currently is not support on windows
if(NOT WIN32)
target_link_libraries(${XCLBINUTIL_NAME} PRIVATE crypto)
target_link_libraries(${XCLBINUTIL_NAME} PRIVATE crypto stdc++fs)
endif()

# Add compile definitions
Expand Down Expand Up @@ -176,7 +176,7 @@ if (GTEST_FOUND)
target_link_libraries(${UNIT_TEST_NAME} PRIVATE Boost::program_options Boost::system )
target_link_libraries(${UNIT_TEST_NAME} PRIVATE ${GTEST_BOTH_LIBRARIES})
else()
target_link_libraries(${UNIT_TEST_NAME} PRIVATE ${Boost_LIBRARIES} ${GTEST_BOTH_LIBRARIES} pthread crypto)
target_link_libraries(${UNIT_TEST_NAME} PRIVATE ${Boost_LIBRARIES} ${GTEST_BOTH_LIBRARIES} pthread crypto stdc++fs)

if(NOT (${RapidJSON_VERSION_MAJOR} EQUAL 0))
target_compile_definitions(${UNIT_TEST_NAME} PRIVATE ENABLE_JSON_SCHEMA_VALIDATION)
Expand Down

0 comments on commit 8c457d7

Please sign in to comment.