Search found 10 matches
- Tue Jul 21, 2020 12:19 pm
- Forum: Using OpenMP
- Topic: loop
- Replies: 1
- Views: 1374
loop
Hello, I started a parallel session and I cannot get the right value of a variable ("normal_fact"). Before the parallel sssion, normal_fact has a value which is modified in the parallel session (it depends on "param" with is also modified in the parallel session) By using firspriavte, the value of n...
- Tue Apr 07, 2020 1:36 pm
- Forum: Using OpenMP
- Topic: copy structure
- Replies: 2
- Views: 1094
Re: copy structure
If I can be more specific I have param_int_str param_ ; I initialize the structure param_ This structure has a variable (another structure param) whose I get the elements through its address param_str *ptr_param_ = &(param_.param) ; only in the parallel loop. This does not works. I guess that when I...
- Tue Apr 07, 2020 12:02 pm
- Forum: Using OpenMP
- Topic: copy structure
- Replies: 2
- Views: 1094
copy structure
Hello,
I have a structure that I partially set up before the parallel loop
I would like to have a new copy of this structure for each thread
because the loop is going to modify this structure.
How can I do that?
Thanks
I have a structure that I partially set up before the parallel loop
I would like to have a new copy of this structure for each thread
because the loop is going to modify this structure.
How can I do that?
Thanks
- Thu Oct 12, 2017 12:26 pm
- Forum: Using OpenMP
- Topic: give credit to OPENMP
- Replies: 1
- Views: 1444
give credit to OPENMP
Hello,
How can I give credit (cite) openmp in te paper?
Thank.
How can I give credit (cite) openmp in te paper?
Thank.
- Thu Sep 28, 2017 9:43 am
- Forum: Using OpenMP
- Topic: only one CPU at the end
- Replies: 2
- Views: 1582
Re: only one CPU at the end
Thank you very much
Both help. dynamics is better than static
Both help. dynamics is better than static
- Wed Sep 27, 2017 4:30 pm
- Forum: Using OpenMP
- Topic: only one CPU at the end
- Replies: 2
- Views: 1582
only one CPU at the end
Hello, I am running a loop where I do allocate the memory for each thread: for (unsigned short int i = 0 ; i < NB_THREAD ; i++) { ptr_param_ = &(param_ .param) ; fcn_ .params = ¶m_ ; fcn_ .function = (function_gsl) &FM_stand_wave_TT ; wksp_ = gsl_integration_cquad_workspace_alloc (size_integ_imp...
- Tue Sep 19, 2017 6:07 am
- Forum: Using OpenMP
- Topic: pointer
- Replies: 5
- Views: 2326
Re: pointer
Hello, I tried, but it does not work. I can have one explanation. If it it shared, then the all the threads may access the the same data pointed by param, while there are modified by i (through x ). If I understand correctly, the same memory space is used by all the threads. If I declare private, th...
- Tue Sep 19, 2017 2:41 am
- Forum: Using OpenMP
- Topic: pointer
- Replies: 5
- Views: 2326
Re: pointer
param is a structure
It is partial initialized before the loop and it is modified by the loop. I depnds on the value of i (through x)
It is partial initialized before the loop and it is modified by the loop. I depnds on the value of i (through x)
- Mon Sep 18, 2017 12:16 pm
- Forum: Using OpenMP
- Topic: pointer
- Replies: 5
- Views: 2326
pointer
Hello, I am trying to parallelize the following loop: for (unsigned long int i = 0 ; i < nbpt ; i++) { x = x_min + i * step ; voigt_integ_set_w (¶m, x ) ; } param is a structure that I keep using during the loop when I do not parallelize. The pointed values depends on i How, can I make it work w...
- Wed Jan 11, 2017 11:39 am
- Forum: Using OpenMP
- Topic: GSL quadrature and OpenMP
- Replies: 3
- Views: 6742
Re: GSL quadrature and OpenMP
Hello,
How did you solve the issue?
I have a similar problem.
Could you post a working example?
Thank.
How did you solve the issue?
I have a similar problem.
Could you post a working example?
Thank.