matlab cluster profile creation gets stuck
1 view (last 30 days)
Show older comments
I am trying to create a matlab cluster profile in AWS node and it creates 2 process one for matlab.exe inside bin folder and another for matlab.exe inside win64 folder. The matlab.exe inside win64 is a child process of matlab.exe inside bin folder. Child process is blocking the cluster profile creation. If I kill the child process then it proceeds further.
Here is the command for creating cluster profile creation, which is running from powershell script,
matlab.exe -nosplash -nodesktop -noFigureWindows -r "run('C:\cip_tools\polyspace_codeprover\2022b\chocolatey\config\CI\polyspace2022bconfig.m')" -wait -logfile output_file.log
Note:
When executing the cluster profile creation command locally it is running successfully but when it is executed in CI mode it is getting stuck.
When executed locally, UAC pop up came up and it is fixed by changing the pathdef.m file from <root_path>/2022b/toolbox/local to <root_path>/2022b/ and then executing locally is successful i.e no UAC pop up occured and I thought this UAC pop-up was the issue when running in CI as well but in CI mode the above mentioned issue is still coming up i.e. it is stuck in profile creation.
How I am running in CI mode?
I am running the polyspace cluster profile creation as a part of chocolatey package which in turn using powershell. Also tried installing this profile creation direclty in powershell script and triggerred in CI. In either ways it is getting stuck.
Task manager: TaskManager.jpeg. Encircled task in the image is the child process of the above matlab.
Refer Analyze wait chain.jpg file to understand the parent child process.
Few Observations
When the following matlab.exe command is executed,
matlab.exe -wait
two process gets created and the child process i.e. MATLAB.exe in wind64 folder is creating some threads looking for user inputs and this child process is blocked due to awaiting user response. I didn't see any pop up in the screen demanding user response. Please refer the screenshot child_proccess_block (especially circled region) for error message.
0 Comments
Answers (1)
Gayatri
on 8 Feb 2024
Hi Govindaraj,
To overcome the issue of the cluster profile creation command getting stuck in profile creation, I would suggest importing the cluster profile at the point you want to run it, rather than having a script to create a cluster profile.
prof = parallel.importProfile(filename)
It imports the profiles stored in the specified file and returns the names of the imported profiles. You could export a cluster profile where you already created it successfully.
Please refer the below documentation for importing cluster profiles from file: https://in.mathworks.com/help/releases/R2022b/parallel-computing/parallel.importprofile.html
I hope it helps!
0 Comments
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!