Comments (10)
Hi @izaid,
Thank you for the detailed description!
I've reproduced the issue and found a root cause in incorrect TBBConfig.cmake installed with TBB package.
Looks like Homebrew generates this TBBConfig.cmake using scripts provided by TBB (homebrew-core/Formula/tbb.rb:37), but the TBB CMake scripts support configuring packages provided by TBB team via GitHub only. These packages have different structure from Homebrew packages.
The most evident to me ways to resolve it:
- Improve TBB CMake config generators to support Homebrew structure. I can propose the implementation; it will be available when TBB with the improvement is released and Homebrew takes the release.
- Write a CMake module finding pre-installed TBB (it's going to be done in scope of PR #13). This approach will work when Parallel STL delivers the module. Or you can write your own implementation for your project (I suppose, it'll be quite simple if you're going to use it with Homebrew TBB only, I can help if needed).
@henryiii, could you please take a look? Maybe you have something to add.
from onedpl.
@AlexVeprev Erk, I don't currently have a means of testing OSX/Homebrew changes (my MBP is out for repair) but I'd be interested in a fix to this as well. If nobody beats me to it, I will attempt to fix it when I get my Mac back.
This is a bit of slippery slope though since now there's Brew for Linux, should that also be supported?
from onedpl.
@AlexVeprev , quick historical perspective. The problem is that ParallelSTL now has its own CMake config, which expects a working TBB Config (by request of Intel). I warned about the broken TBBConfig in brew back then, and the solution was "fix the one in Brew", which is quite correct, but also does not seem to have been done.
Edit: Or it was added but doesn't handle brew correctly, now that I'm looking at this more closely.
You can add a fix to Homebrew's formula to patch the Config file for now, too.
from onedpl.
Just wanted to say thanks for looking into this. For now, I'm not going to use ParallelSTL's CMake files, but hopefully will be able to as soon as they work with brew.
from onedpl.
@rodgert, I think it would be better to have support for many popular package managers (including DNF mentioned in PR #13). But initially it is enough to have support for things required asap.
@henryiii, thank you for the explanation!
from onedpl.
@AlexVeprev agreed. FWIW, it works fine with Fedora28 and DNF as is (that's my primary development platform).
from onedpl.
I've pushed a PR simplifying FindTBB.cmake into @rodgert repo in order to include it into PR #13 (or into a separate PR if there are objections).
This FindTBB.cmake works for me on Mac with TBB installed using Homebrew.
You are welcome for review.
from onedpl.
Hi @izaid,
In the release 20181204 we added FindTBB CMake module as a Preview Feature. It is invoked from Parallel STL CMakeLists.txt.
Could you please check if this solves your issue?
from onedpl.
@tbbdev Fixes for this problem are oneapi-src/oneTBB#119
and temporary changes are listed as a temporary homebrew patch at:
Homebrew/homebrew-core#36175
from onedpl.
The issue is fixed in Homebrew TBB formula: Homebrew/homebrew-core#38844
from onedpl.
Related Issues (20)
- The `__collector_t` is defined but never used in oneDPL code HOT 2
- [KT][ESIMD Sort] Code quality improvements
- [KT][ESIMD sort] Potential performance improvements
- Investigate improvements to Kernel Bundle workaround for querying max workgroup size
- [CI] Investigate Nuget/PIP for dependency installation HOT 3
- Can't compile parallel `transform_inclusive_scan` with output transform iterator
- Reason behind releases being tagged as `rc` lately?
- Incorrect usage of `__dpl_sycl::__has_known_identity` HOT 3
- Packaging builds break due to writing to protected path
- To do the same fix for output type (by re-using __transform_functor if applicable), to make input type consistently: const T& or T&& HOT 1
- Not all value checks using type epsilon
- Make `transform_iterator` and `permutation_iterator` device copyable for sycl 2020
- Additional testing for permutation iterator with complex base iterator
- Improve handling of permutation iterators with a base iterator composed of sycl iterators and passed directly types
- This brick __pattern_walk2_brick has never called in oneDPL code
- struct __brick_move::operator()(param1, param2) not implemented
- Improve coverage of input data processing types in oneDPL unit testing with dpcpp backend HOT 1
- Adjust data generation for multiplies predicate in reduce_by_segment test
- More async support (`unique_copy`, `upper_bound`, `adjacent_difference`)
- Linking to oneDPL adds -fsycl compile flag to all files in the target
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onedpl.