<< Chapter < Page Chapter >> Page >

Take a static, highly parallel program with a relative large inner loop. Compile the application for parallel execution. Execute the application increasing the threads. Examine the behavior when the number of threads exceed the available processors. See if different iteration scheduling approaches make a difference.

Got questions? Get instant answers now!

Take the following loop and execute with several different iteration scheduling choices. For chunk-based scheduling, use a large chunk size, perhaps 100,000. See if any approach performs better than static scheduling:


DO I=1,4000000 A(I) = B(I) * 2.34ENDDO
Got questions? Get instant answers now!

Execute the following loop for a range of values for N from 1 to 16 million:


DO I=1,N A(I) = B(I) * 2.34ENDDO

Run the loop in a single processor. Then force the loop to run in parallel. At what point do you get better performance on multiple processors? Do the number of threads affect your observations?

Got questions? Get instant answers now!

Use an explicit parallelization directive to execute the following loop in parallel with a chunk size of 1:


J = 0 C$OMP PARALLEL DO PRIVATE(I) SHARED(J) SCHEDULE(DYNAMIC)DO I=1,1000000 J = J + 1ENDDO PRINT *, JC$OMP END PARALLEL DO

Execute the loop with a varying number of threads, including one. Also compile and execute the code in serial. Compare the output and execution times. What do the results tell you about cache coherency? About the cost of moving data from one cache to another, and about critical section costs?

Got questions? Get instant answers now!

Questions & Answers

is economics important in programming world?
Abdul Reply
What is oppunity cost
Kudzanayi Reply
it refers wants that are left unsatisfied in Oder satisfy another more pressing need
Osei
Thank bro
Kudzanayi
is the second altenative to foregone
swedy
How does monopoly and imperfect competion;public goods externalities ass symmetric information, ommon property ressourses; income distribution Merit goods and Macroeconomic growth and stability causes market failure?
Gcina
it is where by a labour moves from one place to another
Amoako Reply
yh
Osei
another
Amoako
yh
Osei
ok
Amoako
what is mobility of labour
George Reply
who best defined economics
paul Reply
what are the importance of economics
Adwoa Reply
answer
Asamoah
trade should be best
Aakash
help to know how our government operates in which system
swedy
1. To solve economic problems. 2. To predict economic event. 3. It also offer intellectual training to students.
samuel
How price elasticity can affect the markets of certain goods
Rhoda Reply
Heyy thanks for the teaching
Easter Reply
what is labour
Arthur Reply
Mental and physical ability of human being is considered as labour.
JEYARAM
and usually provided by human
KEMAWOR
is all human effort both physical and mental abilities to work
Asamoah
why is it that most countries in Africa abuse available resources
Okeoghene Reply
What is economics
Bright Reply
economics is a science which studies human behaviour as a relationship between ends, scarce means which have alternative uses.
prince
Why is scarcity a mind problem in economics
Alima Reply
because of the problem of allocation of resources
Osola
unequalled distribution of resources
Agyen
thanks
Alima
scarcity is a mind problem due to circumstances like when a particular product is demand in a high rate at the market.
Saihou
scarcity defines limited in supply relative to the demand them. so scarcity is a mind problem in economics because wants are unlimited while resources are also limited.
prince
it is a mind problem because it's one of the fundamental issue address by economics human wants are unlimited and resources available are limited this makes the study of economics essential
rashid
its a fundamental issue
zahid
it's not a mind problem, I think it's a economic problem, how to allocate scarce resources to satisfy need and want of society
Samiullah
Identify the different sectors in the economy
Moses Reply
what is economics
Moses
economic is study of human behaviour according to how they satisfie their numerous want
Osola
Economics is a science which studies human behaviour as a relationship between ends and scares resources.
JEYARAM
economic is study of human behaviour according to how they satisfie their numerous want
Amar
what is the law of demand
Adugbire Reply
the lower the price the higher the quantity demanded vice versa is true
Nadhin
yes
vivek
yes ooh
Asamoah
right
samuel
what are relationship between unemployment and economic growth
Weness Reply
no relationship
Awuah
When there is economic growth, there is increased opportunity in employment. When there is no economic growth mean there is recession causing a decline or downsizing in employment opportunities.
Teescou
unemployment or employment determined by the level of economic growth
Osola
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get the best Algebra and trigonometry course in your pocket!





Source:  OpenStax, High performance computing. OpenStax CNX. Aug 25, 2010 Download for free at http://cnx.org/content/col11136/1.5
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'High performance computing' conversation and receive update notifications?

Ask