Skip to Content.
Sympa Menu

opal - [Opal] mpirun and anaconda

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

[Opal] mpirun and anaconda


Chronological Thread  
  • From: "Kim, Seongyeol" <seongyeol.kim AT anl.gov>
  • To: "opal AT lists.psi.ch" <opal AT lists.psi.ch>
  • Subject: [Opal] mpirun and anaconda
  • Date: Wed, 26 Jan 2022 18:13:26 +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=Smq0PSHlQ5xE7fBqfaGyjrN94Dj2l4XePg5uO2i+ejM=; b=e3AbptsFgRdwYHkJokZyLZzXnaiSmiLEX2HjXTeOZKz9NJWll28hY6cEGUH7z4+cQwy7npGt/uWb9q+SqBlrjSl2ngNQxKhbwub15uEkybsUsQPxj0xP3I8ltfgf7FrqBWYgld12Obv9OrOngsQIG4Q1/lAopDM9ilHfCNycdHfcZITjdzNECg4Qk51Z/YCNaTkq+OB4JWNM7NhPGksDHptMyTRHZFUSgPAMQwE/d24eo3H0NzJG10oA3QuO/2JbT7frink6bUKadxlxOYLwvsA1ii24dVpvV8d3qdEDsouVvXzRuqyBNdkfYkeQl2u8zxLGufOSUKUdU+ZFPDjzUA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CC5HZPdO3R5HAM58tkB43IK2LDwhfyXdv5a6cXybyEb6Ro3umuOAwalCilJjsXSTU0TpnSWY/ZunH1pQ93qyCnDgS1FTpldXfjaSjyU+vEM32ReQsyWnfWzy0r7ohYCFyEAjuKVNjgf+hwCW1bMKuew1DjH1jCdP82b7PbBweo0F+YpTt1eLYtQ7uQ1KyY38P2TInLWZ6S3zo/w7OtfTu9sbvsrVkwAaCC4GJhLxHEb0cAYhztNVWk452T+QyQeRlK0TE7BXHIe9WZLdaC6xlWs7FwonZ50jaWX+/qE4HrJlulWRA9NPX4ylzK4W6RcVzyOLR//YKllRW0+t9njvSw==
  • Authentication-results: mc3.ethz.ch; iprev=pass (mail-bl2gcc02on2065.outbound.protection.outlook.com) smtp.remote-ip=40.107.89.65; 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: f7cb69f1-253e-feb7-bec3-c67bd1bdaa47

Dear all,

I would like to do the parallel computing of the OPAL simulation using mpirun command.
However, when I activate anaconda by sourcing the bash (.bashrc) and try to run the simulation with "mpirun -np 4 opal input.in,"
I found that it does not use 4 cores for the parallel computing, but same simulation is performed 4 times.
When the anaconda is deactivated, mpirun works well.

I would like to use the python at the same time (for MOGA and AI/ML libraries), and I am wondering how to solve this issue.
Thank you very much!

Below is some lines for sourcing opal and anaconda inside .bashrc file.
====================================================================================
# Sourcing OPAL simulation
source "/home/sykim12/OPAL/OPAL-2021.1/etc/profile.d/opal.sh"


# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/sykim12/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/home/sykim12/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/home/sykim12/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/home/sykim12/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
 ====================================================================================

Best regards,
Seongyeol 



Archive powered by MHonArc 2.6.19.

Top of Page