我要评分
获取效率
正确性
完整性
易理解

Running and Verification

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to configure the environment variables of the Meep executable file:
    export PATH=/path/to/MEEP/bin:$PATH
  3. Run the following command to copy the test case file to the planned directory:
    cp /path/to/SRC/meep-1.17.1/scheme/examples/mie-scattering.ctl /path/to/CASE
  4. Run the following command to go to the test case directory:
    cd /path/to/CASE
  5. Run the following command to execute Meep:
    mpirun --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 -np 128 meep mie-scattering.ctl |tee mie.out
  6. Run the following commands to extract the input data to a separate file:
    grep flux1: mie.out |cut -d, -f2 -> input.dat
    grep flux2: mie.out |cut -d, -f2 -> scatt.dat

    After the commands are executed, check the value of Elapsed run time in the last line of the mie.out file. A smaller value indicates a higher performance.