()
| 116 | |
| 117 | |
| 118 | def _num_cpu_cores(): |
| 119 | # https://stackoverflow.com/questions/1006289/how-to-find-out-the-number-of-cpus-using-python/55423170#55423170 |
| 120 | try: |
| 121 | import psutil |
| 122 | return psutil.cpu_count(logical=False) |
| 123 | except ImportError: |
| 124 | import os |
| 125 | return len(os.sched_getaffinity(0)) |
| 126 | |
| 127 | |
| 128 | class _SCROLLSTask(Task): |
nothing calls this directly
no outgoing calls
no test coverage detected