Commit c25c7a9b authored by Ted Themistokleous's avatar Ted Themistokleous
Browse files

Use oneTBB instead of tbb for centos

This builds on debian and centos is still running into issues using the newer
version of gcc to build.
parent e49295b3
...@@ -68,6 +68,7 @@ RUN dnf --enablerepo=powertools install -y --nobest \ ...@@ -68,6 +68,7 @@ RUN dnf --enablerepo=powertools install -y --nobest \
half \ half \
#libssl-devel \ #libssl-devel \
openssl-devel openssl-devel
gcc-toolset-11
#zlib1g-devel && \ #zlib1g-devel && \
#zlib-devel && \ #zlib-devel && \
......
...@@ -4,12 +4,13 @@ cc = ${rocm_path}/llvm/bin/clang ...@@ -4,12 +4,13 @@ cc = ${rocm_path}/llvm/bin/clang
deps = deps =
ROCmSoftwarePlatform/rocm-recipes ROCmSoftwarePlatform/rocm-recipes
-f requirements.txt -f requirements.txt
oneapi-src/oneTBB@v2021.2.2
[gh] [gh]
ignore = danmar/cppcheck ignore = danmar/cppcheck
deps = deps =
-f dev-requirements.txt -f dev-requirements.txt
oneapi-src/oneDNN@v1.7 oneapi-src/oneDNN@v1.7
oneapi-src/oneTBB@v2021.9.0
define = define =
CMAKE_C_COMPILER_LAUNCHER=${deps_dir}/bin/ccache CMAKE_C_COMPILER_LAUNCHER=${deps_dir}/bin/ccache
CMAKE_CXX_COMPILER_LAUNCHER=${deps_dir}/bin/ccache CMAKE_CXX_COMPILER_LAUNCHER=${deps_dir}/bin/ccache
...@@ -22,6 +23,7 @@ cc = ${rocm_path}/llvm/bin/clang ...@@ -22,6 +23,7 @@ cc = ${rocm_path}/llvm/bin/clang
deps = deps =
-f dev-requirements.txt -f dev-requirements.txt
oneapi-src/oneDNN@v1.7 oneapi-src/oneDNN@v1.7
oneapi-src/oneTBB@v2021.9.0
define = define =
CMAKE_C_COMPILER_LAUNCHER=${deps_dir}/bin/ccache CMAKE_C_COMPILER_LAUNCHER=${deps_dir}/bin/ccache
CMAKE_CXX_COMPILER_LAUNCHER=${deps_dir}/bin/ccache CMAKE_CXX_COMPILER_LAUNCHER=${deps_dir}/bin/ccache
......
...@@ -247,14 +247,12 @@ target_include_directories(migraphx SYSTEM PUBLIC $<BUILD_INTERFACE:${HALF_INCLU ...@@ -247,14 +247,12 @@ target_include_directories(migraphx SYSTEM PUBLIC $<BUILD_INTERFACE:${HALF_INCLU
find_package(Threads) find_package(Threads)
target_link_libraries(migraphx PUBLIC Threads::Threads) target_link_libraries(migraphx PUBLIC Threads::Threads)
find_package(TBB QUIET) if(EXISTS /opt/rh/gcc-toolset-11/root/usr/bin/g++)
if(NOT TBB_FOUND)
#Check if TBB is installed in the proper RHEL DIR which is different from
#debian installs /lib64 vs /usr/lib64
include(/usr/lib64/cmake/tbb)
find_package(TBB REQUIRED)
endif() endif()
target_link_libraries(migraphx PRIVATE TBB::tbb)
find_package(TBB REQUIRED COMPONENTS tbb)
target_link_libraries(migraphx PUBLIC TBB::tbb)
find_package(nlohmann_json 3.8.0 REQUIRED) find_package(nlohmann_json 3.8.0 REQUIRED)
target_link_libraries(migraphx PRIVATE nlohmann_json::nlohmann_json) target_link_libraries(migraphx PRIVATE nlohmann_json::nlohmann_json)
......
...@@ -33,7 +33,7 @@ export LANG=C.UTF-8 ...@@ -33,7 +33,7 @@ export LANG=C.UTF-8
# Need pip3 and Python headers to build dependencies # Need pip3 and Python headers to build dependencies
dnf update && dnf install -y python3-pip python3-dev cmake rocm-cmake rocblas miopen-hip openmp-extras tbb2 tbb-devel dnf update && dnf install -y python3-pip python3-dev cmake rocm-cmake rocblas miopen-hip openmp-extras
# Needed for cmake to build various pip packages # Needed for cmake to build various pip packages
pip3.8 install setuptools wheel pip3.8 install setuptools wheel
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment