CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   making full use of the multicores in workstation (http://www.cfd-online.com/Forums/main/90549-making-full-use-multicores-workstation.html)

HaKu July 13, 2011 13:14

making full use of the multicores in workstation
 
Hey All

i have multicore workstation and i want that my fortran code use all the processors in the system.

usually when i run the code it only uses 2 cores.. i know tht one thing is to do the parallel coding but i dont know bout tht a thing so tht option is out of picture..

can any thing be done in the setting of the workstation before running so atleast it uses 4 or 6 cores if not all ( i mean ayway to fool the workstation)..or nything be done to the hardware .

the main aim is tht serial code use more cores without parallel coding..

take care and all the best....

julien.decharentenay July 13, 2011 22:21

Hi Hassan,

I believe that there are a number of compiler that auto-parallelises loop (see http://www.absoft.com/Absoft_Linux_Compiler.htm for an example).

From experience, the compilation is straightforward: need to recompile everything with the appropriate flag. I don't remember what needs to be done when you run the job, but there is probably something to be done. The performance gains and flexibility is far from optimum.

Good luck.
Julien

Docfreezzzz July 25, 2011 20:44

You are not going to be able to utilize more than one core for computation unless you utilize parallel/threaded programming techniques. It is likely what you are seeing is your code and then some background process using one core each. Compilers generally do not generate binaries automatically parallel in that sense. One easy option is OpenMP but you are likely to see very poor scaling past two cores unless you do some very fancy mutex locking, etc. Nothing is free my friend. Good luck

cfdnewbie July 26, 2011 03:58

Quote:

Originally Posted by HaKu (Post 316022)
Hey All

i have multicore workstation and i want that my fortran code use all the processors in the system.

usually when i run the code it only uses 2 cores.. i know tht one thing is to do the parallel coding but i dont know bout tht a thing so tht option is out of picture..

can any thing be done in the setting of the workstation before running so atleast it uses 4 or 6 cores if not all ( i mean ayway to fool the workstation)..or nything be done to the hardware .

the main aim is tht serial code use more cores without parallel coding..

take care and all the best....

Hello,
I would still seriously encourage you to try a simple approach to parallelization, like a shared memory (openmp) approach. Learning the basics should take less than half a day, and you will benefit from it greatly....


After all, what do you get from a automatic parallelization that has a bad efficiency?
Try real parallelization, you will benefit greatly from it.
If you need pointers to tutorials, let me know!

cheers
:)


All times are GMT -4. The time now is 14:25.