Subject: CGAL users discussion list
List archive
- From: Adam Getchell <>
- To:
- Subject: [cgal-discuss] TBB bug report(?)
- Date: Thu, 11 Dec 2014 23:54:52 -0800
> On Dec 10, 2014, at 12:03 AM, Sebastien Loriot (GeometryFactory)
> <>
> wrote:
>
> On 12/10/2014 09:01 AM, Sebastien Loriot (GeometryFactory) wrote:
>> On 12/09/2014 09:28 PM, Adam Getchell wrote:
>>> Hello all,
>>>
>>> I see that ~/CGAL-4.5/cmake/modules has FindTBB.cmake and UseTBB.cmake.
>>>
>>> I apologize if this is a basic question, but how do I compile CGAL
>>> and/or my program to make use of it?
>>>
>>
>> In your cmake script you should have something like:
>>
>> find_package( TBB QUIET )
>>
>> if( TBB_FOUND )
>> include(${TBB_USE_FILE})
>> list(APPEND CGAL_3RD_PARTY_LIBRARIES ${TBB_LIBRARIES})
>> endif()
>>
>> Sebastien.
>>
>
> Note that only the Triangulation_3 and Mesh_3 packages have some
> experimental parallelism support.
>
> Sebastien.
Thanks again Sebastien!
It looks like TBB 4.3 is incompatible with <iostream> and <CGAL/Timer.h> on
my platform.
┌─[adam][Hapkido][±][master ✗][~/CDT-plusplus]
└─▪ brew info tbb
tbb: stable 4.3-20141023 (bottled)
http://www.threadingbuildingblocks.org/
/usr/local/Cellar/tbb/4.3-20141023 (104 files, 1.9M) *
Built from source with: --c++11
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/tbb.rb
==> Options
--c++11
Build using C++11 mode
For the code here:
https://github.com/acgetchell/CDT-plusplus
Here’s the output if I comment out all instances of CGAL/Timer.h:
https://gist.github.com/acgetchell/385be42d249e20a9b78c
Here’s the output with CGAL/Timer.h:
https://gist.github.com/acgetchell/a097d232859c318ecf69
When I uninstall tbb everything compiles:
┌─[adam][Hapkido][±][master ✗][~/CDT-plusplus]
└─▪ brew uninstall tbb
Uninstalling /usr/local/Cellar/tbb/4.3-20141023...
┌─[adam][Hapkido][±][master ✗][~/CDT-plusplus]
└─▪ ./build.sh
-- The C compiler identification is AppleClang 6.0.0.6000054
-- The CXX compiler identification is AppleClang 6.0.0.6000054
-- Check for working C compiler using: Ninja
-- Check for working C compiler using: Ninja -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Ninja
-- Check for working CXX compiler using: Ninja -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Build type: Release
-- USING CXXFLAGS = ' -O3 -DNDEBUG'
-- USING EXEFLAGS = '
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
'
-- Targetting Ninja
-- Using /usr/bin/c++ compiler.
-- DARWIN_VERSION=14
-- Mac Leopard detected
-- Requested component: Core
-- Requested component: MPFR
-- Requested component: GMP
-- Found Eigen3: /usr/local/include/eigen3 (found suitable version "3.2.2",
minimum required is "3.1.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/adam/CDT-plusplus/build
[11/11] Linking CXX executable unittests
Travis-CI agrees (I have not configured it to use TBB):
https://travis-ci.org/acgetchell/CDT-plusplus/builds/43806162
Regards,
Adam
>
>>>
>>> Adam Getchell
>>> about.me/adamgetchell
>>>
>>>
>>
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>
- [cgal-discuss] Configure CGAL and my CMakeLists.txt to use Intel TBB?, Adam Getchell, 12/09/2014
- Re: [cgal-discuss] Configure CGAL and my CMakeLists.txt to use Intel TBB?, Sebastien Loriot (GeometryFactory), 12/10/2014
- Re: [cgal-discuss] Configure CGAL and my CMakeLists.txt to use Intel TBB?, Sebastien Loriot (GeometryFactory), 12/10/2014
- Re: [cgal-discuss] Configure CGAL and my CMakeLists.txt to useIntel TBB?, hope, 12/10/2014
- [cgal-discuss] TBB bug report(?), Adam Getchell, 12/12/2014
- Re: [cgal-discuss] TBB bug report(?), Sebastien Loriot (GeometryFactory), 12/12/2014
- Re: [cgal-discuss] TBB bug report(?), Laurent Rineau (CGAL/GeometryFactory), 12/12/2014
- Re: [cgal-discuss] Configure CGAL and my CMakeLists.txt to use Intel TBB?, Sebastien Loriot (GeometryFactory), 12/10/2014
- Re: [cgal-discuss] Configure CGAL and my CMakeLists.txt to use Intel TBB?, Sebastien Loriot (GeometryFactory), 12/10/2014
Archive powered by MHonArc 2.6.18.