Number of Processes General Question
Cassanova, Bill
BCassanova at weather.com
Thu Mar 4 17:07:20 UTC 2010
Hi folks,
Just wondering why would vsipl++ report a different number of processors
than sysconf?
The Program:
int main(int argc, char **argv)
{
vsipl init(argc, argv);
std::cout << "num_processors as reported by vsipl++: " <<
num_processors() << std::endl;
std::cout << "num_processors as reported by sysconf(
_SC_NPROCESSORS_CONF ): "
<< sysconf(_SC_NPROCESSORS_CONF) << std::endl;
return(0);
}
The Result:
num_processors as reported by vsipl++: 1
num_processors as reported by sysconf( _SC_NPROCESSORS_CONF ): 8
Do I need to necessarily run a vsipl++ program using mpirun, i.e:
"mpirun -np${num_processors} ./vsipl_tester"
In order for vsipl++ to recognize that there are multiple processors
installed on the machine?
Thanks,
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/vsipl++/attachments/20100304/fe35acce/attachment.html>
More information about the vsipl++
mailing list