Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request/question Multithreading support for blitz++ #110

Closed
ClmnsRck opened this issue Apr 9, 2019 · 4 comments
Closed

request/question Multithreading support for blitz++ #110

ClmnsRck opened this issue Apr 9, 2019 · 4 comments

Comments

@ClmnsRck
Copy link

ClmnsRck commented Apr 9, 2019

Is Multithreading support built into Blitz++? Like TBB oder OpenMP? i have tried compiling blitz++ code with -ltbb -fopenmp(becuase of other code in there to), but it did nothing to the performance.

@papadop
Copy link
Contributor

papadop commented Apr 9, 2019

I think there is some multi-threading support in blitz, but this predates largely TBB or OpenMP times (I remember that the framework is named tau something). I have not seen any #pragma in current (well a few months back) blitz code, so do not expect openmp to work.

@slayoo
Copy link
Member

slayoo commented Apr 9, 2019 via email

@slayoo
Copy link
Member

slayoo commented Apr 9, 2019 via email

@WalterZimmer314
Copy link

Depends on your understanding of "Multithreading support".

The data structures itself are thread safe, so they can be used in multithreaded applications, e.g. openMP.

The implemented algorithms however are not parallelized, e.g. If you calculate the sin() of each element in an array, this is executed as one loop on a single core. You can however distribute multiple calculation over different arrays on different cores via a parallelization framework like OpenMP.

If you need the former, use some dedicated library for that (BLAS, LAPACK, ...), which you need probably anyway as Bliz++ implements the basic algorithms only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants