Skip to content

Cours, TP et projets pour la promotion 2021

Notifications You must be signed in to change notification settings

Julienlin/Promotion_2021

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Promotion_2021

Cours, TP et projets pour la promotion 2021

Installation des outils nécessaires aux TDs

Linux/debian

sudo apt install  build-essential make g++ gdb libopenmpi-dev 

Windows 10

Installation d'ubuntu sous Windows 10 :

Allez sur le lien suivant https://www.numerama.com/tech/158150-le-shell-bash-sous-windows-10-ce-quil-faut-savoir.html et suivez les instructions

Taper bash dans la bare de questionnement. Une fois sous Linux :

sudo apt install  build-essential make g++ gdb libopenmpi-dev 

Windows 7 ou 8

Installer msys 2 via le site :

https://www.msys2.org/

Lancer le shell via mingw64

pacman -Ss gcc  # donne le nom du package contenant gcc
pacman -S mingw64/mingw-w64-x86_64-gcc   # install le package gcc avec le nom copié/collé précédent
pacman -Syu # Màj du système

Installer gcc, make

Pour MPI, installer MS-MPI : https://www.microsoft.com/en-us/download/details.aspx?id=57467

Dans .bashrc :

export PATH=$PATH:"/c/Program Files/Microsoft MPI/Bin/"

Exemple de commande de compilation :

g++ -o HelloWorld.exe HelloWorld.cpp -L/c/Program\ Files\ \(x86\)/Microsoft\ SDKs/MPI/Lib/x64 -I/c/Program\ Files\ \(x86\)/Microsoft\ SDKs/MPI/Include -lmsmpi

Mac

Installer homebrew => https://brew.sh

Suivre les instructions

brew install gcc open-mpi
brew update # màj

A mettre dans le .bashrc:

export OMPI_CC=gcc-9
export OMPI_CXX=g++-9

About

Cours, TP et projets pour la promotion 2021

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 45.2%
  • TeX 22.0%
  • Rich Text Format 12.2%
  • C++ 7.1%
  • CSS 6.6%
  • JavaScript 4.9%
  • Other 2.0%