Dear Maxi,

Thank you so much for reminding me of that !! Works fantastic!

Regards,
Kartik Jujare


On Sunday, July 16, 2017 at 9:06:20 PM UTC+2, Maxi Miller wrote:
>
> Can you try CMake-GUI? At least there you can find all occurences of 
> openmp and enable it.
>
> Am Sonntag, 16. Juli 2017 19:28:27 UTC+2 schrieb Kartik Jujare:
>>
>> Hello,
>>
>> Would be grateful if anyone could correct or direct me to the right 
>> solution.
>>
>> As a test I have a following for loop is a step file
>>
>> #pragma omp parallel
>> {
>> #pragma omp for //private(k) reduction(+:integral)
>> for (k = 0; k < 4; k++)
>> {
>> sleep(1);
>> }
>> }
>>
>>
>> Now the time outputs of the this for loop and another normal one (without 
>> openmp) are the same. I think the problem lies in the flag that I am 
>> passing in the Cmakefile but cant figure out what? 
>>
>> I have tried setting the following flags:
>>
>> SET (MPI_CXX_COMPILE_FLAGS "-fopenmp")  
>> //OR
>> SET (DEAL_II_CXX_FLAGS "-fopenmp")
>>
>> I suppose I dont understand cmake very well. What would be an appropriate 
>> place to place the above line in the CMakeLists.txt
>>
>> Thank you and regards,
>> Kartik Jujare
>>
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to