none
Using one processor from each of multiple nodes on ccp 2003 RRS feed

  • Question

  • Dear all, I am using the windows ccp 2003. I want to run my program on 2 nodes. Inside each node, I want to use OpenMP since all the processors on one node have access to the shared memory.
    Can I use only one processor from each of the two nodes? Then the two processors will be the master thread in their own node and pass message between each other. But in ccp2003, I can't find the right way to specify two processors from 2 nodes with each node having 8 processors.

    Thanks and regards
    skiff
    Thursday, October 29, 2009 2:27 AM

Answers

  • Hi Skiff,

    The following is one way to do that in CCP 2003:

    Assume your nodes are node1, node2:

    job submit /askednodes:node1,node2 mpiexec -hosts 2 node1 1 node2 1 <cmdline>

    If you are using HPC 2008, it will be easier:
       job submit /numnodes:2 mpiexec -c 1 <cmdline>

    Thanks,

    liwei

    Tuesday, December 8, 2009 3:38 AM

All replies

  • Hi,

    mpiexec.exe -hosts %CCP_NODES: 8= 1%
    should do the trick.
    8 should be set to the number of processors per node of your cluster!

    If you are interested how and why I've an explanation here:
    http://www.blogs.uni-erlangen.de/JohannesHabich/stories/2365/


    In 2008 this is much more easier done by
    mpiexec -cores 1

    C:\>mpiexec -help
    Launches an application on multiple hosts.

    Usage:

        mpiexec [options] executable [args] [ : [options] exe [args] : ... ]
        mpiexec -configfile <file name>

    Common options:

    -n     <num_processes>
    -env   <env_var_name> <env_var_value>
    -wdir  <working_directory>
    -hosts n host1 [m1] host2 [m2] ... hostn [mn]
    -cores <num_cores_per_host>
    -lines
    -trace [filter]
    -debug [0-3]

    Examples:

        mpiexec -n 4 pi.exe
        mpiexec -hosts 1 server1 master : -n 8 worker

    For a complete list of options, run mpiexec -help2
    For a list of environment variables, run mpiexec -help3

    JH
    • Edited by Johannes_de Friday, December 4, 2009 10:00 AM 4 to 8
    Friday, December 4, 2009 9:59 AM
  • Hi Skiff,

    The following is one way to do that in CCP 2003:

    Assume your nodes are node1, node2:

    job submit /askednodes:node1,node2 mpiexec -hosts 2 node1 1 node2 1 <cmdline>

    If you are using HPC 2008, it will be easier:
       job submit /numnodes:2 mpiexec -c 1 <cmdline>

    Thanks,

    liwei

    Tuesday, December 8, 2009 3:38 AM
  • Thank you Liwei.
      I have solved the probleme by using "mpiexec -hosts2 cn01 cn02 myapp.exe“ in the command line of the graphical interface of ccp2003.
      Obviously HPC2008 is more powerful, maybe I need to persuade my boss to update. But now I have to stick with 2003. 
     
    Wednesday, December 9, 2009 8:45 AM