Skip to content

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Sep 5, 2025

This takes into account thread affinity, at least on python 3.13 and
above.

$ taskset -c 0,1 ./test/runner core0                                         
Running test_core: (1100 tests)                                              
Using 2 parallel test processes                                              
...                                                                          
                                                                             
$ ./test/runner core0                                                        
Running test_core: (1100 tests)                                              
Using 128 parallel test processes                                            
...                                                                          

@sbc100 sbc100 enabled auto-merge (squash) September 5, 2025 20:33
@sbc100 sbc100 requested a review from kripken September 5, 2025 20:46
@sbc100 sbc100 changed the title Prefer multiprocessing.cpu_count Use os.process_cpu_count where available Sep 5, 2025
@sbc100
Copy link
Collaborator Author

sbc100 commented Sep 5, 2025

Updated.

@sbc100 sbc100 force-pushed the num_cores branch 2 times, most recently from b9a23e0 to ad81db6 Compare September 5, 2025 22:18
@sbc100 sbc100 requested a review from kripken September 5, 2025 22:18
This takes into account thread affinity, at least on python 3.13 and
above.

```
$ taskset -c 0,1 ./test/runner core0
Running test_core: (1100 tests)
Using 2 parallel test processes
...

$ ./test/runner core0
Running test_core: (1100 tests)
Using 128 parallel test processes
...
```
@sbc100 sbc100 disabled auto-merge September 8, 2025 21:43
@sbc100 sbc100 merged commit 446a263 into emscripten-core:main Sep 8, 2025
17 of 30 checks passed
@sbc100 sbc100 deleted the num_cores branch September 8, 2025 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants