-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Job executing problem on RBPi with Raspbian Stretch in _parallel.py #1212
Comments
It seems that psutil cannot determine the physical cpu count on your system. The solution is to probably fall back to num_processes=1 if it cannot be determined |
I can make this fix I think. Checking |
Opened an upstream issue in psutil for this: giampaolo/psutil#1359 |
*Fallback to 1 when cpu_count returns None *Create test_util.py and add test Fixes Qiskit#1212
…skit#1214) *Fallback to 1 when cpu_count returns None *Create test_util.py and add test Fixes Qiskit#1212
Informations
What is the current behavior?
When trying to execute job on my Raspberry Pi B I get following error in _parallel.py:
"... _parallel.py", line 109, in parallel_map
if platform.system() != 'Windows' and num_processes > 1
TypeError: '>' not supported between instances of 'NoneType' and 'int'
From what I understand initialization of num_processes (or rather it's default value - CPU_COUNT = local_hardware_info()['cpus']) is a problem on selected os.
Steps to reproduce the problem
Try to execute a job on Raspbian Stretch on RBPi.
What is the expected behavior?
The job gets executed.
Suggested solutions
Check if num_processes is an initialized int before comparison.
The text was updated successfully, but these errors were encountered: