Git Product home page Git Product logo

chapter2's Introduction

Chapter 2 Planning for parallel

This is from Chapter 2 of Parallel and High Performance Computing, Robey and Zamora, Manning Publications, available at http://manning.com

The book may be obtained at http://www.manning.com/?a_aid=ParallelComputingRobey

Copyright 2019-2021 Robert Robey, Yuliana Zamora, and Manning Publications Emails: [email protected], [email protected]

See License.txt for licensing information.

See README.osx, README.linux and soon README.win for MPI and cmake installation instructions

See README.ndiff for instructions to install ndiff. A copy of the ndiff tar file is also included as a backup to getting it from the ndiff website. -- check that the ndiff executable is in the path with 'which ndiff'

Numdiff is an alternative program that performs the same function. It is at https://www.nongnu.org/numdiff/

Valgrind needs to be installed for the last example.

Listing1

Requires CMake, CTest, and ndiff

Change into the Listing1 directory

Run the test with

  cd Listing1
  mkdir build
  cd build
  cmake ..
  make
  make test
     or
  ctest

To see the output when the test fails:

  ctest --output-on-failure

If the test does not run properly, try invoking it manually with

  sh mympiapp.ctest

You should get some results like the following.

  Running tests...
  Test project /Users/brobey/Programs/RunDiff
      Start 1: mpitest.ctest
  1/1 Test #1: mpitest.ctest ....................   Passed   30.24 sec

  100% tests passed, 0 tests failed out of 1

  Total Test time (real) =  30.24 sec

This test is based on the sleep function and timers, so it may or may not pass. Test results are in Testing/Temporary/*

Listing2

Requires CMake and CTest

Change into the Listing2 directory

Run the test with

  cd Listing2
  mkdir build
  cd build
  cmake ..
  make
  ctest -R commit
     or
  make commit_tests

Listing3

Requires Valgrind and a C99 standard C compiler

Change into the Listing3 directory

Run the valgrind test with

  cd Listing3
  make
  valgrind --leak-check=full ./test 2

chapter2's People

Contributors

brobey avatar scrobey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.