OpenACC Tutorial - Profiling: Difference between revisions

Interpretation of Intensity
(Clearer definition of intensity)
(Interpretation of Intensity)
Line 276: Line 276:
<translate>
<translate>


== Computational Intensity  == <!--T:19-->
=== Interpretation of the Compiler Feedback === <!--T:19-->
Computational Intensity of a loop is a measure of how much work is being done compared to memory operations.
The ''Computational Intensity'' of a loop is a measure of how much work is being done compared to memory operations.
Basically:


<!--T:20-->
<!--T:20-->
'''Computation Intensity = Compute Operations / Memory Operations'''
<math>\mbox{Computational Intensity} = \frac{\mbox{Compute Operations}}{\mbox{Memory Operations}}</math>


<!--T:21-->
<!--T:21-->
Computational Intensity of 1.0 or greater suggests that the loop might run well on a GPU.
In the compiler feedback, an <code>Intensity</code> <math>\ge</math> 1.0 suggests that the loop might run well on a GPU.


== Understanding the code  == <!--T:22-->
== Understanding the code  == <!--T:22-->
cc_staff
782

edits