vault backup: 2023-10-25 12:21:34

This commit is contained in:
Alice 2023-10-25 12:21:34 +01:00
parent 6ba6885429
commit e212392f9d
4 changed files with 39 additions and 25 deletions

View file

@ -1,4 +1,7 @@
25 Outubro 2023
---
dg-publish: true
---
25 Outubro 2023 - #CP
---
# Ficha 6
@ -547,12 +550,15 @@ Versão original:
Dot is 1.2020569031095949
```
### a)
### a+b)
Run \#1 (--cpus-per-task=2):
```
Dot is 1.2020569029595982
```
With the same cpus per task (cores), the result may vary depending on how
Run \#2 (--cpus-per-task=4):
```
Dot is 0.0000000005999720
@ -563,5 +569,6 @@ 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.
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.
### c)