Insights Blog
-- Browse All Articles --
Physics Articles
Physics Tutorials
Physics Guides
Physics FAQ
Math Articles
Math Tutorials
Math Guides
Math FAQ
Education Articles
Education Guides
Bio/Chem Articles
Technology Guides
Computer Science Tutorials
Forums
Chemistry
Biology and Medical
Earth Sciences
Computer Science
Computing and Technology
DIY Projects
Trending
Featured Threads
Log in
Register
What's new
Search
Search
Search titles only
By:
Chemistry
Biology and Medical
Earth Sciences
Computer Science
Computing and Technology
DIY Projects
Menu
Log in
Register
Navigation
More options
Contact us
Close Menu
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Other Sciences
Programming and Computer Science
How to Retrieve the Value of MPI_TAG_UB in openmpi/2.1.1 Using Fortran?
Reply to thread
Message
[QUOTE="pachomba, post: 6047940, member: 650109"] Hello, I am trying to get the parameter MPI_TAG_UB for openmpi (I am using version 2.1.1). I know I need to use the routine MPI_COMM_GET_ATTR, but I have no idea how to do that, I never used fortran in my life. Following this link ([URL]https://www.mpi-forum.org/docs/mpi-2.2/mpi22-report/node369.htm[/URL]) I tried this: LOGICAL FLAG INTEGER IERR INTEGER (KIND=MPI_ADDRESS_KIND) VALUE ! Upon successful return, VALUE == 7 (sign extended) CALL MPI_COMM_GET_ATTR(MPI_COMM_WORLD, KEYVAL, VALUE, FLAG, IERR) I put that in a file test.f90, then did gfortran test.f90 -o test.out, but I got this error message: Error: Parameter 'mpi_address_kind' at (1) has not been declared or is a variable, which does not reduce to a constant expression Error: Unexpected end of file in 'test.f90' So I have no idea what I'm doing. Did someone ever retrieved the value of MPI_TAG_UB for some MPI implementation? Thanks! [/QUOTE]
Insert quotes…
Post reply
Forums
Other Sciences
Programming and Computer Science
How to Retrieve the Value of MPI_TAG_UB in openmpi/2.1.1 Using Fortran?
Back
Top