Liste des Groupes | Revenir à fcs atari |
Le 15/08/2024 à 00:31, OL a écrit :Oui rustiqueLe 14/08/2024 à 18:55, Francois LE COAT a écrit :Tout dépend le type de calcul, cette méthode rustique peut dans certains cas convenir. Mais c'est bien ce qu'elle est : rustique.Salut,Effectivement tu peux faire comme cela, est-ce pour autant le plus efficace ?
OL écrit :Et moi je te répond que dans le monde moderne sur une machine de bureau actuel le parallèlisme pour faire du calcul (on parlait bien de cela il me semble) se fait par thread pas par process, faudrait te mettre à jours.Bien pour faire du traitement d'images, et de la vision artificielle,
qui sont des calculs assez complexes, principalement sur des entiers,
j'utilise les ressources parallèles des machines multi-coeurs, en
lançant des processus concurrents. Il suffit souvent de découper les
images, et de lancer des calculs identiques, sur des morceaux d'images,
et de regrouper les calculs sur les différents morceaux indépendants.
Non et de très loin.
Je pensais à un truc tout bête en fait, pour faire la même chose que proposé par François, il faut du point de vu code je suppose que le code doit être "safe thread" alors qu'il n'y en a pas besoin dans son cas, mais peut-être que les compilateurs savent gérer la chose avec openmp ou faut encore faire attention ?Dans ce cas le thread est plus recommandé mais c'est plus compliqué à programmer.Comme je l'ai écrit par précédemment, quand on fait de la programmation scientifique (ce qui comprend le traitement d'images) on n'essaie pas de gérer soi-même les threads, on utilise OpenMP qui le fait pour nous à partir de quelques directives très simples:
#pragma omp parallel for
for (int i=0; i<n; i++) {
//un calcul quelconque
}
et la boucle est automatiquement découpée et distribuée sur autant de threads qu'il y a de coeurs (physiques) sur la machine.
Date | Sujet | # | Auteur | |
14 Jul 24 | [ANN] P2SM 1.1 | 230 | Pierre TON-THAT | |
16 Jul 24 | Re: [ANN] P2SM 1.1 | 2 | OL | |
17 Jul 24 | Re: [ANN] P2SM 1.1 | 1 | Pierre TON-THAT | |
21 Jul 24 | Re: [ANN] P2SM 1.1 | 227 | OL | |
22 Jul 24 | Re: [ANN] P2SM 1.1 | 226 | Pierre TON-THAT | |
22 Jul 24 | Re: [ANN] P2SM 1.1 | 223 | OL | |
22 Jul 24 | Re: [ANN] P2SM 1.1 | 222 | Pierre TON-THAT | |
24 Jul 24 | Re: [ANN] P2SM 1.1 | 221 | OL | |
25 Jul 24 | Re: [ANN] P2SM 1.1 | 219 | Pierre TON-THAT | |
25 Jul 24 | Re: [ANN] P2SM 1.1 | 5 | Francois LE COAT | |
25 Jul 24 | Difficultés avec Aranym (Was: [ANN] P2SM 1.1) | 3 | Pierre TON-THAT | |
26 Jul 24 | Re: Difficultés avec Aranym | 1 | Francois LE COAT | |
26 Jul 24 | Re: Difficultés avec Aranym (Was: [ANN] P2SM 1.1) | 1 | OL | |
29 Jul 24 | Re: [ANN] P2SM 1.1 | 1 | Francois LE COAT | |
25 Jul 24 | Re: [ANN] P2SM 1.1 | 1 | OL | |
25 Jul 24 | Re: [ANN] P2SM 1.1 | 2 | OL | |
25 Jul 24 | Re: [ANN] P2SM 1.1 | 1 | Pierre TON-THAT | |
2 Aug 24 | Re: [ANN] P2SM 1.1 | 210 | Pierre TON-THAT | |
4 Aug 24 | Re: [ANN] P2SM 1.1 | 209 | OL | |
4 Aug 24 | Re: [ANN] P2SM 1.1 | 208 | Francois LE COAT | |
4 Aug 24 | Re: [ANN] P2SM 1.1 | 3 | Arachide | |
4 Aug 24 | Re: [ANN] P2SM 1.1 | 2 | Francois LE COAT | |
4 Aug 24 | Re: [ANN] P2SM 1.1 | 1 | Arachide | |
5 Aug 24 | Pb Aranym | 204 | OL | |
5 Aug 24 | Re: Pb Aranym | 203 | Francois LE COAT | |
5 Aug 24 | Re: Pb Aranym | 202 | OL | |
7 Aug 24 | Re: Pb Aranym | 201 | Francois LE COAT | |
7 Aug 24 | Re: Pb Aranym | 197 | Arachide | |
8 Aug 24 | Re: Pb Aranym | 196 | Francois LE COAT | |
8 Aug 24 | Re: Pb Aranym | 195 | OL | |
9 Aug 24 | Re: Pb Aranym | 194 | Francois LE COAT | |
9 Aug 24 | Re: Pb Aranym | 193 | OL | |
9 Aug 24 | Re: Pb Aranym | 192 | Francois LE COAT | |
9 Aug 24 | Re: Pb Aranym | 189 | OL | |
10 Aug 24 | Re: Pb Aranym | 188 | Francois LE COAT | |
10 Aug 24 | Re: Pb Aranym | 186 | Arachide | |
12 Aug 24 | Re: Pb Aranym | 185 | Francois LE COAT | |
12 Aug 24 | Re: Pb Aranym | 184 | OL | |
13 Aug 24 | Re: Pb Aranym | 183 | Francois LE COAT | |
13 Aug 24 | Threads vs Process - WAS : Re: Pb Aranym | 179 | Pascal Wijsbroek | |
13 Aug 24 | Re: Threads vs Process | 178 | Francois LE COAT | |
13 Aug 24 | Re: Threads vs Process | 176 | Arachide | |
13 Aug 24 | Re: Threads vs Process | 175 | Francois LE COAT | |
13 Aug 24 | Re: Threads vs Process | 15 | OL | |
14 Aug 24 | Re: Threads vs Process | 14 | Francois LE COAT | |
15 Aug 24 | Re: Threads vs Process | 12 | OL | |
15 Aug 24 | Re: Threads vs Process | 11 | pehache | |
15 Aug 24 | Re: Threads vs Process | 10 | OL | |
15 Aug 24 | Re: Threads vs Process | 1 | pehache | |
15 Aug 24 | Re: Threads vs Process | 8 | Francois LE COAT | |
15 Aug 24 | Re: Threads vs Process | 1 | pehache | |
15 Aug 24 | Re: Threads vs Process | 6 | OL | |
16 Aug 24 | Re: Threads vs Process | 5 | Francois LE COAT | |
16 Aug 24 | Re: Threads vs Process | 3 | tTh | |
16 Aug 24 | Re: Threads vs Process | 2 | Francois LE COAT | |
16 Aug 24 | Re: Threads vs Process | 1 | Pascal Wijsbroek | |
16 Aug 24 | Re: Threads vs Process | 1 | OL | |
16 Aug 24 | Re: Threads vs Process | 1 | tTh | |
13 Aug 24 | Re: Threads vs Process | 159 | Pascal Wijsbroek | |
13 Aug 24 | Re: Threads vs Process | 158 | Francois LE COAT | |
13 Aug 24 | Re: Threads vs Process | 1 | OL | |
14 Aug 24 | Re: Threads vs Process | 156 | Pascal Wijsbroek | |
14 Aug 24 | Re: Threads vs Process | 155 | Francois LE COAT | |
14 Aug 24 | Re: Threads vs Process | 1 | Pascal Wijsbroek | |
14 Aug 24 | Re: Threads vs Process | 152 | Arachide | |
15 Aug 24 | Re: Threads vs Process | 151 | Francois LE COAT | |
15 Aug 24 | Re: Threads vs Process | 150 | Pascal Wijsbroek | |
15 Aug 24 | Re: Threads vs Process | 149 | Francois LE COAT | |
16 Aug 24 | Re: Threads vs Process | 148 | Pascal Wijsbroek | |
16 Aug 24 | Re: Threads vs Process | 2 | tTh | |
16 Aug 24 | Re: Threads vs Process | 1 | Pascal Wijsbroek | |
16 Aug 24 | Re: Threads vs Process | 145 | Francois LE COAT | |
16 Aug 24 | Re: Threads vs Process | 142 | Pascal Wijsbroek | |
16 Aug 24 | Re: Threads vs Process | 11 | Francois LE COAT | |
16 Aug 24 | Re: Threads vs Process | 9 | Pascal Wijsbroek | |
17 Aug 24 | Re: Threads vs Process | 8 | Francois LE COAT | |
17 Aug 24 | Re: Threads vs Process | 6 | Pascal Wijsbroek | |
19 Aug 24 | Re: Threads vs Process | 5 | Francois LE COAT | |
19 Aug 24 | Re: Threads vs Process | 3 | OL | |
19 Aug 24 | Re: Threads vs Process | 2 | Francois LE COAT | |
19 Aug 24 | Re: Threads vs Process | 1 | OL | |
19 Aug 24 | Re: Threads vs Process | 1 | Pascal Wijsbroek | |
18 Aug 24 | Re: Threads vs Process | 1 | pehache | |
22 Aug 24 | Re: Threads vs Process | 1 | tTh | |
22 Aug 24 | Re: Threads vs Process | 130 | tTh | |
22 Aug 24 | Re: Threads vs Process | 2 | Pascal Wijsbroek | |
29 Aug 24 | [HS] Re: Threads vs Process | 1 | Duzz' | |
22 Aug 24 | Re: Threads vs Process | 127 | Francois LE COAT | |
22 Aug 24 | Re: Threads vs Process | 1 | Pascal Wijsbroek | |
23 Aug 24 | Re: Threads vs Process | 125 | Pascal Wijsbroek | |
23 Aug 24 | Re: Threads vs Process | 124 | Francois LE COAT | |
23 Aug 24 | Re: Threads vs Process | 123 | Pascal Wijsbroek | |
23 Aug 24 | Re: Threads vs Process | 122 | Francois LE COAT | |
23 Aug 24 | Re: Threads vs Process | 20 | Arachide | |
23 Aug 24 | Re: Threads vs Process | 19 | Francois LE COAT | |
24 Aug 24 | Re: Threads vs Process | 10 | Arachide | |
24 Aug 24 | Re: Threads vs Process | 9 | Francois LE COAT | |
25 Aug 24 | Re: Threads vs Process | 7 | Pascal Wijsbroek | |
25 Aug 24 | Re: Threads vs Process | 2 | Francois LE COAT | |
25 Aug 24 | Re: Threads vs Process | 1 | tTh | |
25 Aug 24 | Re: Threads vs Process | 4 | Francois LE COAT | |
25 Aug 24 | Re: Threads vs Process | 1 | Arachide | |
24 Aug 24 | Re: Threads vs Process | 8 | OL | |
25 Aug 24 | Re: Threads vs Process | 1 | Pascal Wijsbroek | |
25 Aug 24 | Re: Threads vs Process | 100 | Arachide | |
22 Aug 24 | Re: Threads vs Process | 1 | tTh | |
22 Aug 24 | Re: Threads vs Process | 1 | tTh | |
16 Aug 24 | Re: Threads vs Process | 1 | tTh | |
13 Aug 24 | Re: Threads vs Process | 1 | pehache | |
13 Aug 24 | Re: Pb Aranym | 1 | OL | |
14 Aug 24 | Re: Pb Aranym | 1 | tTh | |
14 Aug 24 | Re: Pb Aranym | 1 | tTh | |
12 Aug 24 | Re: Pb Aranym | 1 | OL | |
10 Aug 24 | Re: Pb Aranym | 2 | tTh | |
7 Aug 24 | Re: Pb Aranym | 3 | OL | |
25 Jul 24 | Re: [ANN] P2SM 1.1 | 1 | Pierre TON-THAT | |
22 Jul 24 | Re: [ANN] P2SM 1.1 | 2 | tTh |
Les messages affichés proviennent d'usenet.