openmp
Multithreading with C++ API
i am trying to parallel my program using OpenMP and sometimes i feels that i am reaching a dead end. I would like to share variables in a fu开发者_Python百科nction member that i defined (and initiali[详细]
2023-03-15 23:14 分类:问答parallel uniform distribution pseudorandom namber using OpenMP
i use in my program boost uniform distribution between 0 and 1: #include <boost/random/uniform_01.hpp>[详细]
2023-03-15 21:49 分类:问答Why OpenMP version is slower?
I am experimenting with OpenMP. I wrote some code to check its performance. On a 4-core single Intel CPU with Kubuntu 11.04, the following program compiled with OpenMP is around 20 times slower than t[详细]
2023-03-15 18:14 分类:问答ICC on Linux: link to OpenMP
What are the steps to link to OpenMP with Intel C++ compiler? Does Intel compiler ship with its own OpenMP library or should开发者_C百科 I link to libgom?It comes with its own implementation apparentl[详细]
2023-03-15 06:03 分类:问答OpenMP: are local variables automatically private?
#pragma omp parallel { int x; // private to each thread ? } #pragma omp parallel for for (int i = 0; i < 1000; ++i开发者_开发问答)[详细]
2023-03-13 08:14 分类:问答The cost of forking threads: How do I determine the minimum vector size to justify multithreading
I am attempting to calculate dot products of many vector pairs. Each dot product can use multiple threads, but no two or mo开发者_StackOverflow社区re dot products should be done concurrently due to da[详细]
2023-03-13 00:06 分类:问答Specify OpenMP to GCC
For OpenMP, when my code is using the functions in its API (for example, omp_get_thread_num()) without using its directives (such as those #pragma omp ...),[详细]
2023-03-12 19:48 分类:问答How is OpenMP directives handled by compiler
I was wondering how OpenMP directives are handled by compiler, such as gcc? For example, in this code int main(int argc, char *argv[])[详细]
2023-03-12 17:53 分类:问答alternative to mutex lock/unlock when accessing class data
I am trying to make my_class thread-safe like so. class my_class { const std::vector<double>&[详细]
2023-03-11 23:57 分类:问答OPENMP F90/95 Nested DO loops - problems getting improvement over serial implementation
I\'ve done some searching but couldn\'t find anything that appeared to be related to my question (sorry if my question is redundant!).Anyway, as the title states, I\'m having trouble getting any impro[详细]
2023-03-11 01:26 分类:问答