Giter Club home page Giter Club logo

Comments (2)

guodongxiaren avatar guodongxiaren commented on September 2, 2024

下载

https://github.com/oneapi-src/oneTBB/releases
去下载release包。git克隆总是在65%的时候卡死。

当前最新版本为tbb_2020。
跨平台的。Mac也可以用。

编译

解压后cd进去。有个Makefile直接make。

make -j 8

在build目录下会出现一个编译后的目录,比如:

macos_intel64_clang_cc10.0.0_os10.14_release

linux_intel64_gcc_cc4.8.5_libc2.17_kernel3.10.0_release

以上会编译出tbb的库。还可以通过这个Makefile编译出其他东西:

  • make test 编译TBB的单元测试。
  • make examples 编译TBB使用的样例程序。
  • make all 编译全部。

from blog.

guodongxiaren avatar guodongxiaren commented on September 2, 2024

运行测试用例

在build目录中,有个机器名命名的目录。里面是编译好的so和bin。
比如:

linux_intel64_gcc_cc4.8.5_libc2.17_kernel3.10.0_release

虽然bin被命名成了.exe的形式。但是并一定是Windows系统的可执行文件!Linux和Mac一样可以执行。

直接执行会报错:

loading shared libraries: libtbbmalloc.so.2: cannot open shared object file: No such file or directory

需要添加一个环境变量:

export LD_LIBRARY_PATH=/home/xxx/source/tbb/build/linux_intel64_gcc_cc4.8.5_libc2.17_kernel3.10.0_release

from blog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.