Running and Verification
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the test directory.
cd /path/to/WANNIER90/wannier90-3.1.0/examples/example03
- Perform the test.
- Single node
time -p mpirun -np 8 --allow-run-as-root -mca pml ucx -mca btl ^vader,tcp,openib,uct -x UCX_TLS=self,sm --bind-to core --map-by socket --rank-by core -x UCX_BUILTIN_ALLREDUCE_ALGORITHM=8 ../../wannier90.x silicon
- Multiple nodes
time -p mpirun -np 16 -N 8 -x PATH=$PATH -x LD_LIBRARY_PATH=$LD_LIBRARY_PATH --allow-run-as-root --hostfile hostfile -mca pml ucx -mca btl ^vader,tcp,openib,uct -x UCX_TLS=self,sm --bind-to core --map-by socket --rank-by core -x UCX_BUILTIN_ALLREDUCE_ALGORITHM=8 ../../wannier90.x silicon
- In the preceding command, -np indicates the total number of processes and -N indicates the number of processes running on each node. The previous command uses dual nodes as an example. Modify the command based on the actual node configuration.
- For the multi-node configuration, --hostfile is the list of node names. Create a host file in the example03 directory and write the host names of the nodes into the file.
- -x UCX_TLS=self,sm is subject to the network in the environment.
- Ensure that each node has the same software paths and environment variables. The required software includes all the preceding software that needs to be installed.
- Ensure that each node has the same test case directory.
- Ensure that between the nodes, password-free login is enabled and the firewall is disabled.
After the command is successfully executed, a silicon.wout file is generated. The following figure shows an example of the command output.


- Single node
- Modify the silicon.win file.
- Run the test command of 3 again. After the command is successfully executed, the silicon_band.gnu and silicon_band.dat files are generated in the current directory. The operation of displaying graphs in this step is only a supplement to the program running, and does not affect the execution or performance of the program.
time -p mpirun -np 8 --allow-run-as-root -mca pml ucx -mca btl ^vader,tcp,openib,uct -x UCX_TLS=self,sm --bind-to core --map-by socket --rank-by core -x UCX_BUILTIN_ALLREDUCE_ALGORITHM=8 ../../wannier90.x silicon

- -np indicates the total number of processes that are used. Set it based on the actual node configuration.
- -x UCX_TLS=self,sm is subject to the network in the environment.
- Start the Gnuplot graphing utility to draw a graph.
gnuplot
The following information is displayed:

load '/path/to/WANNIER90/wannier90-3.1.0/examples/example03/silicon_band.gnu'
The following graph is displayed:

Parent topic: Wannier90 3.1.0 Porting Guide (openEuler 21.03)