How to change a program to MPCORE

General OpenMP discussion

How to change a program to MPCORE

Postby jai_pur » Mon Aug 18, 2008 5:07 am

Hi all,

i have programs written in c and using posix threads with mutex for a single core processor, if i want to now switch from single to multicore what kind of changes in the code i need and do i actually need OPENMP as i have used mutexs and other synchronization.
Posts: 1
Joined: Mon Aug 18, 2008 4:34 am

Re: How to change a program to MPCORE

Postby ejd » Mon Aug 18, 2008 5:31 am

It sounds as if the code has already been written for use on multiple cores. Normally you don't use threads and mutex locks when you are running on a single core machine, because you aren't going to see any speedup.
Posts: 1025
Joined: Wed Jan 16, 2008 7:21 am

Return to Using OpenMP

Who is online

Users browsing this forum: No registered users and 7 guests