How can I utilize multiple cores on Azure ML Studio VM's?

KJ3 1 Reputation point
2020-10-26T09:16:51.737+00:00

Hi. I have a python script which can be run either sequentially or in parallel (using concurrent.futures). On my local machine using the parallel option results in a considerably faster execution (nearly linear speed up). Running the same script inside an Experiment on Azure ML Studio I was not able to observe any speedup from the parallel version. At first I thought adding the following line conda_env.docker.arguments = ["--cpuset-cpus=4"] would help, but still the same. Therfore my question is, how can I enable the docker container to leverage multiple cores of the vm-instance? Kind Regard Kai

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,859 questions
{count} votes

2 answers

Sort by: Most helpful
  1. YutongTie-MSFT 50,866 Reputation points
    2020-11-04T08:09:05.837+00:00

    Hello Kai,

    You can easily change your VM with different cores according to your need. Please see following pic and let me know if you have any question.
    37452-image.png

    Regards,
    Yutong

    0 comments No comments

  2. KJ3 1 Reputation point
    2020-11-04T08:13:06.12+00:00

    Hello Yutonn,

    I know how to change the #cores of my VM. The problem is, that these cores are not utilized.
    I guess it's somehow related to this issue https://stackoverflow.com/questions/15639779/why-does-multiprocessing-use-only-a-single-core-after-i-import-numpy

    Regards
    Kai


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.