Note: Skip the steps if already installed.
sudo apt install python3.8
git clone [email protected]:xtensor-stack/xtl.git
cd xtl/
git checkout 0.7.0
mkdir build
cd build/
cmake ..
sudo make install -j
deps:
- xtl
git clone [email protected]:xtensor-stack/xtensor.git
cd xtensor/
git checkout 0.24.0
mkdir build
cd build/
cmake ..
sudo make install -j
git clone [email protected]:xtensor-stack/xsimd.git
cd xsimd/
git checkout 8.0.3
mkdir build
cd build
cmake ..
sudo make install -j
Note: Install pybind globally on the system. it will add files to /usr/local/include/pybind11
and /usr/local/share/cmake/pybind11
pip install "pybind11[global]"
deps:
- xtensor
- pybind11
git clone [email protected]:xtensor-stack/xtensor-python.git
cd xtensor-python/
mkdir build
cd build/
cmake ..
sudo make install -j
Note: I did not find a proper way to install tbb with cmake support
Download tbb from tbb release and pick the linux release. The most recent is oneapi-tbb-2021.4.0-lin.tgz
(when the file was written)
Where the archive was downloaded, do the following:
tar -xvf oneapi-tbb-2021.4.0-lin.tgz
sudo mv env/ /usr/local/
sudo mv include/* /usr/local/include/
sudo mv lib/* /usr/local/lib/
sudo mv lib/cmake/* /usr/local/lib/cmake/
sudo mv lib/pkgconfig/* /usr/local/lib/pkgconfig/
echo "source /usr/local/env/vars.sh" >> ~/.bashrc
sudo mv /usr/local/lib/cmake/tbb/TBBConfig.cmake /usr/local/lib/cmake/tbb/tbbConfig.cmake