Search found 4 matches

by ricardojacomini
Mon May 22, 2023 10:32 am
Forum: OpenSeesPy
Topic: issue with ops.getNP()
Replies: 6
Views: 7784

Re: issue with ops.getNP()

I got it. It worked using now mpiexec.hydram in my case intel/2020.1:

$ mpiexec.hydra -n 2 python test.py
np: 2
np: 2
Process 1 Terminating
Process 0 Terminating
by ricardojacomini
Mon May 22, 2023 7:33 am
Forum: OpenSeesPy
Topic: issue with ops.getNP()
Replies: 6
Views: 7784

Re: issue with ops.getNP()

I got it, but I don't use it on the AWS cluster, I am trying to use it on local HPC. I'll try install OpenSeesMP as well.

Anyway, thanks for the suggestion.
by ricardojacomini
Sat May 20, 2023 7:41 am
Forum: OpenSeesPy
Topic: issue with ops.getNP()
Replies: 6
Views: 7784

Re: issue with ops.getNP()

Thank you for the suggestion. I really appreciate it.

But it is the point.

How to set up my server to work like this AWS to do getNP() function to work? Do I also need to install OpenSeesMP?
by ricardojacomini
Thu May 18, 2023 2:01 pm
Forum: OpenSeesPy
Topic: issue with ops.getNP()
Replies: 6
Views: 7784

issue with ops.getNP()

I'm running this openseespy code below with openmpi 4.1.4 version in Linux.

I always retrieve 1 para ops.getNP() function. Any suggestions?

# ------------------ python test.py file

Code: Select all

   import openseespy.opensees as ops

   np = ops.getNP()
   print('np: ', np)

   if np < 2:
       exit()
# ------------------ command line to evaluate it
$ mpiexec -n 2 python test.py
$ mpirun -n 2 python test.py

# ------------------ output after ran the code above

np: 1
np: 1
Process 0 Terminating
Process 0 Terminating
np: 1
np: 1
Process 0 Terminating
Process 0 Terminating

# ------------------ package list
$ pip list

Package Version
--------------- -------
openseespy 3.4.0.8
openseespylinux 3.4.0.8
pip 23.1.2
setuptools 58.1.0

$ python --version
Python 3.9.15