cancel
Showing results for 
Search instead for 
Did you mean: 

c++ interfacing - using openmp for parallel loops

naveen_sharma
New Contributor
Hi,
Can we use the K objects with openmp for parallel processing.
My sequential code runs fine but when i use #pragma omp parallel in some for loops which use K objects, it starts giving segmentation fault.

Regards,
2 REPLIES 2

naveen_sharma
New Contributor
It seems like an openmp issue as even basic parallel array assign is also giving me segmentation faults.
If there're general rules which can be helpful, please advise, o/w pl. ignore/ delete.

Final update!. Got it working and there is ~3x performance improvement. Using even a very modest 4g memory linux configuration with 8 cores.