Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHEL 8 Compatibility #387

Merged
merged 6 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,12 @@ if(NOT TRITON_CORE_HEADERS_ONLY)
# /etc/os-release does not exist on Windows
if(EXISTS "/etc/os-release")
file(STRINGS /etc/os-release DISTRO REGEX "^NAME=")
file(STRINGS /etc/os-release DISTRO_LIKE REGEX "^ID_LIKE=")
string(REGEX REPLACE "NAME=\"(.*)\"" "\\1" DISTRO "${DISTRO}")
string(REGEX REPLACE "ID_LIKE=\"(.*)\"" "\\1" DISTRO_LIKE "${DISTRO_LIKE}")
message(STATUS "Distro Name: ${DISTRO}")
if(DISTRO MATCHES "CentOS.*")
message(STATUS "Distro Like: ${DISTRO_LIKE}")
if(DISTRO_LIKE MATCHES ".*rhel.*" OR DISTRO_LIKE MATCHES ".*centos.*")
set (LIB_DIR "lib64")
endif()
endif()
Expand Down
3 changes: 2 additions & 1 deletion src/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@ if(${TRITON_ENABLE_GPU})
target_link_libraries(
input_byte_size_test
PRIVATE
dl
nv-kmcgill53 marked this conversation as resolved.
Show resolved Hide resolved
triton-common-error # from repo-common
triton-core
triton-common-logging # from repo-common
Expand All @@ -680,8 +681,8 @@ if(${TRITON_ENABLE_GPU})
GTest::gtest_main
GTest::gmock
protobuf::libprotobuf
${CNMEM_LIBRARY}
CUDA::cudart
${CNMEM_LIBRARY}
nv-kmcgill53 marked this conversation as resolved.
Show resolved Hide resolved
)
else()
add_executable(
Expand Down
Loading