coarray mpd error

coarray mpd error

The hello work coarray code

  1 program Hello_World
  2 implicit none
  3 integer :: i  ! Local variable
  4 character(len=20) :: name[*] ! scalar coarray, one "name" for each image.
  5 ! Note: "name" is the local variable while "name[<index>]" accesses the
  6 ! variable in a specific image; "name[this_image()]" is the same as "name".
  8 ! Interact with the user on Image 1; execution for all others pass by.
  9 if (this_image() == 1) then
 10 write(*,'(a)',advance='no') 'Enter your name: '
 11 read(*,'(a)') name
 13 ! Distribute information to other images
 14 do i = 2, num_images()
 15 name[i] = name
 16 end do
 17 end if
 19 sync all ! Barrier to make sure the data have arrived.
 21 ! I/O from all images, executing in any order, but each record written is intact. 
 22 write(*,'(3a,i0)') 'Hello ',trim(name),' from image ', this_image()
 23 end program Hello_world


ifort -coarray hello.f90 -o hello
  File "/opt/intel/composerxe/mpirt/bin/intel64/mpd", line 1545
    except Exception, errmsg:
SyntaxError: invalid syntax
  File "/opt/intel/composerxe/mpirt/bin/intel64/mpdallexit", line 99
    print __doc__
SyntaxError: invalid syntax

ifort -v
ifort version 14.0.2

python --version
Python 3.4.1

How to solve the mpd error?

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Can anyone help me? Is that the python version problem?

Unfortunately, our expert in this area is away for the next two weeks. I will see if I can find someone else who might be able to help.

Retired 12/31/2016

Our MPI folks say that they support Python 2.2 or later, but the folks I spoke to didn't have access to Python 3.4.1. Are you able to try 2.7 or something in between and see what happens?

Retired 12/31/2016

Leave a Comment

Please sign in to add a comment. Not a member? Join today