Re: Using multi-processor for model_free

2016-10-05 Thread Mahdi, Sam
Ok. Thank you both by the way. You guys have been incredibly helpful, and
sorry I bothered you guys so much. I'll still attempt to troubleshoot this
and potentially fix it. When I find out what the solution is, I will let
you guys know.
Thank you.

Sincerely,
Sam

On Wed, Oct 5, 2016 at 3:10 PM, Troels Emtekær Linnet  wrote:

> I think there is nothing more to do here.
>
> Call the nearest computer wizard,
> and give a round of beer.
>
> Best Troels
>
>
> Den onsdag den 5. oktober 2016 skrev Mahdi, Sam  >:
>
>> But i already have mpi4py installed from the package list.
>>
>> On Wed, Oct 5, 2016 at 2:43 PM, Troels Emtekær Linnet <
>> tlin...@nmr-relax.com> wrote:
>>
>>> Hi Sam.
>>>
>>> Akk you PI to run this:
>>>
>>> sudo -- sh -c 'setenv MPICC /usr/lib64/openmpi-1.10/bin/mpicc; pip
>>> install mpi4py'
>>> or
>>> sudo -i
>>> setenv MPICC /usr/lib64/openmpi-1.10/bin/mpicc
>>> pip install mpi4py
>>>
>>>
>>> Where '/usr/lib64/openmpi-1.10/bin/mpicc' should be the path to mpicc.
>>>
>>> Find the path with:
>>> which mpicc
>>>
>>> Look here:
>>> https://mpi4py.scipy.org/docs/usrman/install.html
>>>
>>> Under:
>>> "Using pip or easy_install"
>>>
>>> You need to tell where the mpicc is with the environment, so mpi4py can
>>> be compiled correctly.
>>>
>>> Note: Setting the environment in BASH and TCSH is different!
>>>
>>> BASH:
>>> sudo -- sh -c 'env MPICC=/usr/lib64/openmpi-1.10/bin/mpicc; pip install
>>> mpi4py'
>>>
>>> TCSH:
>>> sudo -- sh -c 'setenv MPICC /usr/lib64/openmpi-1.10/bin/mpicc; pip
>>> install mpi4py'
>>>
>>>
>>>
>>>
>>>
>>> 2016-10-05 23:31 GMT+02:00 Mahdi, Sam :
>>>
 Hi Edward,

 I installed mpi4py and OpenMPI both from the fedora packages. I had a
 mpi4py that I downloaded via the site itself, and compiled it, but I wasn't
 able to install it so I deleted it. The command
 mpirun --np 5 python -c "import mpi4py; from mpi4py import MPI;
 print('Mpi4py %s process %d of %d on %s.'%(mpi4py._version_,MPI>COM
 M_WORLD.Get_rank(),MPI>COMM_WORLD.Get_size(),MPI.Get_process
 or_name()))"

 gave no output. These are the mpi packages I have installed
 Openmpi:
 openmpi-1.7.3-1.fc.20(64-bit)
 openmpi-devel-1.7.3-1.fc20(64bit)
 pypar-openmpi-2.1.5_108_3.fc.20(64bit)
 python3-mpi4py-1.3.1-1.fc20(64bit)

 Mpi4py
 mpi4py-common-1.3.1-1.fc20
 mpi4py-mpich-1.3.1-1.fc20
 mpi4py-openmpi-1.3.1-1.fc20
 python3-mpi4py-mpich-1.3.1-1.fc20
 python3-mpi4py-openmpi-1.3.1-1.fc20

 Could you reccomend which packages specifically I should install? I
 could just tell my PI to remove all the openmpi and mpi4py programs, and
 download the specific 2 that do work (if there is a problem with having
 different mpi's and mpi4py's)

 All of these were installed from the fedora packages themselves. Also
 the locate mpi list gave me a massive output (I assume this is because I
 have 5 programs that use mpi)
 Sincerely,
 Sam

 On Wed, Oct 5, 2016 at 2:09 PM, Edward d'Auvergne  wrote:

> On 5 October 2016 at 22:01, Mahdi, Sam 
> wrote:
> > Hi Troels,
> >
> > The mpirun --np 2 gave no output, so I had to abort the command, but
> here is
> > the output.
> > crowlab: [~]> python -c "import mpi4py; print mpi4py.__version__"
> > 1.3.1
> > crowlab: [~]> mpirun --np 2 python -c "from mpi4py import MPI; print
> > MPI.COMM_WORLD.Get_rank()"
> > ^Ccrowlab: [~]>
>
> Hi Sam,
>
> This result I'm pretty sure shows that mpi4py is not functioning
> correctly - i.e. there is an installation problem.  This is what you
> should see:
>
> [edward@localhost ~]$ mpirun --np 2 python -c "from mpi4py import MPI;
> print MPI.COMM_WORLD.Get_rank()"
> 0
> 1
> [edward@localhost ~]$
>
> Note the printout of 0 and 1.  Maybe try the following:
>
> [edward@localhost ~]$ mpirun --np 5 python -c "import mpi4py; from
> mpi4py import MPI; print('Mpi4py %s process %d of %d on %s.'
> %(mpi4py.__version__,
> MPI.COMM_WORLD.Get_rank(),MPI.COMM_WORLD.Get_size(),
> MPI.Get_processor_name()))"
> Mpi4py 1.3.1 process 0 of 5 on localhost.localdomain.
> Mpi4py 1.3.1 process 1 of 5 on localhost.localdomain.
> Mpi4py 1.3.1 process 4 of 5 on localhost.localdomain.
> Mpi4py 1.3.1 process 2 of 5 on localhost.localdomain.
> Mpi4py 1.3.1 process 3 of 5 on localhost.localdomain.
> [edward@localhost ~]$
>
> If you don't see a printout here, then clearly mpi4py and OpenMPI are
> not working together correctly.  Without a printout, your mpi4py is
> FUBAR.  Are you using the default OpenMPI and mpi4py packages form
> fedora, and you don't have any backports or other non-standard sources
> set up for your RPMs?  Do you have any user installed MPI 

Re: Using multi-processor for model_free

2016-10-05 Thread Troels Emtekær Linnet
I think there is nothing more to do here.

Call the nearest computer wizard,
and give a round of beer.

Best Troels

Den onsdag den 5. oktober 2016 skrev Mahdi, Sam :

> But i already have mpi4py installed from the package list.
>
> On Wed, Oct 5, 2016 at 2:43 PM, Troels Emtekær Linnet <
> tlin...@nmr-relax.com
> > wrote:
>
>> Hi Sam.
>>
>> Akk you PI to run this:
>>
>> sudo -- sh -c 'setenv MPICC /usr/lib64/openmpi-1.10/bin/mpicc; pip
>> install mpi4py'
>> or
>> sudo -i
>> setenv MPICC /usr/lib64/openmpi-1.10/bin/mpicc
>> pip install mpi4py
>>
>>
>> Where '/usr/lib64/openmpi-1.10/bin/mpicc' should be the path to mpicc.
>>
>> Find the path with:
>> which mpicc
>>
>> Look here:
>> https://mpi4py.scipy.org/docs/usrman/install.html
>>
>> Under:
>> "Using pip or easy_install"
>>
>> You need to tell where the mpicc is with the environment, so mpi4py can
>> be compiled correctly.
>>
>> Note: Setting the environment in BASH and TCSH is different!
>>
>> BASH:
>> sudo -- sh -c 'env MPICC=/usr/lib64/openmpi-1.10/bin/mpicc; pip install
>> mpi4py'
>>
>> TCSH:
>> sudo -- sh -c 'setenv MPICC /usr/lib64/openmpi-1.10/bin/mpicc; pip
>> install mpi4py'
>>
>>
>>
>>
>>
>> 2016-10-05 23:31 GMT+02:00 Mahdi, Sam > >:
>>
>>> Hi Edward,
>>>
>>> I installed mpi4py and OpenMPI both from the fedora packages. I had a
>>> mpi4py that I downloaded via the site itself, and compiled it, but I wasn't
>>> able to install it so I deleted it. The command
>>> mpirun --np 5 python -c "import mpi4py; from mpi4py import MPI;
>>> print('Mpi4py %s process %d of %d on %s.'%(mpi4py._version_,MPI>COM
>>> M_WORLD.Get_rank(),MPI>COMM_WORLD.Get_size(),MPI.Get_processor_name()))"
>>>
>>> gave no output. These are the mpi packages I have installed
>>> Openmpi:
>>> openmpi-1.7.3-1.fc.20(64-bit)
>>> openmpi-devel-1.7.3-1.fc20(64bit)
>>> pypar-openmpi-2.1.5_108_3.fc.20(64bit)
>>> python3-mpi4py-1.3.1-1.fc20(64bit)
>>>
>>> Mpi4py
>>> mpi4py-common-1.3.1-1.fc20
>>> mpi4py-mpich-1.3.1-1.fc20
>>> mpi4py-openmpi-1.3.1-1.fc20
>>> python3-mpi4py-mpich-1.3.1-1.fc20
>>> python3-mpi4py-openmpi-1.3.1-1.fc20
>>>
>>> Could you reccomend which packages specifically I should install? I
>>> could just tell my PI to remove all the openmpi and mpi4py programs, and
>>> download the specific 2 that do work (if there is a problem with having
>>> different mpi's and mpi4py's)
>>>
>>> All of these were installed from the fedora packages themselves. Also
>>> the locate mpi list gave me a massive output (I assume this is because I
>>> have 5 programs that use mpi)
>>> Sincerely,
>>> Sam
>>>
>>> On Wed, Oct 5, 2016 at 2:09 PM, Edward d'Auvergne >> > wrote:
>>>
 On 5 October 2016 at 22:01, Mahdi, Sam > wrote:
 > Hi Troels,
 >
 > The mpirun --np 2 gave no output, so I had to abort the command, but
 here is
 > the output.
 > crowlab: [~]> python -c "import mpi4py; print mpi4py.__version__"
 > 1.3.1
 > crowlab: [~]> mpirun --np 2 python -c "from mpi4py import MPI; print
 > MPI.COMM_WORLD.Get_rank()"
 > ^Ccrowlab: [~]>

 Hi Sam,

 This result I'm pretty sure shows that mpi4py is not functioning
 correctly - i.e. there is an installation problem.  This is what you
 should see:

 [edward@localhost ~]$ mpirun --np 2 python -c "from mpi4py import MPI;
 print MPI.COMM_WORLD.Get_rank()"
 0
 1
 [edward@localhost ~]$

 Note the printout of 0 and 1.  Maybe try the following:

 [edward@localhost ~]$ mpirun --np 5 python -c "import mpi4py; from
 mpi4py import MPI; print('Mpi4py %s process %d of %d on %s.'
 %(mpi4py.__version__,
 MPI.COMM_WORLD.Get_rank(),MPI.COMM_WORLD.Get_size(),
 MPI.Get_processor_name()))"
 Mpi4py 1.3.1 process 0 of 5 on localhost.localdomain.
 Mpi4py 1.3.1 process 1 of 5 on localhost.localdomain.
 Mpi4py 1.3.1 process 4 of 5 on localhost.localdomain.
 Mpi4py 1.3.1 process 2 of 5 on localhost.localdomain.
 Mpi4py 1.3.1 process 3 of 5 on localhost.localdomain.
 [edward@localhost ~]$

 If you don't see a printout here, then clearly mpi4py and OpenMPI are
 not working together correctly.  Without a printout, your mpi4py is
 FUBAR.  Are you using the default OpenMPI and mpi4py packages form
 fedora, and you don't have any backports or other non-standard sources
 set up for your RPMs?  Do you have any user installed MPI or mpi4py
 software around?  If you type:

 $ locate mpi

 What do you see?  For me this is pretty clearly an installation problem.

 Regards,

 Edward

>>>
>>>
>>
>
___
relax 

Re: Using multi-processor for model_free

2016-10-05 Thread Mahdi, Sam
But i already have mpi4py installed from the package list.

On Wed, Oct 5, 2016 at 2:43 PM, Troels Emtekær Linnet  wrote:

> Hi Sam.
>
> Akk you PI to run this:
>
> sudo -- sh -c 'setenv MPICC /usr/lib64/openmpi-1.10/bin/mpicc; pip
> install mpi4py'
> or
> sudo -i
> setenv MPICC /usr/lib64/openmpi-1.10/bin/mpicc
> pip install mpi4py
>
>
> Where '/usr/lib64/openmpi-1.10/bin/mpicc' should be the path to mpicc.
>
> Find the path with:
> which mpicc
>
> Look here:
> https://mpi4py.scipy.org/docs/usrman/install.html
>
> Under:
> "Using pip or easy_install"
>
> You need to tell where the mpicc is with the environment, so mpi4py can be
> compiled correctly.
>
> Note: Setting the environment in BASH and TCSH is different!
>
> BASH:
> sudo -- sh -c 'env MPICC=/usr/lib64/openmpi-1.10/bin/mpicc; pip install
> mpi4py'
>
> TCSH:
> sudo -- sh -c 'setenv MPICC /usr/lib64/openmpi-1.10/bin/mpicc; pip
> install mpi4py'
>
>
>
>
>
> 2016-10-05 23:31 GMT+02:00 Mahdi, Sam :
>
>> Hi Edward,
>>
>> I installed mpi4py and OpenMPI both from the fedora packages. I had a
>> mpi4py that I downloaded via the site itself, and compiled it, but I wasn't
>> able to install it so I deleted it. The command
>> mpirun --np 5 python -c "import mpi4py; from mpi4py import MPI;
>> print('Mpi4py %s process %d of %d on %s.'%(mpi4py._version_,MPI>COM
>> M_WORLD.Get_rank(),MPI>COMM_WORLD.Get_size(),MPI.Get_processor_name()))"
>>
>> gave no output. These are the mpi packages I have installed
>> Openmpi:
>> openmpi-1.7.3-1.fc.20(64-bit)
>> openmpi-devel-1.7.3-1.fc20(64bit)
>> pypar-openmpi-2.1.5_108_3.fc.20(64bit)
>> python3-mpi4py-1.3.1-1.fc20(64bit)
>>
>> Mpi4py
>> mpi4py-common-1.3.1-1.fc20
>> mpi4py-mpich-1.3.1-1.fc20
>> mpi4py-openmpi-1.3.1-1.fc20
>> python3-mpi4py-mpich-1.3.1-1.fc20
>> python3-mpi4py-openmpi-1.3.1-1.fc20
>>
>> Could you reccomend which packages specifically I should install? I could
>> just tell my PI to remove all the openmpi and mpi4py programs, and download
>> the specific 2 that do work (if there is a problem with having different
>> mpi's and mpi4py's)
>>
>> All of these were installed from the fedora packages themselves. Also the
>> locate mpi list gave me a massive output (I assume this is because I have 5
>> programs that use mpi)
>> Sincerely,
>> Sam
>>
>> On Wed, Oct 5, 2016 at 2:09 PM, Edward d'Auvergne 
>> wrote:
>>
>>> On 5 October 2016 at 22:01, Mahdi, Sam 
>>> wrote:
>>> > Hi Troels,
>>> >
>>> > The mpirun --np 2 gave no output, so I had to abort the command, but
>>> here is
>>> > the output.
>>> > crowlab: [~]> python -c "import mpi4py; print mpi4py.__version__"
>>> > 1.3.1
>>> > crowlab: [~]> mpirun --np 2 python -c "from mpi4py import MPI; print
>>> > MPI.COMM_WORLD.Get_rank()"
>>> > ^Ccrowlab: [~]>
>>>
>>> Hi Sam,
>>>
>>> This result I'm pretty sure shows that mpi4py is not functioning
>>> correctly - i.e. there is an installation problem.  This is what you
>>> should see:
>>>
>>> [edward@localhost ~]$ mpirun --np 2 python -c "from mpi4py import MPI;
>>> print MPI.COMM_WORLD.Get_rank()"
>>> 0
>>> 1
>>> [edward@localhost ~]$
>>>
>>> Note the printout of 0 and 1.  Maybe try the following:
>>>
>>> [edward@localhost ~]$ mpirun --np 5 python -c "import mpi4py; from
>>> mpi4py import MPI; print('Mpi4py %s process %d of %d on %s.'
>>> %(mpi4py.__version__,
>>> MPI.COMM_WORLD.Get_rank(),MPI.COMM_WORLD.Get_size(),
>>> MPI.Get_processor_name()))"
>>> Mpi4py 1.3.1 process 0 of 5 on localhost.localdomain.
>>> Mpi4py 1.3.1 process 1 of 5 on localhost.localdomain.
>>> Mpi4py 1.3.1 process 4 of 5 on localhost.localdomain.
>>> Mpi4py 1.3.1 process 2 of 5 on localhost.localdomain.
>>> Mpi4py 1.3.1 process 3 of 5 on localhost.localdomain.
>>> [edward@localhost ~]$
>>>
>>> If you don't see a printout here, then clearly mpi4py and OpenMPI are
>>> not working together correctly.  Without a printout, your mpi4py is
>>> FUBAR.  Are you using the default OpenMPI and mpi4py packages form
>>> fedora, and you don't have any backports or other non-standard sources
>>> set up for your RPMs?  Do you have any user installed MPI or mpi4py
>>> software around?  If you type:
>>>
>>> $ locate mpi
>>>
>>> What do you see?  For me this is pretty clearly an installation problem.
>>>
>>> Regards,
>>>
>>> Edward
>>>
>>
>>
>
___
relax (http://www.nmr-relax.com)

This is the relax-users mailing list
relax-users@gna.org

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-users


Re: Using multi-processor for model_free

2016-10-05 Thread Mahdi, Sam
Hi Edward,

I installed mpi4py and OpenMPI both from the fedora packages. I had a
mpi4py that I downloaded via the site itself, and compiled it, but I wasn't
able to install it so I deleted it. The command
mpirun --np 5 python -c "import mpi4py; from mpi4py import MPI;
print('Mpi4py %s process %d of %d on
%s.'%(mpi4py._version_,MPI>COMM_WORLD.Get_rank(),MPI>COMM_WORLD.Get_size(),MPI.Get_processor_name()))"

gave no output. These are the mpi packages I have installed
Openmpi:
openmpi-1.7.3-1.fc.20(64-bit)
openmpi-devel-1.7.3-1.fc20(64bit)
pypar-openmpi-2.1.5_108_3.fc.20(64bit)
python3-mpi4py-1.3.1-1.fc20(64bit)

Mpi4py
mpi4py-common-1.3.1-1.fc20
mpi4py-mpich-1.3.1-1.fc20
mpi4py-openmpi-1.3.1-1.fc20
python3-mpi4py-mpich-1.3.1-1.fc20
python3-mpi4py-openmpi-1.3.1-1.fc20

Could you reccomend which packages specifically I should install? I could
just tell my PI to remove all the openmpi and mpi4py programs, and download
the specific 2 that do work (if there is a problem with having different
mpi's and mpi4py's)

All of these were installed from the fedora packages themselves. Also the
locate mpi list gave me a massive output (I assume this is because I have 5
programs that use mpi)
Sincerely,
Sam

On Wed, Oct 5, 2016 at 2:09 PM, Edward d'Auvergne 
wrote:

> On 5 October 2016 at 22:01, Mahdi, Sam  wrote:
> > Hi Troels,
> >
> > The mpirun --np 2 gave no output, so I had to abort the command, but
> here is
> > the output.
> > crowlab: [~]> python -c "import mpi4py; print mpi4py.__version__"
> > 1.3.1
> > crowlab: [~]> mpirun --np 2 python -c "from mpi4py import MPI; print
> > MPI.COMM_WORLD.Get_rank()"
> > ^Ccrowlab: [~]>
>
> Hi Sam,
>
> This result I'm pretty sure shows that mpi4py is not functioning
> correctly - i.e. there is an installation problem.  This is what you
> should see:
>
> [edward@localhost ~]$ mpirun --np 2 python -c "from mpi4py import MPI;
> print MPI.COMM_WORLD.Get_rank()"
> 0
> 1
> [edward@localhost ~]$
>
> Note the printout of 0 and 1.  Maybe try the following:
>
> [edward@localhost ~]$ mpirun --np 5 python -c "import mpi4py; from
> mpi4py import MPI; print('Mpi4py %s process %d of %d on %s.'
> %(mpi4py.__version__,
> MPI.COMM_WORLD.Get_rank(),MPI.COMM_WORLD.Get_size(),
> MPI.Get_processor_name()))"
> Mpi4py 1.3.1 process 0 of 5 on localhost.localdomain.
> Mpi4py 1.3.1 process 1 of 5 on localhost.localdomain.
> Mpi4py 1.3.1 process 4 of 5 on localhost.localdomain.
> Mpi4py 1.3.1 process 2 of 5 on localhost.localdomain.
> Mpi4py 1.3.1 process 3 of 5 on localhost.localdomain.
> [edward@localhost ~]$
>
> If you don't see a printout here, then clearly mpi4py and OpenMPI are
> not working together correctly.  Without a printout, your mpi4py is
> FUBAR.  Are you using the default OpenMPI and mpi4py packages form
> fedora, and you don't have any backports or other non-standard sources
> set up for your RPMs?  Do you have any user installed MPI or mpi4py
> software around?  If you type:
>
> $ locate mpi
>
> What do you see?  For me this is pretty clearly an installation problem.
>
> Regards,
>
> Edward
>
___
relax (http://www.nmr-relax.com)

This is the relax-users mailing list
relax-users@gna.org

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-users


Re: Using multi-processor for model_free

2016-10-05 Thread Edward d'Auvergne
On 5 October 2016 at 22:01, Mahdi, Sam  wrote:
> Hi Troels,
>
> The mpirun --np 2 gave no output, so I had to abort the command, but here is
> the output.
> crowlab: [~]> python -c "import mpi4py; print mpi4py.__version__"
> 1.3.1
> crowlab: [~]> mpirun --np 2 python -c "from mpi4py import MPI; print
> MPI.COMM_WORLD.Get_rank()"
> ^Ccrowlab: [~]>

Hi Sam,

This result I'm pretty sure shows that mpi4py is not functioning
correctly - i.e. there is an installation problem.  This is what you
should see:

[edward@localhost ~]$ mpirun --np 2 python -c "from mpi4py import MPI;
print MPI.COMM_WORLD.Get_rank()"
0
1
[edward@localhost ~]$

Note the printout of 0 and 1.  Maybe try the following:

[edward@localhost ~]$ mpirun --np 5 python -c "import mpi4py; from
mpi4py import MPI; print('Mpi4py %s process %d of %d on %s.'
%(mpi4py.__version__,
MPI.COMM_WORLD.Get_rank(),MPI.COMM_WORLD.Get_size(),
MPI.Get_processor_name()))"
Mpi4py 1.3.1 process 0 of 5 on localhost.localdomain.
Mpi4py 1.3.1 process 1 of 5 on localhost.localdomain.
Mpi4py 1.3.1 process 4 of 5 on localhost.localdomain.
Mpi4py 1.3.1 process 2 of 5 on localhost.localdomain.
Mpi4py 1.3.1 process 3 of 5 on localhost.localdomain.
[edward@localhost ~]$

If you don't see a printout here, then clearly mpi4py and OpenMPI are
not working together correctly.  Without a printout, your mpi4py is
FUBAR.  Are you using the default OpenMPI and mpi4py packages form
fedora, and you don't have any backports or other non-standard sources
set up for your RPMs?  Do you have any user installed MPI or mpi4py
software around?  If you type:

$ locate mpi

What do you see?  For me this is pretty clearly an installation problem.

Regards,

Edward

___
relax (http://www.nmr-relax.com)

This is the relax-users mailing list
relax-users@gna.org

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-users


Re: Using multi-processor for model_free

2016-10-05 Thread Troels Emtekær Linnet
Hi Sam.

One thing that bothers me, is that
---
python -c "import mpi4py; print mpi4py.__version__"
---
shows version 1.3.

In the "relax -i" , you uploaded, it says:
mpi4py True 2.0.0
 /home/crowlab/.local/lib/python2.7/site-packages/mpi4py

So, lets check this.

Do this in terminal: 3 small lines, and then one big line.
---
python -c "import mpi4py; print mpi4py.__version__"

mpirun --np 2 python -c "import sys; print('%s'%sys.version_info)"

mpirun --np 2 python -c "import mpi4py; print mpi4py.__version__"

mpirun --np 2 python -c "import mpi4py; from mpi4py import MPI;
print('Mpi4py %s process %d of %d on %s.' %(mpi4py.__version__,
MPI.COMM_WORLD.Get_rank(),MPI.COMM_WORLD.Get_size(),
MPI.Get_processor_name()))"
---

And in the end (we have done it before, lets try again):
---
# NOTE: Use the FULL path to relax. Not the alias function. This is
important
mpirun --np 2 /home/tlinnet/relax-4.0.2/relax --multi='mpi4py' -v
mpirun --np 2 /home/tlinnet/relax-4.0.2/relax --multi='mpi4py' -i

# If this does not work, please provide
relax -v
relax -i
---

Best
Troels

2016-10-04 21:15 GMT+02:00 Mahdi, Sam :

> Hi Troels,
>
> So I ran the script, here is the output. But I got no output for mpirun
> -np 2 python -c "import mpi4py" command.
> crowlab: [~]> which relax
> relax:  aliased to /home/crowlab/relax-4.0.2/relax
> crowlab: [~]> #!/bin/tcsh
> /bin/tcsh: Event not found.
> crowlab: [~]> echo 'http://svn.gna.org/viewcvs/*
> checkout*/relax/trunk/devel_scripts/openmpi_test_install_tcsh.sh'
> http://svn.gna.org/viewcvs/*checkout*/relax/trunk/devel_
> scripts/openmpi_test_install_tcsh.sh
> crowlab: [~]> echo 'Source the commands with: source
> openmpi_test_install_tcsh.sh'
> Source the commands with: source openmpi_test_install_tcsh.sh
> crowlab: [~]> echo ""
>
> crowlab: [~]> set A="'"
> crowlab: [~]> echo "This is functions to test openmpi, python and
> openmpi." echo ""
> This is functions to test openmpi, python and openmpi. echo
> crowlab: [~]>
> crowlab: [~]> echo "Shell is: $SHELL"; echo ""
> Shell is: /bin/tcsh
>
> crowlab: [~]>
> crowlab: [~]> echo "> which mpirun"; which mpirun; echo ""
> > which mpirun
> /usr/lib64/openmpi/bin/mpirun
>
> crowlab: [~]>
> crowlab: [~]> echo "> module avail"; module avail; echo ""
> > module avail
>
>  /usr/share/Modules/modulefiles
> 
> dot module-git  module-info modules nulluse.own
>
> --- /etc/modulefiles
> ---
> mpi/mpich-x86_64   mpi/openmpi-x86_64 mpich-x86_64
>
> crowlab: [~]>
> crowlab: [~]> echo "> lscpu"; lscpu; echo ""
> > lscpu
> Architecture:  x86_64
> CPU op-mode(s):32-bit, 64-bit
> Byte Order:Little Endian
> CPU(s):8
> On-line CPU(s) list:   0-7
> Thread(s) per core:2
> Core(s) per socket:4
> Socket(s): 1
> NUMA node(s):  1
> Vendor ID: GenuineIntel
> CPU family:6
> Model: 58
> Model name:Intel(R) Core(TM) i7-3770S CPU @ 3.10GHz
> Stepping:  9
> CPU MHz:   1600.011
> CPU max MHz:   3900.
> CPU min MHz:   1600.
> BogoMIPS:  6186.25
> Virtualization:VT-x
> L1d cache: 32K
> L1i cache: 32K
> L2 cache:  256K
> L3 cache:  8192K
> NUMA node0 CPU(s): 0-7
>
> crowlab: [~]>
> crowlab: [~]> echo "> mpirun --version"; mpirun --version;echo ""
> > mpirun --version
> mpirun (Open MPI) 1.7.3
>
> Report bugs to http://www.open-mpi.org/community/help/
>
> crowlab: [~]>
> crowlab: [~]> echo "> mpirun --report-bindings -np 2 echo $A hello world
> $A"; mpirun --report-bindings -np 2 echo "hello world"; echo ""
> > mpirun --report-bindings -np 2 echo ' hello world '
> hello world
> hello world
>
> crowlab: [~]>
> crowlab: [~]> echo "> mpirun --report-bindings -np 2 python -c $A print
> "\""hello"\"" $A"; mpirun --report-bindings -np 2 python -c "print $A hello
> $A"; echo ""
> > mpirun --report-bindings -np 2 python -c ' print "hello" '
>  hello
>  hello
>
> crowlab: [~]>
> crowlab: [~]> echo "> mpirun --report-bindings -np 2 python --version";
> mpirun --report-bindings -np 2 python --version; echo ""
> > mpirun --report-bindings -np 2 python --version
> Python 2.7.5
> Python 2.7.5
>
> crowlab: [~]>
> crowlab: [~]> echo "> mpirun --report-bindings -np 2 /usr/bin/env python
> --version"; mpirun --report-bindings -np 2 /usr/bin/env python --version;
> echo ""
> > mpirun --report-bindings -np 2 /usr/bin/env python --version
> Python 2.7.5
> Python 2.7.5
>
> crowlab: [~]> echo "Testing python, mpi4py and mpirun"; python --version;
> /usr/bin/env python --version; python -c "import mpi4py; print
> mpi4py.__version__"
> Testing python, mpi4py and mpirun
> Python 2.7.5
> Python 2.7.5
> 1.3.1
> crowlab: [~]>
> crowlab: [~]> mpirun -np 2 python -c