vault backup: 2023-10-25 12:11:34
This commit is contained in:
parent
760b0ca53a
commit
6ba6885429
1 changed files with 19 additions and 0 deletions
|
@ -546,3 +546,22 @@ Versão original:
|
|||
```
|
||||
Dot is 1.2020569031095949
|
||||
```
|
||||
|
||||
### a)
|
||||
Run \#1 (--cpus-per-task=2):
|
||||
```
|
||||
Dot is 1.2020569029595982
|
||||
```
|
||||
|
||||
Run \#2 (--cpus-per-task=4):
|
||||
```
|
||||
Dot is 0.0000000005999720
|
||||
```
|
||||
|
||||
Run \#3 (--cpus-per-task=6):
|
||||
```
|
||||
Dot is 0.0000000013500135
|
||||
```
|
||||
|
||||
Varies with the number of cpus per task (cores) because depending on the number of threads, the distribution of the instruction ```dot += a[i]*b[i];'``` per thread will vary, aka the value i will constantly vary, making the memory space alternate between versions.
|
||||
|
||||
|
|
Loading…
Reference in a new issue