Compare commits
17 commits
df96fdf4e5
...
96d4075be9
Author | SHA1 | Date | |
---|---|---|---|
96d4075be9 | |||
fc96b3d6bc | |||
ce64639d15 | |||
47bd74f5ee | |||
6f6741a669 | |||
e829078584 | |||
4c83d1abe2 | |||
81fd377371 | |||
e041f2a297 | |||
56b6dd8a55 | |||
6cf9513a79 | |||
87a29098b0 | |||
583007d7a4 | |||
9a3a88f4f2 | |||
805e2cbb0a | |||
b666f72208 | |||
eda754d3d9 |
11 changed files with 212 additions and 34 deletions
3
.obsidian/appearance.json
vendored
3
.obsidian/appearance.json
vendored
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"accentColor": ""
|
||||
}
|
59
.obsidian/workspace.json
vendored
59
.obsidian/workspace.json
vendored
|
@ -4,16 +4,16 @@
|
|||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "acc5682fcfccc7e6",
|
||||
"id": "f2e5c2c113449b23",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "98e0287d38212615",
|
||||
"id": "0d5f0081d4a8007c",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "4a1s/ESR/TP1 - To Do.md",
|
||||
"file": "4a1s/CP/PL - Aula 4.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
|
@ -69,7 +69,7 @@
|
|||
}
|
||||
],
|
||||
"direction": "horizontal",
|
||||
"width": 300
|
||||
"width": 328.5
|
||||
},
|
||||
"right": {
|
||||
"id": "d8cc89662b1baf06",
|
||||
|
@ -85,7 +85,7 @@
|
|||
"state": {
|
||||
"type": "backlink",
|
||||
"state": {
|
||||
"file": "4a1s/ESR/TP1 - To Do.md",
|
||||
"file": "4a1s/CP/PL - Aula 4.md",
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical",
|
||||
|
@ -102,7 +102,7 @@
|
|||
"state": {
|
||||
"type": "outgoing-link",
|
||||
"state": {
|
||||
"file": "4a1s/ESR/TP1 - To Do.md",
|
||||
"file": "4a1s/CP/PL - Aula 4.md",
|
||||
"linksCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
}
|
||||
|
@ -125,7 +125,7 @@
|
|||
"state": {
|
||||
"type": "outline",
|
||||
"state": {
|
||||
"file": "4a1s/ESR/TP1 - To Do.md"
|
||||
"file": "4a1s/CP/PL - Aula 4.md"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -158,44 +158,47 @@
|
|||
"digitalgarden:Digital Garden Publication Center": false
|
||||
}
|
||||
},
|
||||
"active": "98e0287d38212615",
|
||||
"active": "0d5f0081d4a8007c",
|
||||
"lastOpenFiles": [
|
||||
"4a1s/DAA/PL - Aula 2.md",
|
||||
"4a1s/Excalidraw/ASCN/master.excalidraw.md",
|
||||
"4a1s/CP/PL - Aula 4.md",
|
||||
"Excalidraw/Drawing 2023-10-04 12.19.18.excalidraw.md",
|
||||
"Images/Pasted image 20231004115725.png",
|
||||
"Images/Pasted image 20231004115135.png",
|
||||
"Images/Pasted image 20231004115209.png",
|
||||
"Images",
|
||||
"4a1s/CP/PL - Aula 3.md",
|
||||
"4a1s/CP/PL - Aula 2.md",
|
||||
"4a1s/RAS/Projeto.md",
|
||||
"4a1s/RAS/T - Aula 3.md",
|
||||
"4a1s/index.md",
|
||||
"4a1s/RAS/PL - Aula 3.md",
|
||||
"4a1s/RAS/PL - Aula 1.md",
|
||||
"4a1s/RAS/PL - Aula 2.md",
|
||||
"4a1s/RAS/T - Aula 2.md",
|
||||
"4a1s/MFES/PL - Aula 3.md",
|
||||
"Excalidraw/Drawing 2023-10-04 09.18.24.excalidraw.md",
|
||||
"Excalidraw/Drawing 2023-10-04 09.18.23.excalidraw.md",
|
||||
"4a1s/MFES/PL - Aula 2.md",
|
||||
"4a1s/MFES/T - Aula 2.md",
|
||||
"4a1s/MFES/PL - Aula 1.md",
|
||||
"4a1s/ESR/TP1 - To Do.md",
|
||||
"4a1s/DAA/PL - Aula 2.md",
|
||||
"4a1s/ESR",
|
||||
"My Digital Garden.md",
|
||||
"Private-Project",
|
||||
"4a1s/RAS/T - Aula 3.md",
|
||||
"Excalidraw/Drawing 2023-09-27 17.15.52.excalidraw.md",
|
||||
"4a1s/RAS/PL - Aula 2.md",
|
||||
"4a1s/RAS/T - Aula 1.md",
|
||||
"4a1s/Excalidraw/RAS/process.excalidraw.md",
|
||||
"4a1s/Excalidraw/RAS",
|
||||
"4a1s/Excalidraw/Untitled.md",
|
||||
"Excalidraw/doodles.excalidraw.md",
|
||||
"Excalidraw/Drawing 2023-09-27 09.57.48.excalidraw.md",
|
||||
"4a1s/CP/PL - Aula 3.md",
|
||||
"4a1s/CP/T - Aula 2 - 19 Setembro.md",
|
||||
"4a1s/MFES/T - Aula 2.md",
|
||||
"4a1s/MFES/PL - Aula 1.md",
|
||||
"4a1s/CP/PL - Aula 2.md",
|
||||
"4a1s/RAS/PL - Aula 1.md",
|
||||
"4a1s/RAS/T - Aula 2.md",
|
||||
"4a1s/RAS/Notas Projeto RAS.md",
|
||||
"Excalidraw",
|
||||
"4a1s/DAA/PL - Aula 1.md",
|
||||
"4a1s/MFES/MFES - UC Details.md",
|
||||
"4a1s/MFES/PL - Aula 2.md",
|
||||
"4a1s/index.md",
|
||||
"4a1s/Excalidraw/MFES/Ficha1_ex2.excalidraw.md",
|
||||
"4a1s/Excalidraw/ASCN/SOA.excalidraw.md",
|
||||
"4a1s/Excalidraw/ASCN/server-group.excalidraw.md",
|
||||
"-.32118",
|
||||
"4a1s/ASCN/T",
|
||||
"4a1s/ASCN/T.32118",
|
||||
"4a1s/ASCN/Images.md.32118",
|
||||
"script.sh",
|
||||
"header",
|
||||
"quartz/static/og-image.png",
|
||||
"quartz/static/icon.png",
|
||||
"docs/images/quartz transform pipeline.png",
|
||||
|
|
99
4a1s/CP/PL - Aula 4.md
Normal file
99
4a1s/CP/PL - Aula 4.md
Normal file
|
@ -0,0 +1,99 @@
|
|||
---
|
||||
dg-publish: true
|
||||
---
|
||||
4 de Outubro 2023 - #CP
|
||||
|
||||
## Ex. 2
|
||||
#### a) Limitações vetoriais
|
||||
A -> consecutive elements in a row -> consecutive access in the vector
|
||||
C -> same element
|
||||
B -> consecutive elements in a collumn
|
||||
|
||||
Não vai ser vetorizável.
|
||||
|
||||
|
||||
#### b) Enable vectorization
|
||||
result of change cycles to i, k , j :
|
||||
A -> same element
|
||||
C -> consecutive elements in a row -> consecutive access in the vector
|
||||
B -> consecutive elements in a row -> consecutive access in the vector
|
||||
|
||||
i k j
|
||||
0 0 1
|
||||
|
||||
Vai ser vetorizável.
|
||||
|
||||
128b
|
||||
8B -> 64b
|
||||
2 elements
|
||||
|
||||
Without vectorization:
|
||||
![[Pasted image 20231004115725.png]]
|
||||
|
||||
With vectorization:
|
||||
![[Pasted image 20231004115135.png]]
|
||||
Estimated: ( n^3 / 2 )* 8
|
||||
#### c)Measure and analyze results
|
||||
|
||||
| N | Version | Time | CPI | \#I |
|
||||
| --- | -------- | ---- | --- | --- |
|
||||
| 512 | base_v()| 0.492484818 | 0.91 | 1113554887 |
|
||||
| 512 | vect() | 0.081604350 | 2.88 | 578275097 |
|
||||
|
||||
>[!note]- Commands run
|
||||
>module load gcc/9.3.0
|
||||
>gcc -O2 -ftree-vectorize -msse4 mmult.c
|
||||
>srun --partition=cpar perf stat -e cycles,instructions ./a.out
|
||||
|
||||
|
||||
#### d) Vectorization fine-tuning
|
||||
Ganhos de 4 vezes mais.
|
||||
|
||||
|
||||
|
||||
----
|
||||
## Ex. 3
|
||||
#### a) Peak Performance
|
||||
2 operações em FP
|
||||
4 elementos de cada vez em cada ciclo
|
||||
2.5 GHz -> 2.5 billion cycles per second
|
||||
|
||||
conclusion: 20 GFlop/s
|
||||
|
||||
>[!note]- Redoing the math
|
||||
>AVX -> 256b -> 4 doubles
|
||||
>machine is superscalar with 2 FOP units
|
||||
>4x2= 8 double-perations
|
||||
>
|
||||
>freq = 2.5 GHz
|
||||
>8x2.5= 20 GFlop/s
|
||||
> ^ cpu limitiation
|
||||
|
||||
#### b)
|
||||
peak with vectorization: continuous 20 GFlop/s
|
||||
peak without vectorization: continuous 5 GFlop/s
|
||||
memory bandwith limitation: ***see alinea d)***
|
||||
real achievable performance:***see alinea c)***
|
||||
measured performance:
|
||||
|
||||
#### d) Memory bandwidth limitation
|
||||
1 FOP -> 2B
|
||||
|
||||
| GFlop/s | Flop/Byte |
|
||||
| ------- | --------- |
|
||||
| 0.125 | 2.5 |
|
||||
| 0.25 | 5 |
|
||||
| 0.5 | 10 |
|
||||
| 1 | 20 |
|
||||
| 2 | 40 |
|
||||
| 4 | 80 |
|
||||
| 8 | 160 |
|
||||
|
||||
#### c)
|
||||
2 FOP (operações vírgula flutuante) -> 2 doubles (16B)
|
||||
1 operation/8B -> 0.125
|
||||
|
||||
| GFlop/s | Flop/Byte |
|
||||
| ------- | --------- |
|
||||
| 2.5 | 0.125 |
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
dg-publish: true
|
||||
---
|
||||
25 Setembro 2023 - #MFES
|
||||
🌫 25 Setembro 2023 - #MFES
|
||||
|
||||
## Links de Resolução de Exercícios
|
||||
1. https://colab.research.google.com/drive/1hz-eUtQNTV_IeOh2mvOWvm0uG7ob5vGG?usp=sharing
|
||||
|
|
5
4a1s/MFES/PL - Aula 3.md
Normal file
5
4a1s/MFES/PL - Aula 3.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
🌫 2 Outubro 2023 - #MFES
|
||||
|
||||
## Links de Resolução de Exercícios
|
||||
- https://colab.research.google.com/drive/1DEqtSGpShq-Pp9TIA53lb7zZpgr-dn1e
|
||||
- https://colab.research.google.com/drive/1ahV4QvHHfTOMXW8Tt1GyWuI4Z0PHvjHT
|
|
@ -1,8 +1,7 @@
|
|||
---
|
||||
dg-publish: true
|
||||
---
|
||||
|
||||
27 de Setembro 2023 - #RAS
|
||||
🌫 27 de Setembro 2023 - #RAS
|
||||
|
||||
>[!help]+ Ex 5.1
|
||||
>Imagine that a software engineer, who concluded recently his degree at a given university, is leading a requirements engineering team for a project to improve the software application that permits students to enroll and register in degrees offered by that university. Which of the following requirements elicitation techniques are adequate for capturing the typical and atypical activities involved in the use of the application?
|
||||
|
|
56
4a1s/RAS/PL - Aula 3.md
Normal file
56
4a1s/RAS/PL - Aula 3.md
Normal file
|
@ -0,0 +1,56 @@
|
|||
---
|
||||
dg-publish: true
|
||||
---
|
||||
4 de Outubro 2023 - #RAS
|
||||
|
||||
>[!help]+ Ex. 7.1
|
||||
>The use of a natural language (for instance, English or Spanish) and intuitive diagrams is used for documenting user requirements. What is the main reason?
|
||||
>
|
||||
>1. To eliminate the communication difficulties among the stakeholders.
|
||||
>2. To facilitate understanding
|
||||
>3. To have no ambiguities
|
||||
>4. To be precise
|
||||
>
|
||||
>>[!hint]- Resolution
|
||||
>>Option 2 is the correct one.
|
||||
|
||||
|
||||
>[!help]+ Ex. 7.2
|
||||
>Which of the following sentences does not constitute a valid system requirement?
|
||||
>
|
||||
>1. The product shall be developed using an agile method.
|
||||
>2. The product shall respond to all requests in less than 5s
|
||||
>3. The product shall be composed of 12 modules.
|
||||
>4. The product shall use always menu screens to communicate with the users.
|
||||
>
|
||||
>>[!hint]- Resolution
|
||||
>>Option 1 does not constitute a valid system requirement.
|
||||
|
||||
|
||||
>[!help] Ex 7.5
|
||||
>The following are requirements of a controller of a swimming pool: R1: The input valves should be open when the swimming pool is filling. R2: The input valves stop when the level of the water reaches 2 m. R3: The level of the water should increase gradually. R4: The output valves must be open when the water is higher than 2.1 m. Which defects this set of requirements present?
|
||||
>
|
||||
>1. ambiguous
|
||||
>2. solution-dependent
|
||||
>3. incomplete
|
||||
>4. not verifiable
|
||||
>
|
||||
>>[!hint]- Resolution
|
||||
>>Option 1 is the correct one.
|
||||
|
||||
>[!help] Ex. 7.6
|
||||
>Analyse the following user requirements and indicate if they are clear and verifiable. If not, reformulate the wording.
|
||||
>1. The communication system can only "crash", at most, once a month.
|
||||
>2. The system shall be easy to learn by students with minimal training.
|
||||
>3. The average delay for the users of a system to pay tolls shall be less than 15s.
|
||||
>4. All users shall use the same mobile application.
|
||||
>5. The maximum delay between the submission of a questionnaire and its confirmation must be half an hour.
|
||||
>6. The operator shall be able to communicate by mobile phone with the bus driver.
|
||||
>
|
||||
>>[!hint]- Resolution
|
||||
>>1. The communication system shall be available 95% of the time.
|
||||
>>2. Users of the type students with 20h of training shall correctly use 80% of the system features.
|
||||
>>3. *precise and verifiable, but the using 'average' is not a good measurement* -> The maximum delay for the users of a system to pay tolls shall be less than 15s.
|
||||
>>4. *depends on the context*
|
||||
>>5. *precise and verifiable*
|
||||
|
4
4a1s/RAS/Projeto.md
Normal file
4
4a1s/RAS/Projeto.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
## Requisitos Funcionais
|
||||
### Perspetiva Alunos
|
||||
1. Os estudantes deverão fazer login no sistema.
|
||||
2. O login no sistema deverá necessitar da identi
|
15
Excalidraw/Drawing 2023-10-04 12.19.18.excalidraw.md
Normal file
15
Excalidraw/Drawing 2023-10-04 12.19.18.excalidraw.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
|
||||
excalidraw-plugin: parsed
|
||||
tags: [excalidraw]
|
||||
|
||||
---
|
||||
==⚠ Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠==
|
||||
|
||||
|
||||
%%
|
||||
# Drawing
|
||||
```json
|
||||
{"type":"excalidraw","version":2,"source":"https://github.com/zsviczian/obsidian-excalidraw-plugin/releases/tag/1.9.19","elements":[],"appState":{"gridSize":null,"viewBackgroundColor":"#ffffff"}}
|
||||
```
|
||||
%%
|
BIN
Images/Pasted image 20231004115135.png
Normal file
BIN
Images/Pasted image 20231004115135.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
BIN
Images/Pasted image 20231004115725.png
Normal file
BIN
Images/Pasted image 20231004115725.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Loading…
Reference in a new issue