Author pitrou
Recipients amaury.forgeotdarc, anacrolix, benjamin.peterson, georg.brandl, giampaolo.rodola, neologix, pitrou, python-dev, rosslagerwall, vstinner
Date 2012-08-04.13:03:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Try with an initial value of ncpus=1.

Well, I've tried and it works:

>>> os.sched_getaffinity(0)
{0, 1, 2, 3}

> I don't know if CPU_SETSIZE is part of the standard (POSIX?).

These are Linux-specific functions.
Date User Action Args
2012-08-04 13:03:11pitrousetrecipients: + pitrou, georg.brandl, amaury.forgeotdarc, vstinner, giampaolo.rodola, benjamin.peterson, anacrolix, neologix, rosslagerwall, python-dev
2012-08-04 13:03:11pitrousetmessageid: <>
2012-08-04 13:03:10pitroulinkissue12655 messages
2012-08-04 13:03:10pitroucreate