pi_mpi

所属分类:其他
开发工具:C/C++
文件大小:9KB
下载次数:0
上传日期:2018-12-04 19:04:56
上 传 者xxdfffs
说明:  calculating pi using monte carlo randomization

文件列表:
pi_mpi (0, 2018-11-14)
pi_mpi\pi_cluster.slurm (232, 2018-11-03)
pi_mpi\monte_mpi.slurm (695, 2018-11-28)
pi_mpi\Makefile (549, 2018-11-28)
pi_mpi\include (0, 2018-11-02)
pi_mpi\bin (0, 2018-11-16)
pi_mpi\bin\pi_mpi (12944, 2018-11-28)
pi_mpi\obj (0, 2018-11-16)
pi_mpi\obj\pi_mpi.o (3528, 2018-11-28)
pi_mpi\src (0, 2018-11-28)
pi_mpi\src\pi_mpi.c (3201, 2018-11-28)

# PA2 - Pi-MPI * **Author**: *Andy Lau* * **Class**: *CS430 [Parallel Computing] Section 001* * **Class**: *Team 5* ## Overview Monte Carlo Pi is computed using Message passing interface(MPI). ## Manifest ``` project/pa2/pi_mpi/ ├── Makefile ├── README.md ├── src └──── pi_mpi.c ``` ## Building Download the repository ```bash $ git clone https://github.com/BoiseState/CS430-FA18-05 ``` Change directories to `project/pa2/` ```bash $ cd CS430-FA18-05/homework/pa2 ``` Change directories to project directory `pi_mpi/` ```bash $ cd pi_mpi ``` Finally, build the project with `make` ```bash $ make clean $ make ``` To compile in R2 cluster ```bash $ module load openmpi/gcc $ make clean $ make ``` ## Running To run the program: ```bash mpiexec -n $NCORES ./bin/pi_mpi $NITER ``` where $NCORES is the number of processor and $NITER is the number of random sampling. ## Sources https://www.olcf.ornl.gov/tutorials/monte-carlo-pi/

近期下载者

相关文件


收藏者