Hi,
I am currently using OpenMP (gcc 4.2.0) to do parallel computing on a
computer with a certain amount of cpu's.
I need the total number of cpu's as a variable in my code. So I was
wondering how I could do this. Does there exists a system call for that
or something or is the best way just to take this out of /proc/cpuinfo?
I also would like to use some preprocessor code in it to cancel out the
pragma directive of omp when I only have one cpu. Is there a way to
do this?
Thanks
Klaas