<div dir="auto">Thank you Barry! We will definitely try this out and let you know.</div><div dir="auto"><br></div><div dir="auto">We also found an inconvenient work around. We registered the ip of a head compute node on Mathworks.com, which generated a license file. Then we activated Matlab on this compute node offline by pointing it to the license file. This allowed us to run Matlab engine on the head compute node (we run Matlab on only rank 0 which is mapped to the head compute node).</div><div dir="auto"><br></div><div dir="auto">Kaustubh, can you write the exact instructions for registering an ip on Mathworks.com here, so as to benefit other PETSc users.</div><div dir="auto"><br></div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 10, 2020 at 5:22 PM Barry Smith <<a href="mailto:bsmith@petsc.dev">bsmith@petsc.dev</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><div><br></div>   In the git branch  <b style="color:rgb(200,20,201);font-family:Menlo;font-size:16px">barry/2020-11-10/add-matlab-engine-host </b>  I have added the option -matlab_engine_host hostname <div><br></div><div>   Note this does require you have ssh access to hostname from where your PETSc program is running which may require setting up some ssh files</div><div><br></div><div>   Good luck</div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><br></div><div>   Barry</div><div><br><div><br><blockquote type="cite"><div>On Nov 9, 2020, at 5:35 PM, Kaustubh Khedkar <<a href="mailto:kkhedkar9879@sdsu.edu" target="_blank">kkhedkar9879@sdsu.edu</a>> wrote:</div><br><div><div style="font-family:Helvetica;font-size:18px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div style="margin:0in;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">Hello,<u></u><u></u></span></div><div style="margin:0in;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">I am using PETSc with Matlab engine. I have built an application that uses Matlab engine through PETSc interface. I am trying to run this application on a cluster which has Matlab installed on a network drive (nas drive). I have made sure that I am able to access Matlab using my university details on the cluster (by activating Matlab license through<span> </span><a href="http://mathworks.com/" target="_blank">Mathworks.com</a><span> </span>account). I am also able to run this application using mpirun on the head node (master) which starts the Matlab engine but if I try to run this application using slurm on compute node then the Matlab engine does not start. I have also confirmed that if I login into one of the compute nodes and do a mpirun the Matlab engine does not start there. If I try to launch Matlab on a compute node it asks for Matlab license which the compute node is unable to activate possibly because it is not connected to the internet directly.<u></u><u></u></span></div><div style="margin:0in;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt"><u></u> <u></u></span></div><div style="margin:0in;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">Is there a way start matlab engine on the head node through Petsc interface even though the application is running on compute nodes or is there any other work around this issue?<u></u><u></u></span></div><div style="margin:0in;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt"><u></u> <u></u></span></div><div style="margin:0in;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt"><u></u> <u></u></span></div><div style="margin:0in;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">Thanks,<u></u><u></u></span></div><div style="margin:0in;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">Kaustubh Khedkar</span></div></div></div></blockquote></div><br></div></div></blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>--Amneet <br><br></div><div><br></div><div><br></div></div></div>