Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Build Supercomputers with Raspberry Pi 3
  • Table Of Contents Toc
  • Feedback & Rating feedback
Build Supercomputers with Raspberry Pi 3

Build Supercomputers with Raspberry Pi 3

By : Carlos R. Morrison
4.3 (7)
close
close
Build Supercomputers with Raspberry Pi 3

Build Supercomputers with Raspberry Pi 3

4.3 (7)
By: Carlos R. Morrison

Overview of this book

Author Carlos R. Morrison (Staff Scientist, NASA) will empower the uninitiated reader to quickly assemble and operate a Pi3 supercomputer in the shortest possible time. The lifeblood of a supercomputer, the MPI code, is introduced early, and sample MPI code provides additional practice opportunities for you to test the effectiveness of your creation. You will learn how to configure various nodes and switches so that they can effectively communicate with each other. By the end of this book, you will have successfully built a supercomputer and the various applications related to it.
Table of Contents (13 chapters)
close
close
6
6. Creating a Mountable Drive on the Master Node
12
A. Appendix

Using unrestrained MPI code logic

From here on, you can unleash the full power of your machine by simply commenting out the restraining outer for loop statement, as shown following in the code fragment. Most MPI codes you will write will not necessarily have the for loop coding format, but most of the exercises in this book will use this type of coding structure.

The code fragment will allow unrestrained processing:

// for(total_iter = 1; total_iter < n; total_iter++) ç comment this line 
{ 
  sum = 0.0; 
//     width = 1.0 / (double)total_iter; // width of a segment ç comment this 
                                                    line 
  width = 1.0 / (double)n; // width of a segment ç use this line 
//     for(i = rank + 1; i <= total_iter; i += numprocs) ç comment this line 
  for(i = rank + 1; i <= n; i += numprocs) ç use this line instead 
  { 
      x = width * ((double)i - 0.5); // x: distance to center of i(th) segment 
      sum += 4...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY