Skip to Content.
Sympa Menu

opal - Re: [Opal] mpirun and anaconda

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] mpirun and anaconda


Chronological Thread  
  • From: "Kim, Seongyeol" <seongyeol.kim AT anl.gov>
  • To: "Gsell Achim (PSI)" <achim.gsell AT psi.ch>
  • Cc: "Adelmann Andreas (PSI)" <andreas.adelmann AT psi.ch>, "opal AT lists.psi.ch" <opal AT lists.psi.ch>, Nicole R Neveu <nneveu AT stanford.edu>
  • Subject: Re: [Opal] mpirun and anaconda
  • Date: Wed, 26 Jan 2022 22:43:38 +0000
  • Accept-language: en-US, ko-KR
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+5772JyinTfYs4noeOonf3O0GRcUKdIMO9+9A6654Uo=; b=XEki/KzTBIU5EEYqxVqK7VnQefXDyJ/gu+h7xS63mmwu7JTLGJpHzvOCxrlEFqCjsGRYdMbVMxxyTHa6sMQDXIT+0xWJrAl0G6LUQBhAgkZA3+L7ofKFGMc7ukll8GiW6/9i+rwW7bVH7LH6Wu0xaVLbdymHb/M8084MjRFgXbY0Z/yfkAQhPJRV8wOWthi4mTtQtFcGbPj99KxbuEkwO9yAxleKYkyuEOvNbqL0R5eHYFAda12NuIAvnKdlqx5IGFlUvYWk5Z6J1jGF4CEsx4kL/cqEb8+ct8D7EK3/oReoPC8ozUlSCWq3IHpthehbHKi9cFyyP2kgO0bXz5YP+w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JWj8CTf6SER8CbKtbck1BCwAZvwoH+ZlJKSLIFUX83YZv5PV+7Ra3vhvbhMJ2zSPV39xNNxukhNZ0VxMsflRQUJZN6HpsZ803ApjTKTKnrJtesuPTg4A/fc/a13vLLHt/pNTKWu5ljNDyjzkZVkZm94LA/SUZQpm1CM/jFycpH8cMYNBkey3F2879LtNsNvA16rOkzXjUgniQ7uyHEpXqZ7nYaAWqfnxZEaJ6aQgzO+zCC2AEgIZdx1S+1aY1pOx4O0lHROUPf3iJhH/kfl3u+XYTh4/n6Ap8nFXhX13e3Cj+/+6utjufttly3SLlzWwjU5cVgdXNdQNGnNtFG9quQ==
  • Authentication-results: mc2.ethz.ch; iprev=pass (mail-dm3gcc02on2077.outbound.protection.outlook.com) smtp.remote-ip=40.107.91.77; spf=pass smtp.mailfrom=anl.gov; dkim=pass header.d=anl.gov header.s=selector1 header.a=rsa-sha256; dmarc=pass header.from=anl.gov
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=anl.gov;
  • Suggested_attachment_session_id: 4fdc7aff-3f02-b972-45bd-276378d5b9b6

Dear Gsell, Nicole, Alba, Andreas,

Thank you all for your nice help! 
I checked that when I activated the Anaconda, then the path of the mpirun is changed to anaconda, not the opal directory.
Now I understood why it does not work with anaconda environment.

Following Alba's suggestion, I tried to find the line, but I could not find it (but thank you for your suggestion!).
Then I tried with Gsell's suggestion, ($OPAL_PREFIX/bin/mpirun -np 4 opal ....), and I checked it works!
I am not sure if it works when I remove the mpirun installed in the anaconda, but I will try.

Thank you for your help again!

Best regards,
seongyeol


From: Gsell Achim (PSI) <achim.gsell AT psi.ch>
Sent: Wednesday, January 26, 2022 15:56
To: Kim, Seongyeol <seongyeol.kim AT anl.gov>
Cc: Adelmann Andreas (PSI) <andreas.adelmann AT psi.ch>; opal AT lists.psi.ch <opal AT lists.psi.ch>; Nicole R Neveu <nneveu AT stanford.edu>
Subject: Re: [Opal] mpirun and anaconda
 
Hi Seomgyeol

> On 26 Jan 2022, at 22:48, Nicole R Neveu <nneveu AT stanford.edu> wrote:
>
> Hi Seongyeol,

> Maybe you have accidentally installed another mpi in your conda environment.
> This happened to me recently. You can check with mpi you are using by calling:
> >which mpirun

> See if you get the same results w/ and w/o your conda env loaded.

Yes, most likely. You should use mpirun from the OPAL package:

$OPAL_PREFIX/bin/mpirun -np 4 opal ....

If this doesn't work, please send the output of

ldd $OPAL_PREFIX/bin/opal

before and after loading anaconda. Sourcing the OPAL profile after initialising anaconda might also help.

Best

Achim



> Thanks,

> Nicole

> From: opal-request AT lists.psi.ch <opal-request AT lists.psi.ch> on behalf of Kim, Seongyeol <seongyeol.kim AT anl.gov>
> Date: Wednesday, January 26, 2022 at 12:55 PM
> To: Adelmann Andreas (PSI) <andreas.adelmann AT psi.ch>
> Cc: opal AT lists.psi.ch <opal AT lists.psi.ch>
> Subject: Re: [Opal] mpirun and anaconda
>
> Dear Andreas,

> Please find the attached pdf file for more details.

> When calling the OPAL, I simply used: opal input.in where input.in indicates the name of the input file.
> For the parallel running, I used: mpirun -np number opal input.in. Here I put the number to 4 just in case for checking.

> Indeed, when I activate the Anaconda through .bashrc, you can see that there are 4 same messages when I try to do parallel run.
> On the other hand, when I deactivate the Anaconda, then it works fine. This also happens when using miniconda.

> Thank you for your help!
> Best regards,
> Seongyeol
> From: Adelmann Andreas (PSI) <andreas.adelmann AT psi.ch>
> Sent: Wednesday, January 26, 2022 14:20
> To: Kim, Seongyeol <seongyeol.kim AT anl.gov>
> Cc: opal AT lists.psi.ch <opal AT lists.psi.ch>
> Subject: Re: [Opal] mpirun and anaconda

> Dear Seongyeol to me this is an incompatibility with the MPI library
> OPAL is build with and, your Anaconda/Python installation. 

> Can you elaborate a bit more how you call OPAL for the notebook?

> Cheers A
> ------
> Dr. sc. math. Andreas (Andy) Adelmann
> Head a.i. Labor for Scientific Computing and Modelling
> Paul Scherrer Institut OHSA/ CH-5232 Villigen PSI
> Phone Office: xx41 56 310 42 33 Fax: xx41 56 310 31 91
> Zoom ID: 470-582-4086 Password: AdA
> Zoom Link: https://ethz.zoom.us/j/4705824086?pwd=dFcvT1pMMGY0bHg0dTNncUNZZTJkZz09
>
> -------------------------------------------------------
> Friday: ETH HPK G 28   +41 44 633 3076
> ============================================
> The more exotic, the more abstract the knowledge,
> the more profound will be its consequences.
> Leon Lederman
> ============================================
>
>
> On 26 Jan 2022, at 19:13, Kim, Seongyeol <seongyeol.kim AT anl.gov> wrote:

> Seongyeol




Archive powered by MHonArc 2.6.19.

Top of Page