openmp
Are pointers private in OpenMP parallel sections?
I\'ve开发者_Python百科 added OpenMP to an existing code base in order to parallelize a for loop.Several variables are created inside the scope of the parallel for region, including a pointer:[详细]
2023-04-12 04:27 分类:问答openMP with only one thread running?
I have this code in the main: int main(int argv, char **argc) { // Get multi-CPU/multi-GPU data int num_gpus;[详细]
2023-04-11 23:30 分类:问答How to make OpenMP thread or task run on a certain core
Is there a way to make an OMP thread or task run on a certain core? I fou开发者_如何学Gond this, followed the link, but I couldn\'t find the source code to test it. Also this is an Intel solution to i[详细]
2023-04-11 23:11 分类:问答TBB concurrent_vector with openmp
Can we use TBB concurrent_vector with开发者_开发知识库 openmp? Will concurrent updates be allowed?Yes, TBB\'s concurrent data structures are meant to be thread-safe, which means whatever threading pa[详细]
2023-04-11 14:28 分类:问答Summing with OpenMP using C
I\'ve been trying to parallelize this piece of code for about two days and keep having logical errors. The program is to find the area of an integral using the sum of the very small dx and calculate e[详细]
2023-04-11 05:16 分类:问答C++ OpenMP directives
I have a loop that I\'m trying to parallelize and in it I am filling a container, say an STL map. Consider then the simple pseudo code below where T1 and T2 are some arbitrary types, while f and g are[详细]
2023-04-11 03:28 分类:问答How to get linear speed up with more than 3 thread in my code?
I\'m working on a code in openMP. The code have to print in a file all prime number between 2 and 1000000. The serial algorithme take 150 sec to achive all the computation, with two threads export OMP[详细]
2023-04-10 03:34 分类:问答OpenMP won't utilize all cores?
I\'m trying to use OpenMP to make some code parallel. omp_set_num_threads( 8 ); #pragma omp parallel for (int i = 0; i < verSize; ++i)[详细]
2023-04-08 18:11 分类:问答Parallelize while loop with OpenMP
I have a very large data file, and each record in this data file has 4 lines. I have written a very simple C program开发者_如何学Go to analyze files of this type and print out some useful information.[详细]
2023-04-06 20:17 分类:问答Is there a way to tell openmp that shared data is constant?
I am guessing that even reading from shared data in openmp causes some parallel overheads, as depending on processor architecture (if different cores have their own cache...) it may be necessary to re[详细]
2023-04-05 08:23 分类:问答