Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

coarray mpd error

cepheid
Beginner
812 Views

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". 7 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 12 13 ! Distribute information to other images 14 do i = 2, num_images() 15 name = name 16 end do 17 end if 18 19 sync all ! Barrier to make sure the data have arrived. 20 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
    ./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?

    0 Kudos
    3 Replies
    cepheid
    Beginner
    812 Views

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

    0 Kudos
    Steven_L_Intel1
    Employee
    812 Views

    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.

    0 Kudos
    Steven_L_Intel1
    Employee
    812 Views

    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?

    0 Kudos
    Reply