Open main menu

CDOT Wiki β

Changes

Three-Star

3,454 bytes added, 08:15, 21 February 2018
Calculation of Pi
=== Assignment 1 ===
==== Calculation of Pi Image Profiling ====Chosen to profile calculation of pi image profiling as shown here: httpshttp://computingwww.llnldreamincode.govnet/tutorialsforums/parallel_comptopic/#ExamplesPI 76816-image-processing-tutorial/ , using the sample programs (main/image.h/image.cpp)
Based Had to expand a PGM image (to about 83~MB size) to return any meaningful result (Using a regular sized PGM image of 11KB yielded absolutely no meaningful results to the human eye - all 0's on the example program MPI Program in Cflat profile/call graph) The results of the flat profile: mpi_pi_reduce Flat profile: Each sample counts as 0.01 seconds.c https: % cumulative self self total time seconds seconds calls ms/call ms/computingcall name 55.49 1.01 1.01 3 336.67 336.67 Image::Image(Image const&) 28.57 1.53 0.52 6 86.67 86.67 Image::Image(int, int, int) 9.34 1.70 0.17 1 170.00 290.00 readImage(char*, Image&) 6.59 1.82 0.12 16000000 0.00 0.00 Image::setPixelVal(int, int, int) 0.00 1.82 0.00 30 0.00 0.00 Image::getPixelVal(int, int) 0.00 1.82 0.00 9 0.00 0.00 Image::~Image() 0.00 1.82 0.00 8 0.00 0.00 std::operator|(std::_Ios_Openmode, std::_Ios_Openmode) 0.llnl00 1.gov/tutorials/mpi/samples/C/mpi_pi_reduce82 0.00 6 0.00 0.00 writeImage(char*, Image&) 0.00 1.82 0.00 6 0.00 0.00 Image::getImageInfo(int&,int&, int&) 0.00 1.82 0.00 6 0.00 0.00 Image::operator=(Image con 0.00 1.82 0.00 2 0.00 0.00 std::cos(float) 0.00 1.82 0.00 2 0.00 0.00 std::sin(float) 0.00 1.82 0.00 1 0.00 0.00 _GLOBAL__sub_I__ZN5ImageC2Ev 0.00 1.82 0.00 1 0.00 0.00 readImageHeader(char*, int&, int&, int&, bool&) 0.00 1.82 0.00 1 0.00 0.00 __static_initialization_and_destruction_0(int, int) 0.00 1.82 0.00 1 0.00 86.67 Image::getSubImage(int, int, int, int, Image&) 0.00 1.82 0.00 1 0.00 86.67 Image::negateImage(Image&) 0.00 1.82 0.00 1 0.00 86.67 Image::rotateImage(int, Image&) 0.00 1.82 0.00 1 0.00 86.67 Image::shrinkImage(int, Image&) 0.00 1.82 0.00 1 0.00 86.67 Image::enlargeImage(int, Image&) 0.00 1.82 0.00 1 0.00 336.67 Image::reflectImage(bool,Image&) 0.00 1.82 0.00 1 0.c 00 0.00 Image::inBounds(int, int)
==== LZW Data Compression Algorithm ====
122
edits