Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

good night every one....I have some problems on my MPI C++ code ( begin{aligned} 6 & text { ##include } 7 & text {

good night every one....I have some problems on my MPI C++ code

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

\( \begin{aligned} 6 & \text { \#\#include } \\ 7 & \text { \#define __TMACE_H_- } \\ 8 & \\ 9 & \text { using nanespace std; } \\ 16 & \\ 11 & \text { const int width }=800 ; \\ 12 & \text { const int height }=600 ; \\ 13 & \text { const int maxIter }=256 ; \\ 14 & \text { const int numProcesses }=4 ; \\ 15 & \text { const int rowsPerProcess }=\text { height } / \text { numProcesses; } \\ 16 & \end{aligned} \) [// Calculates the color of a pixel based on its coordinates and the number /lof iterations it took to escape the set int getcolor(int x, int y, int iter) \{ return (int) ((iter / (float) maxIter) * 255); 100% No issues found Output Show output from: Debug 'HPC Project. exe' (Win32): Loaded ' C : \Windows \System32\authz, d11'. 'HPC Project. exe' (Win32): Loaded 'C: WWindows ISystem32\cryptbase.d11'. 'HPC Project. exe' (Win32): Loaded 'C: \Windows ISystem32\dsparse.d11'. 'HPC Project. exe' (Win32): Loaded 'C: 'Windows \System32\imm32. d11'. 'HPC Project, exe' (Win32): Loaded 'C: WWindows \System32\bcryptprimitives. d11'. 'HPC Project.exe' (Win32): Loaded 'C: \Windows \System32 \NapinSP. d11. . Error List Output Ready 9C dielie rbaur // Calculates the color of a pixel based on its coordinates and the number //of iterations it took to escape the set int getcolor(int x, int y, int iter) \{ return (int)((iter / (float)maxIter) * 255); No issues found In: 83 Ch: 2 TABS Output Show output from: Debug 'HPC Project, exe' (Win32): Loaded 'C:\Windows \System32\combase, d11'. 'HPC Project. exe' (Win32): Loaded 'C: \Windows1System32\vcruntime140d, d11'. 'HPC Project.exe' (Win32): Loaded 'C: \Windows/System32/vcruntime140_1d. d11'. 'HPC Project, exe' (Win32): Loaded 'C: WWindows \System32\ucrtbased. d11'. 'HPC Project.exe' (Win32): Loaded 'C: WWindow5\System32\mswsock.d11'. 'HPC Project.exe' (Win32): Loaded 'C: WWindows \System32lntdsapi,d11'. 'HPC Project.exe' (Win32): Loaded 'C: Windows/System32lauthz. d11'. using namespace std; const int width =800; const int height =600; const int maxIter =256; const int numProcesses =4; const int rowsPerProcess = height / numProcesses; G// Calculates the color of a pixel based on its coordinates and the number //of iterations it took to escape the set int getcolor(int x, int y, int iter) \{ return (int) ((iter / (float)maxIter) * 255); No issues found Output Show output from: Debug 'HPC Project. exe' (Win32): Loaded 'C: \Windows\System32 td11.d11'. 'HPC Project. exe' (Win32): Loaded 'C: \Windows\System32\kerne132.d11'. 'HPC Project.exe' (Win32): Loaded ' C : \Windows \System32\msmpi.d11'. 'HPC Project. exe' (Win32): Loaded 'C: WWindows Isystem32ladvapi32, d11'. 'HPC Project. exe' (Win32): Loaded 'C: WWindows ISystem32\msvcrt. d11'. Error List. Output Ready 9C arotue clow \#include \#include Hdefine __TMAGE_H_ using namespace std; const int width =800; const int height =600; const int maxiter =256; const int numProcesses =4 const int rowsPerProcess = height / numprocesses; El/ Calculates the color of a pixel based on its coordinates and the number /lof iterations it took to escape the set int getcolor(int x, int y, int iter) \{ return (int) ((iter / (float)maxIter) * 255); No issues found Output Ready 94C andibo dam // Calculates the color of a pixel based on its coordinates and the number //of iterations it took to escape the set int getcolor(int x, int y, int iter) \& return ( int )(( ter / (f loat)maxiter) * 255); Output Show output from: Debug 'HPC Project,exe' (Win32): Loaded 'C: \Windows \System32 asadh1p.d11', 'HPC Project. exe' (Win32): Loaded 'C: \Windows \System321kernel, appcore, d11'. The thread 0365 has exited with code (). The thread exseb8 has exited with code ( ). The prosram '[2354e] HPC Project.exe' has exited with code (). To automatically close the console when debugging stops, enable Tools->0ptions->Debugging->Autonatically close the conso le when debugging stops. Press any key to close this window

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Transaction Processing

Authors: Philip M. Lewis, Arthur Bernstein, Michael Kifer

1st Edition

0201708728, 978-0201708721

More Books

Students also viewed these Databases questions

Question

What teacher supports and services are needed? (D2, D7, D8)

Answered: 1 week ago

Question

5. Describe the visual representations, or models, of communication

Answered: 1 week ago