
MEEC · Instituto Superior Técnico
Computação Paralela e Distribuída
Parallel and Distributed Computing
- 6 ECTS
- P3
- Exame: Obrigatório
Feedback
há 4 meses
Projeto exigente.
há 4 meses
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.
há 4 meses
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.
há 5 meses
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
há 5 meses
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.
há 7 meses
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.
As avaliações abaixo deste ponto podem estar desatualizadas. O conteúdo, os métodos de ensino e os requisitos da cadeira podem ter mudado desde então.
ano passado
há 5 anos
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.
há 5 anos
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.
Sobre a cadeira
Objetivos
Compreender os modelos, as técnicas e os métodos de programação para algoritmos paralelos. Aprender a analisar e a conceber programas paralelos. Experiência prática no desenvolvimento de programas para sistemas de memória partilhada e de memória distribuída. Visão geral de algoritmos paralelos em diferentes áreas de aplicação.
Programa
Arquiteturas de computação paralela. Taxonomia de Flynn. Modelos de programação: multicores e multicomputadores; organização da memória; overheads. Análise e síntese de algoritmos paralelos: partição do problema; organização de dados; comunicação e sincronização; balanceamento de carga; escalonamento. Métricas de desempenho. Programação de sistemas de memória partilhada: OpenMP, threads, condições de corrida, deteção de deadlock. Programação de sistemas de memória distribuída: redes de interligação; passagem de mensagens, MPI. Programação híbrida. Arquiteturas heterogéneas. Áreas de aplicação: métodos numéricos: multiplicação de matrizes, sistemas de equações lineares; algoritmos em grafos; ordenação; algoritmos de pesquisa e otimização; métodos de Monte Carlo; outros.
Pré-requisitos
Sólidas competências de programação, idealmente em C ou C++. Boa base na análise de algoritmos.
Componente de Competências Transversais
O projeto desenvolve: - Pensamento Crítico e Inovador; - Competências Interpessoais, por ser trabalho de grupo.
Componente Laboratorial
Trabalho de projeto a implementar em várias versões: - versão sequencial, que servirá de referência - memória partilhada - memória distribuída - híbrida (opcional)
Componente de Programação e Computação
As componentes de Computação e Programação de acordo com o MEPP 2122 estão asseguradas no curso em que esta disciplina é oferecida.
Princípios Éticos
Todos os membros de um grupo são responsáveis pelo trabalho do grupo. Em qualquer avaliação, cada estudante deve divulgar honestamente qualquer ajuda recebida e as fontes utilizadas. Numa avaliação oral, cada estudante deve ser capaz de apresentar e responder a perguntas sobre todo o trabalho e toda a solução.
Traduzido automaticamente do inglês
Falta algo ou está desatualizado?
Avaliação
Exam 40%, Project 60%. Minimum grade of 7,5 in each component.
A avaliação mudou ou falta alguma coisa?
Bibliografia
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
Falta algum livro ou material?