openmp
What core is a given thread running on?
Is there a function or any other way to know, programatically, what core of what processor a given开发者_运维技巧 thread of my program (pid) is running on? Both OpenMP or Pthreads solutions would help[详细]
2023-03-01 13:21 分类:问答Vertical and Horizontal Parallelism
Recently working in parallel domain i come to know that there are two terms \"vertical parallelism \" and \"horizontal parallelism\". Some people says openmp ( shared memory parallelism ) as vertical[详细]
2023-03-01 08:21 分类:问答C OpenMP - Enforce default chunk size
In C to parallelize a loop with schedule(static) would mean that the chunk size is quickly computed as ceil(loops/threads).[详细]
2023-02-28 20:04 分类:问答OMP single hangs inside for
Quick question...I have the following code: void testingOMP() { #pragma omp parallel for for(int i=0;i<5;i++)[详细]
2023-02-28 07:42 分类:问答Using lock in OpenMP and Pthreads
I have a program that uses both Pthreads and OpenMP. Basically, 2 threads (Thread A and B) are created using Pthreads to do work, and in Thread A, OpenMP is used to parallelize a for loop.[详细]
2023-02-25 17:20 分类:问答Fortran: Short form for "do loop"
Hey there, I have a code like that: write (filehandle,\'(5e14.6)\') &(((my_array(i,j,k,1),i=istart,iend,istep)开发者_如何学Python,j=jstart,jend,jstep),k=kstart,kend,kstep)[详细]
2023-02-25 11:35 分类:问答Is it possible to use OpenMP directives in multiple files in a program?
I\'ve got a C program which consists of multiple .c files and multiple .h files. I\'d like to have one #pragma omp parallel directive (so that all of the threads are on开发者_StackOverflow社区ly creat[详细]
2023-02-25 09:30 分类:问答OpenMP GCC GOMP wasteful barrier
I have the following program. nv is around 100, dgemm is 20x100 or so, so there is plenty of work to go around:[详细]
2023-02-25 06:34 分类:问答OpenMP in Fortran: Changes to data types?
I have a program which I once compile with and without OpenMP. Even when I run it with ONE input-file to convert with OMP_NUM_THREADS set to 1, the resulting ASCII files differs from the one which I g[详细]
2023-02-25 04:31 分类:问答OpenMP and reduction()
I\'ve got simply 3 functions, one is control function aan the next 2 function are done in a bit different way using OpenMP. But function thread1 gives another score than thread2 and control and I have[详细]
2023-02-25 02:09 分类:问答