
- 6 ECTS
- P3
- Exam: Mandatory
Feedback
4 months ago
Projeto exigente.
4 months ago
Esta review é especialmente relevante para quem estuda no Taguspark e precisa de fazer CPD para cumprir o minor, tendo de se deslocar à Alameda.
O projeto em si é relativamente pequeno, as deadlines são razoáveis quando comparadas com outras cadeiras e a matéria lecionada é interessante e relevante. O principal problema surge para os alunos do Taguspark que têm a maioria das cadeiras lá, porque os horários tornam praticamente impossível assistir às aulas de CPD. No meu caso, mesmo com o melhor horário possível, apenas conseguia ir a uma aula prática por semana.
Noutras cadeiras isso costuma ser contornável, porque os materiais são disponibilizados online e é possível acompanhar a matéria com a ajuda dos colegas. Em CPD, essa abordagem não funciona. Ao longo do semestre, senti que o professor penalizava quem não conseguia comparecer às aulas, mesmo depois de explicarmos repetidamente que a incompatibilidade de horários tornava isso impossível. Durante as discussões do projeto, era frequente ouvir comentários como "Mas eu disse isso na aula" ou "Não ouviram isso na última prática?". Apesar de explicarmos sempre a mesma situação, essa resposta parecia nunca ser considerada.
Outro aspeto que me desagradou foi a avaliação do projeto. O nosso grupo investiu tempo a pesquisar, tanto nos slides como em documentação e recursos online, para encontrar soluções que otimizassem a nossaimplementação. No entanto, esse esforço pareceu não ser valorizado porque optámos por uma abordagem diferente da que o professor tinha recomendado nas aulas, nomeadamente por não utilizarmos uma determinada primitiva de OpenMP. Ficou a sensação de que a avaliação privilegiou a adesão às aulas, em vez qualidade da solução desenvolvida. Como nota final, questiono-me se o professor pensa nos trabalhador-estudante que estão numa situação semelhante por não conseguirem ir às aulas.
Quanto ao exame, é bastante exigente. Não há muito a acrescentar, é uma avaliação que requer um estudo sólido e consistente.
4 months ago
Projeto bastante pequeno em termos de código que é preciso desenvolver. A avaliação foca-se mais nas qualidade desse código e nas técnicas que usamos para melhorar a performance. Sugiro começar a testar o projeto no deucalion assim que possível porque a fila do deucalion pode demorar várias horas (ou até dias quando está muito cheia) a correr o vosso projeto. O professor da cadeira é competente a ensinar mas a correção do exame é escandalosa, num curso com quase 200 pessoas apenas alguns tiveram mais que 14 no exame... Para estudar são disponibilizados vários exames dos anos anteriores mas nenhum com solução então acabei por não perceber bem os critérios de correção do stor.
5 months ago
Projeto giro e facil.
Exame mega lixado por mais que estudes
Nao gostei do professor, parece que ficava chateado com tudo (sabem aqueles videos a tentar mostrar como sao stores do tecnico? Tal e qual).
Dica: ir as aulas praticas q o stor vai dizendo o q melhorar no projeto
Ele tem imensos exames dos anos anteriores
5 months ago
Main classes and themes of the course were interesting, them being OpenMP and OpenMPI. In my year there was a 3 part project that was very light, but I believe it being so light was an exception. It was quite fun to test our projects in Deucalion, but can feel quite a chore. Exams are hard in my opinion, there are a lot of little things and formulas that must be memorised, as professor doesn't give you any options of support In-Exam. Project Discussions were awfull, professor was unreasonably hard/strict on them. Overall interesting course.
7 months ago
Classes → Professor José Monteiro explains the topics clearly, provides a good number of examples, and clearly enjoys teaching the subject. TIP: Taking notes on how computation and communication complexity is calculated across the various examples helps quite a bit (last four classes), the remaining slides explain the remaining concepts clearly.
Exam → The average grade was low — around 11 or 12 if I had to guess, possibly lower. You need to know a lot of small details about OpenMP (especially) and MPI, plus all the other course material, which is a lot of content in my opinion.
Additionally, not a single exam solution was made available, apart from the partial one done in class (which really did help — not complaining — but it only touched on a small number of theoretical topics).
Project (divided into 3 stages):
- Sequential Implementation → Very easy — a basic 200-line C file. Supposedly it isn't accounted for in the final grade, its delivery deadline is "optional," but:\
- "You'll be deducted 1 point from the final project grade if you don't hand it in on time."
Also, make sure it's the fastest implementation you can come up with. This will be used to compare with your next implementations.
- "You'll be deducted 1 point from the final project grade if you don't hand it in on time."
- OpenMP Implementation → You'll need to adapt the sequential implementation so multiple threads can contribute to computing the final solution. Not hard at all. Use OpenMP directives whenever possible — avoid doing things "manually". SIMD wasn't mandatory, my group didn't use it.
- Feedback: The professor didn't explain much about what was wrong, even though he complained a bit. I'm not sure whether the feedback sessions are also run by TAs — they might be more forgiving and guide you better.
- MPI Implementation → The most time-consuming stage, although it can be done in a relatively short amount of time. You'll need to adapt either your sequential or OpenMP implementation (OpenMP will most likely need to be re-added on top of the modified sequential (now MPI) version for better results, so don't discard it entirely).
We then had to test our implementation on Deucalion, which was quite troublesome in the last 3–4 days before the deadline. The x86 partition was fully booked — jobs took at least a full day to be scheduled (Yes, scheduled, not run. Runs take 1–2 hours max for most configurations).
The professor came in clutch, though. The ARM partition was requested (which always had available nodes) and we used it instead. Also, each group's account has a limited number of CPU hours on Deucalion. They don't run out quickly, but they do run out. Make sure to register all group members' accounts shortly after the login credentials arrive in their emails — these credentials expire, and some groups weren't able to register their colleagues in time. We ended up using two full accounts' worth of CPU hours and would have used more if we'd had access to a third member's (expired) account.- Defence: In our case, the professor only asked individual questions. Make sure you know all of the code and the changes you made, especially why you made them.
- Note: The professor allowed the class to redo the sequential implementation for both mandatory deliveries and the OpenMP implementation for the final delivery. We ended up improving both, and he was happier with the results.
The reviews below this point may be outdated. Course content, teaching methods, and requirements may have changed since then.
last year
5 years ago
The course is not very well organized.
The project was about parallelizing an algorithm, and it had two deliveries. In the first delivery, we had to use OpenMP. We had plenty of time and it wasn't that complicated. For the second delivery we had to use MPI, and not only did we have way less time, teachers also asked us to handle very large inputs. Handling those cases felt like a whole new project.
To test your project, you have to use the RNL cluster, which gets very crowded in the last days before the deadline. The professor's solution to that was basically 'Finish earlier'. -_-
Another thing that made me enjoy the course less was the fact that both deliveries focused on parallelizing the same algorithm. I get that it’s probably the best way to compare the two approaches, but it got really annoying by the time we reached the second delivery. At least for me, I was just tired of looking at that code.
The course isn’t bad. I’m just not sure I’d recommend it.
5 years ago
Project
Historically, this course on parallel algorithms struggles to find good problems to parallelize. A few years back, the project was about parallelizing a Sudoku solver (hint: all the sequential approaches were faster). This year, the only parallelizable part was that the input data was a tree. Other than that, there wasn’t much going on.
Syllabus
The subjects addressed in this course (OpenMP and MPI) are totally outdated. OpenMP has been totally outclassed by things like work-stealing thread pools (see: Rayon or Cilk). MPI is too flexible to really scale well. (For context: our project used 4 allocations without MPI… with MPI? 50K. What’s up with that?) Plus, the field seems to have moved toward more specialized yet still broadly applicable solutions.
One thing that’s borderline criminal is the lack of any mention of MapReduce. Personally, I think that should be punishable with jail time. There are decades of research (and industry practice) around that paradigm. It goes far beyond just 'we want to scale this up'.
Conclusion
I took the course with the mindset of 'it’s gonna be crap, but it’s crap I already know, so it’ll be low effort'. I imagine CMU or CNV would have been just as rough, but I don’t know them as well.
About the course
Objectives
Understand the models, techniques, and programming methods for parallel algorithms. Learn to analyze and design parallel programs. Hands-on experience in developing programs for shared- and distributed-memory systems. Overview of parallel algorithms in different application areas.
Syllabus
Parallel computing architectures. Flynn’s taxonomy. Programming models: multicores and multicomputers; memory organization; overheads. Analysis and synthesis of parallel algorithms: problem partitioning; data organization; communication and synchronization; load balancing; scheduling. Performance metrics. Programming shared-memory systems: OpenMP, threads, race conditions, deadlock detection. Programming distributed-memory systems: interconnection networks; message-passing, MPI. Hybrid programming. Heterogeneous architectures. Application areas: numerical methods: matrix multiplication, systems of linear equations; algorithms on graphs; sorting; search and optimization algorithms; Monte Carlo methods; others.
Prerequisites
Solid programming skills, ideally in C or C++. Good background in the analysis of algorithms.
Cross Competence Component
The project develops: - Critical and Innovative Thinking; - Interpersonal Skills, being group work.
Laboratorial Component
Project assignment to be implemented in several versions: - serial version, that will serve as baseline - shared-memory - distributed-memory - hybrid (optional)
Programming And Computing Component
The Computing and Programming components according to MEPP 2122 are assured in the degree where this course is offered.
Ethical Principles
All members of a group are responsible for the group's work. In any assessment, every student shall honestly disclose any help received and sources used. In an oral assessment, every student shall be able to present and answer questions about the entire assignment and solution.
Something missing or out of date?
Assessment
Exam 40%, Project 60%. Minimum grade of 7,5 in each component.
Has the assessment changed, or is something missing?
Bibliography
Main Bibliography
- Parallel Programming: Techniques and Applications Using Networked Workstations and Parallel Computers: Barry Wilkinson and Michael Allen 2005 Prentice Hall
- Parallel Programming: Michael Quinn 2003 McGrawHill
- Designing and Building Parallel Programs : Concepts and Tools for Parallel Software Engineering: Ian Foster 1995 Addison Wesley
Missing a book or some materials?