Using one processor from each of multiple nodes on ccp 2003

Answered Using one processor from each of multiple nodes on ccp 2003

  • 2009年10月29日 2:27
     
     
    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

全部回复

  • 2009年12月4日 9:59
     
      包含代码
    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
    • 已编辑 Johannes_de 2009年12月4日 10:00 4 to 8
    •  
  • 2009年12月8日 3:38
     
     已答复

    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

  • 2009年12月9日 8:45
     
     
    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.