Skip to content

Commit 9046a43

Browse files
committed
latency / frequency = time
1 parent d12441e commit 9046a43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/english/hpc/complexity/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Complexity is an old concept. It was [systematically formulated](http://www.cs.a
1313

1414
The "elementary operations" of a CPU are called *instructions*, and their "costs" are called *latencies*. Instructions are stored in *memory* and executed one by one by the processor, which has some internal *state* stored in a number of *registers*. One of these registers is the *instruction pointer* that indicates the address of the next instruction to read and execute. Each instruction changes the state of the processor in a certain way (including moving the instruction pointer), possibly modifies the main memory, and takes a different amount of *CPU cycles* to complete before the next one can be started.
1515

16-
To estimate the real running time of a program, you need to sum all latencies for its executed instructions and multiply it by the *clock frequency*, that is, the number of cycles a particular CPU does per second.
16+
To estimate the real running time of a program, you need to sum all latencies for its executed instructions and divide it by the *clock frequency*, that is, the number of cycles a particular CPU does per second.
1717

1818
![](img/cpu.png)
1919

0 commit comments

Comments
 (0)