Message313382
This is a duplicate of bpo-26692 and bpo-23530, and possibly others.
My impression is that len(os.sched_getaffinity(os.getpid())) is the Right Guess. Currently sched_getaffinity isn't implemented on Windows, but bpo-23530 has some example code for how it could/should be implemented.
@M J Harvey: does this return the right thing for your batch jobs? |
|
Date |
User |
Action |
Args |
2018-03-07 10:12:19 | njs | set | recipients:
+ njs, pitrou, davin, Matthew Rocklin, M J Harvey |
2018-03-07 10:12:19 | njs | set | messageid: <1520417539.78.0.467229070634.issue32986@psf.upfronthosting.co.za> |
2018-03-07 10:12:19 | njs | link | issue32986 messages |
2018-03-07 10:12:19 | njs | create | |
|