hw1-hw4 目录下分别包含四次实验的已完成代码、测试/画图脚本、实验文档,初始代码可以通过 git 回滚得到。reports 目录下包含四次实验的报告。项目结构如下:
├── hw1 # 测量服务器的内存带宽 + 基于 MPI 的前缀和算法实现
│ ├── bandwidth_omp.c
│ ├── bandwidth_omp.sh
│ ├── batch_bandwidth_omp.sh
│ ├── batch_prefix_sum_mpi.sh
│ ├── hw1.pdf
│ ├── plot_bandwidth.py
│ ├── plot_prefix_sum.py
│ ├── prefix_sum_mpi
│ ├── prefix_sum_mpi.sh
│ ├── stream.c
│ └── 服务器集群使用指南.pdf
├── hw2 # 基于 MPI 的桶排序算法实现
│ ├── batch_bucketsort_scaling.sh
│ ├── hw2.pdf
│ ├── mpi_bucketsort
│ ├── mpi_bucketsort.sh
│ └── plot_scaling.py
├── hw3 # Mandelbrot 集并行绘制实现
│ ├── batch_mandelbrot.sh
│ ├── hw3.pdf
│ ├── mandelbrot
│ └── mandelbrot.sh
├── hw4 # N-body 问题并行优化实现
│ ├── 1024-1.mp4
│ ├── 1024-2.mp4
│ ├── 8192.mp4
│ ├── batch_nbody.sh
│ ├── hw4.pdf
│ ├── nbody
│ ├── nbody_mpi.sh
│ ├── nbody_omp.sh
│ ├── plot_conservation.py
│ ├── plot_nbody.py
│ └── solar_system_small.mp4
├── README.md
└── reports # hw1-hw4 实验报告
├── hw1-report.pdf
├── hw2-report.pdf
├── hw3-report.pdf
└── hw4-report.pdf本项目仅供个人学习使用,请遵守清华大学作业诚信准则,如有抄袭,一切后果自负。