osrm-backend icon indicating copy to clipboard operation
osrm-backend copied to clipboard

Migrate to modern TBB version

Open SiarheiFedartsou opened this issue 3 years ago • 3 comments

Issue

closes https://github.com/Project-OSRM/osrm-backend/issues/6297 closes https://github.com/Project-OSRM/osrm-backend/issues/6181 closes https://github.com/Project-OSRM/osrm-backend/issues/6087

Tasklist

Requirements / Relations

Link any requirements here. Other pull requests this PR is based on?

SiarheiFedartsou avatar Aug 08 '22 21:08 SiarheiFedartsou

@mjjbell hi, would be great to have your opinion here

SiarheiFedartsou avatar Aug 08 '22 21:08 SiarheiFedartsou

I see that Windows build fails. Most likely because it uses old TBB stored on wolt.com. What I am thinking about is may be migrate it to use Conan too - should be probably a bit better approach rather than try to find someone from Wolt to update it now... Another option is to simply install TBB to the system just like I did for Linux/Mac.

SiarheiFedartsou avatar Aug 08 '22 21:08 SiarheiFedartsou

I see that Windows build fails. Most likely because it uses old TBB stored on wolt.com. What I am thinking about is may be migrate it to use Conan too - should be probably a bit better approach rather than try to find someone from Wolt to update it now... Another option is to simply install TBB to the system just like I did for Linux/Mac.

Btw worth considering migration to GitHub Actions for Windows CI 🤔

SiarheiFedartsou avatar Aug 08 '22 21:08 SiarheiFedartsou

Agreed, adding a Windows build to Github Actions CI and killing off the old one is probably the direction to take and will make it easier to perform library upgrades. IIRC the motivation for moving to C++17 was to take advantage of the STL parallel algorithms. Removing TBB completely could solve these problems too, although might require a lot of surgery.

mjjbell avatar Aug 15 '22 21:08 mjjbell

IIRC the motivation for moving to C++17 was to take advantage of the STL parallel algorithms. Removing TBB completely could solve these problems too, although might require a lot of surgery.

Yep, but it turned out that there are a lot of compilers that still do not support STL parallel algorithms from C++17 in 2022. One example is Apple Clang. I haven't dug deep here though, but lets first migrate TBB in order to unblock local builds without Conan - it seems to be easier problem anyway.

SiarheiFedartsou avatar Aug 16 '22 15:08 SiarheiFedartsou

@mjjbell I think I am done with it, so please take a look when you have a chance

SiarheiFedartsou avatar Aug 23 '22 21:08 SiarheiFedartsou