HF RL Explorer

Task: Get CPU Count Using Python

Task: Get CPU Count Using Python: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that determines the number of CPUs (logical processors) available on the local machine. The script should output the CPU count that would correspond to the user/real ratio when running an…

The task

Write a Python script that determines the number of CPUs (logical processors) available on the local machine. The script should output the CPU count that would correspond to the `user/real` ratio when running an optimally scaling userspace-only program (as measured by the `time(1)` command).

Part of PrimeIntellect/Terminal-Lego-15k.