pi_mpi

所属分类:数据结构
开发工具:C/C++
文件大小:6KB
下载次数:0
上传日期:2018-12-04 19:30:44
上 传 者xxdfffs
说明:  Calculate Pi using serial and omp

文件列表:
pi (0, 2018-11-02)
pi\Makefile (1698, 2018-11-02)
pi\HW02.grade (131, 2018-11-02)
pi\bin (0, 2018-11-02)
pi\obj (0, 2018-11-02)
pi\src (0, 2018-11-02)
pi\src\picalc.h (111, 2018-11-02)
pi\src\picalc_omp.c (804, 2018-11-02)
pi\src\picalc_main.c (763, 2018-11-02)
pi\src\picalc_serial.c (778, 2018-11-02)
pi\src\picalc_pthreads.c (1996, 2018-11-02)
pi\src\picalc_unittests.cpp (1971, 2018-11-02)

# PA1 - Pi * **Author**: *Matt Masarik, Jacob Bell* * **Class**: *CS430 [Parallel Computing] Section 001* ## Overview The transcendental number pi is calculated using Liebniz's formula. Input is either *number of iterations* or *precision range*. This repository contains source code to build and run unit tests for this method of approximation to pi. The unit tests have been automated using the [Google C++ Testing Framework](https://github.com/google/googletest). ## Manifest ``` homework/hw2/pi ├── bin ├── Makefile ├── obj └── src ├── picalc_main.c ├── picalc_serial.c ├── picalc_pthreads.c ├── picalc_omp.c ├── picalc.h └── picalc_unittests.cpp ``` ## Building Initialize and update `googletest` as a submodule ```bash $ git submodule init $ git submodule update ``` Serial, pthreads, and openmp implementations can be built with make ```bash $ make (serial) $ make pthreads (pthread) $ make omp (openmp) ``` ## Testing To run all unit tests for serial, pthreads, and omp implementations ```bash $ make test ``` To run an indivdual implementation ```bash $ ./bin/picalc_serial $ ./bin/picalc_pthreads $ ./bin/picalc_omp ``` Where params can be either: -i -p

近期下载者

相关文件


收藏者