5 Replies Latest reply: Jun 21, 2011 2:02 PM by 848151 RSS

    Solaris  Performance Analyzer (For MPI) in Ubuntu 11.04

    848151
      Hi,

      I am using Oracle Solaris Studio 12.2 - Performance Analyzer (SolarisStudio12.2-linux-x86-tar-ML) on a C program I wrote using MPI on Ubuntu 11.04.

      I extracted the tar ball in my home folder, and made the required changes in the $PATH.
      Now, when I try using 'collect' on my program, I get the following error (Apologies for posting a long error log) -


      silky@Silky:~/Project/mpich-1.2.7p1/examples/basic$ collect -M OMPT mpirun -np 2 -- a.out
      WARNING: Linux-32-bit, 2 CPUs, Ubuntu_11.04 system "Silky" is not supported by the Performance tools.
      WARNING: Data collection may fail: system is not properly configured or is unsupported.
      Creating experiment database test.4.er ...
      Warning: Command line arguments for program should be given
      after the program name.  Assuming that PATH=/home/silky/Project/mpich1/bin:/home/silky/SolarisStudio12.2-linux-x86-tar-ML/solstudio12.2/bin:/opt/SUNWhpc/HPC8.2.1c/gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/silky/Project/mpich1/bin:. is a
      command line argument for the program.
      Warning: Command line arguments for program should be given
      after the program name.  Assuming that -x is a
      command line argument for the program.
      Warning: Command line arguments for program should be given
      after the program name.  Assuming that OMPI_SUN_INSTRUMENT=1 is a
      command line argument for the program.
      Warning: Command line arguments for program should be given
      after the program name.  Assuming that collect is a
      command line argument for the program.
      Warning: Command line arguments for program should be given
      after the program name.  Assuming that -M is a
      command line argument for the program.
      Warning: Command line arguments for program should be given
      after the program name.  Assuming that OMPT is a
      command line argument for the program.
      Warning: Command line arguments for program should be given
      after the program name.  Assuming that -m is a
      command line argument for the program.
      Warning: Command line arguments for program should be given
      after the program name.  Assuming that on is a
      command line argument for the program.
      Warning: Command line arguments for program should be given
      after the program name.  Assuming that -o is a
      command line argument for the program.
      Unrecognized argument -x ignored.
      eval: 1: /home/silky/Project/mpich-1.2.7p1/examples/basic/test.4.er: Permission denied
      collect: no MPI subexperiments found; no postprocessing done

      Could anyone please help me figure where I am going wrong.

      Thanks and Regards,
      Silky

      P.S - The program runs fine with the simple mpirun -np -2 a.out command
        • 1. Re: Solaris  Performance Analyzer (For MPI) in Ubuntu 11.04
          849133
          Which version of MPI are you using? Which compilers?
          • 2. Re: Solaris  Performance Analyzer (For MPI) in Ubuntu 11.04
            NikMolchanov
            I verified that I can profile an MPI application (built with GNU compiler) on my Ubuntu laptop
            using collect from Oracle Solaris Studio 12.2 and Cluster Tools 8.2.1c MPI (gnu) version:
            >
            ~/SolStudioProjects/MPI_PrimeNumbers$ which mpirun
            /opt/SUNWhpc/HPC8.2.1c/gnu/bin/mpirun

            ~/SolStudioProjects/MPI_PrimeNumbers$ mpirun --version
            mpirun (Open MPI) 1.4.2r22761-ct8.2.1c-b11a-r31

            ~/SolStudioProjects/MPI_PrimeNumbers$ collect -V
            collect: Sun Analyzer 7.8 Linux_i386 2010/08/13

            ~/SolStudioProjects/MPI_PrimeNumbers$ time collect -M CT mpirun -n 2 -- pn-g
            WARNING: Linux-64-bit, 2 CPUs, Ubuntu_10.10 system "nikm-VGN-FW280J" is not supported by the Performance tools.
            WARNING: Data collection may fail: system is not properly configured or is unsupported.
            Creating experiment database test.2.er ...
            WARNING: Linux-64-bit, 2 CPUs, Ubuntu_10.10 system "nikm-VGN-FW280J" is not supported by the Performance tools.
            WARNING: Linux-64-bit, 2 CPUs, Ubuntu_10.10 system "nikm-VGN-FW280J" is not supported by the Performance tools.
            WARNING: Data collection may fail: system is not properly configured or is unsupported.
            WARNING: Data collection may fail: system is not properly configured or is unsupported.
            ...
            real     1m34.184s
            user     2m4.980s
            sys     0m0.430s

            ~/SolStudioProjects/MPI_PrimeNumbers$ er_print -func test.2.er
            /opt/SS12.2/bin/amd64/er_print: Processed /home/nikm/.er.rc for default settings
            test.2.er: Experiment has warnings, see header for details
            Functions sorted by metric: Exclusive User CPU Time

            Excl. Incl. Name Incl. Incl. Incl.
            User CPU User CPU MPI MPI MPI Wait
            sec. sec. Sends Receives sec.
            102.291 102.291 <Total> 11 11 0.048
            91.657 91.657 find_prime_numbers 0 0 0.
            10.492 10.492 MPI_Send 11 0 0.
            0.118 0.118 MPI_Init 0 0 0.048
            0.012 102.291 main 11 11 0.048
            0.012 0.012 MPI_Finalize 0 0 0.
            0. 102.291 __libc_start_main 11 11 0.048
            0. 0. MPI_Comm_rank 0 0 0.
            0. 0. MPI_Comm_size 0 0 0.
            0. 0. MPI_receive_results 0 11 0.
            0. 0. MPI_Recv 0 11 0.
            0. 10.492 MPI_send_results 11 0 0.
            >

            So I think the root of the problem in your case is in the argument
            that you pass with -M option to collect. Could you please set PATH
            so that /opt/SUNWhpc/HPC8.2.1c/gnu/bin/mpirun will be used,
            and run this command:

            collect -M CT mpirun -n 2 -- a.out

            Thanks.
            Nik

            Edited by: NikMolchanov on Jun 21, 2011 6:38 AM
            • 3. Re: Solaris  Performance Analyzer (For MPI) in Ubuntu 11.04
              870299
              The version of MPI being used is important here, you need to give the -M option the MPI implementation you are running with. Seeing that your path shows mpich.1.2 in it I am assuming you are using MPICH for your implementation but you give OMPT to the -M option. If you run collect without any arguments it shows you the options you have for the -M option.

              If you are truly using MPICH for MPI I would suggest replacing the OMPT with MPICH2 for the argument to -M.
              • 4. Re: Solaris  Performance Analyzer (For MPI) in Ubuntu 11.04
                810353
                MPICH is -not- supported by the Oracle Solaris Studio tools. MPICH2 is supported, or you can download Oracle Message Passing Toolkit, or OpenMPI
                and use one of them.
                • 5. Re: Solaris  Performance Analyzer (For MPI) in Ubuntu 11.04
                  848151
                  @All
                  Thanks for the tips.
                  I'll try out the suggested solutions and will get back as soon as I done.