IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Développement OS X Discussion :

[OS] APPLICATION MULTITHREAD


Sujet :

Développement OS X

  1. #1
    Membre émérite
    Profil pro
    Inscrit en
    Juin 2006
    Messages
    1 354
    Détails du profil
    Informations personnelles :
    Âge : 50
    Localisation : France

    Informations forums :
    Inscription : Juin 2006
    Messages : 1 354
    Par défaut [OS] APPLICATION MULTITHREAD
    bonjour,

    quelqu'un (ou plusieurs) pourrait-il nous aider à tester une lib de calcul (GENIAL) en multi-thread sur macosx.
    [MACOSX] MULTI THREADS
    [MT] Benchmark de produits matriciels sur processeurs multi-cores

    sur windows (avec VMWARE en plus !!) j'obtiens de meilleurs resultats qu'en single thread alors que sur macosx j'obtiens exactement les memes resultats. Pourtant d'apres le gestionnaire, les deux cores fonctionneraient bien en meme temps...

    Merci d'avance pour votre aide

  2. #2
    Membre émérite

    Profil pro
    Inscrit en
    Janvier 2005
    Messages
    734
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2005
    Messages : 734
    Par défaut
    Citation Envoyé par epsilon68 Voir le message
    bonjour,

    quelqu'un (ou plusieurs) pourrait-il nous aider à tester une lib de calcul (GENIAL) en multi-thread sur macosx.
    [MACOSX] MULTI THREADS
    [MT] Benchmark de produits matriciels sur processeurs multi-cores

    sur windows (avec VMWARE en plus !!) j'obtiens de meilleurs resultats qu'en single thread alors que sur macosx j'obtiens exactement les memes resultats. Pourtant d'apres le gestionnaire, les deux cores fonctionneraient bien en meme temps...

    Merci d'avance pour votre aide
    Je n'arrive pas à compiler l'appli, j'obtiens les mêmes erreurs que charlemagne. avec le GCC 4.01

  3. #3
    Membre émérite
    Profil pro
    Inscrit en
    Juin 2006
    Messages
    1 354
    Détails du profil
    Informations personnelles :
    Âge : 50
    Localisation : France

    Informations forums :
    Inscription : Juin 2006
    Messages : 1 354
    Par défaut
    Charlemagne est la personne qui a implémenté la lib.
    copie lui tes erreurs de compil en donnant aussi la ligne de commande pour compiler, je pourrais aussi verifier de mon coté...

  4. #4
    Inactif  
    Profil pro
    Inscrit en
    Mars 2004
    Messages
    743
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2004
    Messages : 743
    Par défaut
    Salut
    Je viens tout juste de découvrir votre discussion.
    Tarul, donne moi les erreurs que tu obtiens, je vais voir ce que je peux faire.

  5. #5
    Membre émérite
    Profil pro
    Inscrit en
    Juin 2006
    Messages
    1 354
    Détails du profil
    Informations personnelles :
    Âge : 50
    Localisation : France

    Informations forums :
    Inscription : Juin 2006
    Messages : 1 354
    Par défaut
    ... il n'y a personne qui peut aider ?

  6. #6
    Membre émérite

    Profil pro
    Inscrit en
    Janvier 2005
    Messages
    734
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2005
    Messages : 734
    Par défaut
    Citation Envoyé par Charlemagne Voir le message
    Salut
    Je viens tout juste de découvrir votre discussion.
    Tarul, donne moi les erreurs que tu obtiens, je vais voir ce que je peux faire.
    bonjour voici le résultat que j'obtiens
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    g++ main.cpp -O2 -I../genial -msse3 -Winline -DNDEBUG -DBLAS_THREADING -DMAX_THREADS=2  -framework Carbon -I/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework
    main.cpp:7:23: error: blas/gemv.h: No such file or directory
    main.cpp:8:23: error: blas/gemm.h: No such file or directory
    main.cpp:9:24: error: blas/getrf.h: No such file or directory
    main.cpp:10:23: error: blas/trsm.h: No such file or directory
    main.cpp:19: error: expected initializer before '<' token
    main.cpp:33: error: expected template-name before '<' token
    main.cpp:33: error: expected `{' before '<' token
    main.cpp:33: error: expected unqualified-id before '<' token
    main.cpp:53: error: 'complex' was not declared in this scope
    main.cpp:53: error: template argument 1 is invalid
    main.cpp:53: error: expected unqualified-id before '>' token
    main.cpp:71: error: variable or field 'excel_output' declared void
    main.cpp:71: error: template declaration of 'int excel_output'
    main.cpp:71: error: 'basic_ostream' was not declared in this scope
    main.cpp:71: error: expected primary-expression before ',' token
    main.cpp:71: error: expected primary-expression before '>' token
    main.cpp:71: error: 'os' was not declared in this scope
    main.cpp:71: error: expected primary-expression before 'const'
    main.cpp:71: error: expected primary-expression before 'const'
    main.cpp:84: error: 'CBLAS_TRANSPOSE' was not declared in this scope
    main.cpp:84: error: expected primary-expression before 'const'
    main.cpp:84: error: expected primary-expression before 'const'
    main.cpp:84: error: 'Vector' was not declared in this scope
    main.cpp:84: error: expected primary-expression before '>' token
    main.cpp:84: error: 'Y' was not declared in this scope
    main.cpp:84: error: declaration of 'operator()' as non-function
    main.cpp:85: error: 'CBLAS_TRANSPOSE' was not declared in this scope
    main.cpp:85: error: expected primary-expression before 'const'
    main.cpp:85: error: expected primary-expression before 'const'
    main.cpp:85: error: 'Vector' was not declared in this scope
    main.cpp:85: error: expected primary-expression before '>' token
    main.cpp:85: error: 'Y' was not declared in this scope
    main.cpp:85: error: declaration of 'operator()' as non-function
    main.cpp:86: error: 'complex' was not declared in this scope
    main.cpp:86: error: missing '>' to terminate the template argument list
    main.cpp:86: error: template argument 1 is invalid
    main.cpp:86: error: expected unqualified-id before '>' token
    main.cpp:87: error: 'complex' was not declared in this scope
    main.cpp:87: error: missing '>' to terminate the template argument list
    main.cpp:87: error: template argument 1 is invalid
    main.cpp:87: error: expected unqualified-id before '>' token
    main.cpp:89: error: expected ',' or '...' before '<' token
    main.cpp:89: error: ISO C++ forbids declaration of 'Matrix' with no type
    main.cpp: In function 'void atlas_gemv(int)':
    main.cpp:91: error: expected nested-name-specifier before 'Matrix'
    main.cpp:91: error: expected initializer before '<' token
    main.cpp:92: error: 'value_type' was not declared in this scope
    main.cpp:92: error: template argument 1 is invalid
    main.cpp:92: error: 'AtlasNoTrans' was not declared in this scope
    main.cpp:92: error: 'A' was not declared in this scope
    main.cpp:92: error: 'B' was not declared in this scope
    main.cpp:92: error: 'C' was not declared in this scope
    main.cpp:93: error: 'value_type' was not declared in this scope
    main.cpp:93: error: template argument 1 is invalid
    main.cpp:93: error: 'AtlasTrans' was not declared in this scope
    main.cpp:93: error: 'A' was not declared in this scope
    main.cpp:93: error: 'B' was not declared in this scope
    main.cpp:93: error: 'C' was not declared in this scope
    main.cpp:94: error: 'value_type' was not declared in this scope
    main.cpp:94: error: template argument 1 is invalid
    main.cpp:94: error: 'CblasConjTrans' was not declared in this scope
    main.cpp:94: error: 'A' was not declared in this scope
    main.cpp:94: error: 'B' was not declared in this scope
    main.cpp:94: error: 'C' was not declared in this scope
    main.cpp: At global scope:
    main.cpp:98: error: expected constructor, destructor, or type conversion before '<' token
    main.cpp:141: error: 'CBLAS_TRANSPOSE' was not declared in this scope
    main.cpp:141: error: 'CBLAS_TRANSPOSE' was not declared in this scope
    main.cpp:141: error: expected primary-expression before 'const'
    main.cpp:141: error: expected primary-expression before 'const'
    main.cpp:141: error: 'Matrix' was not declared in this scope
    main.cpp:141: error: expected primary-expression before '>' token
    main.cpp:141: error: 'C' was not declared in this scope
    main.cpp:141: error: declaration of 'operator()' as non-function
    main.cpp:142: error: 'CBLAS_TRANSPOSE' was not declared in this scope
    main.cpp:142: error: 'CBLAS_TRANSPOSE' was not declared in this scope
    main.cpp:142: error: expected primary-expression before 'const'
    main.cpp:142: error: expected primary-expression before 'const'
    main.cpp:142: error: 'Matrix' was not declared in this scope
    main.cpp:142: error: expected primary-expression before '>' token
    main.cpp:142: error: 'C' was not declared in this scope
    main.cpp:142: error: declaration of 'operator()' as non-function
    main.cpp:143: error: 'complex' was not declared in this scope
    main.cpp:143: error: missing '>' to terminate the template argument list
    main.cpp:143: error: template argument 1 is invalid
    main.cpp:143: error: expected unqualified-id before '>' token
    main.cpp:144: error: 'complex' was not declared in this scope
    main.cpp:144: error: missing '>' to terminate the template argument list
    main.cpp:144: error: template argument 1 is invalid
    main.cpp:144: error: expected unqualified-id before '>' token
    main.cpp:146: error: expected ',' or '...' before '<' token
    main.cpp:146: error: ISO C++ forbids declaration of 'Matrix' with no type
    main.cpp: In function 'void atlas_gemm(int)':
    main.cpp:148: error: expected nested-name-specifier before 'Matrix'
    main.cpp:148: error: expected initializer before '<' token
    main.cpp:149: error: 'value_type' was not declared in this scope
    main.cpp:149: error: template argument 1 is invalid
    main.cpp:149: error: 'CblasNoTrans' was not declared in this scope
    main.cpp:149: error: 'A' was not declared in this scope
    main.cpp:149: error: 'B' was not declared in this scope
    main.cpp:149: error: 'C' was not declared in this scope
    main.cpp:149: error: 'value_type' was not declared in this scope
    main.cpp:149: error: template argument 1 is invalid
    main.cpp:149: error: 'CblasNoTrans' was not declared in this scope
    main.cpp:149: error: 'CblasTrans' was not declared in this scope
    main.cpp:149: error: 'A' was not declared in this scope
    main.cpp:149: error: 'B' was not declared in this scope
    main.cpp:149: error: 'C' was not declared in this scope
    main.cpp:149: error: 'value_type' was not declared in this scope
    main.cpp:149: error: template argument 1 is invalid
    main.cpp:149: error: 'CblasNoTrans' was not declared in this scope
    main.cpp:149: error: 'CblasConjTrans' was not declared in this scope
    main.cpp:149: error: 'A' was not declared in this scope
    main.cpp:149: error: 'B' was not declared in this scope
    main.cpp:149: error: 'C' was not declared in this scope
    main.cpp:150: error: 'value_type' was not declared in this scope
    main.cpp:150: error: template argument 1 is invalid
    main.cpp:150: error: 'CblasTrans' was not declared in this scope
    main.cpp:150: error: 'CblasNoTrans' was not declared in this scope
    main.cpp:150: error: 'A' was not declared in this scope
    main.cpp:150: error: 'B' was not declared in this scope
    main.cpp:150: error: 'C' was not declared in this scope
    main.cpp:150: error: 'value_type' was not declared in this scope
    main.cpp:150: error: template argument 1 is invalid
    main.cpp:150: error: 'CblasTrans' was not declared in this scope
    main.cpp:150: error: 'A' was not declared in this scope
    main.cpp:150: error: 'B' was not declared in this scope
    main.cpp:150: error: 'C' was not declared in this scope
    main.cpp:150: error: 'value_type' was not declared in this scope
    main.cpp:150: error: template argument 1 is invalid
    main.cpp:150: error: 'CblasTrans' was not declared in this scope
    main.cpp:150: error: 'CblasConjTrans' was not declared in this scope
    main.cpp:150: error: 'A' was not declared in this scope
    main.cpp:150: error: 'B' was not declared in this scope
    main.cpp:150: error: 'C' was not declared in this scope
    main.cpp:151: error: 'value_type' was not declared in this scope
    main.cpp:151: error: template argument 1 is invalid
    main.cpp:151: error: 'CblasConjTrans' was not declared in this scope
    main.cpp:151: error: 'CblasNoTrans' was not declared in this scope
    main.cpp:151: error: 'A' was not declared in this scope
    main.cpp:151: error: 'B' was not declared in this scope
    main.cpp:151: error: 'C' was not declared in this scope
    main.cpp:151: error: 'value_type' was not declared in this scope
    main.cpp:151: error: template argument 1 is invalid
    main.cpp:151: error: 'CblasConjTrans' was not declared in this scope
    main.cpp:151: error: 'CblasTrans' was not declared in this scope
    main.cpp:151: error: 'A' was not declared in this scope
    main.cpp:151: error: 'B' was not declared in this scope
    main.cpp:151: error: 'C' was not declared in this scope
    main.cpp:151: error: 'value_type' was not declared in this scope
    main.cpp:151: error: template argument 1 is invalid
    main.cpp:151: error: 'CblasConjTrans' was not declared in this scope
    main.cpp:151: error: 'A' was not declared in this scope
    main.cpp:151: error: 'B' was not declared in this scope
    main.cpp:151: error: 'C' was not declared in this scope
    main.cpp: At global scope:
    main.cpp:155: error: expected constructor, destructor, or type conversion before '<' token
    main.cpp:197: error: 'Matrix' was not declared in this scope
    main.cpp:197: error: expected primary-expression before '>' token
    main.cpp:197: error: 'A' was not declared in this scope
    main.cpp:197: error: 'Vector' was not declared in this scope
    main.cpp:197: error: expected primary-expression before '>' token
    main.cpp:197: error: 'P' was not declared in this scope
    main.cpp:197: error: declaration of 'operator()' as non-function
    main.cpp:198: error: 'Matrix' was not declared in this scope
    main.cpp:198: error: expected primary-expression before '>' token
    main.cpp:198: error: 'A' was not declared in this scope
    main.cpp:198: error: 'Vector' was not declared in this scope
    main.cpp:198: error: expected primary-expression before '>' token
    main.cpp:198: error: 'P' was not declared in this scope
    main.cpp:198: error: declaration of 'operator()' as non-function
    main.cpp:199: error: 'complex' was not declared in this scope
    main.cpp:199: error: missing '>' to terminate the template argument list
    main.cpp:199: error: template argument 1 is invalid
    main.cpp:199: error: expected unqualified-id before '>' token
    main.cpp:200: error: 'complex' was not declared in this scope
    main.cpp:200: error: missing '>' to terminate the template argument list
    main.cpp:200: error: template argument 1 is invalid
    main.cpp:200: error: expected unqualified-id before '>' token
    main.cpp:202: error: variable or field 'atlas_getrf' declared void
    main.cpp:202: error: 'atlas_getrf' declared as an 'inline' variable
    main.cpp:202: error: template declaration of 'int atlas_getrf'
    main.cpp:202: error: 'Matrix' was not declared in this scope
    main.cpp:202: error: expected primary-expression before '>' token
    main.cpp:202: error: 'A' was not declared in this scope
    main.cpp:202: error: 'Vector' was not declared in this scope
    main.cpp:202: error: expected primary-expression before '>' token
    main.cpp:202: error: 'P' was not declared in this scope
    main.cpp:208: error: expected constructor, destructor, or type conversion before '<' token
    main.cpp:269: error: 'CBLAS_SIDE' was not declared in this scope
    main.cpp:269: error: 'CBLAS_UPLO' was not declared in this scope
    main.cpp:269: error: 'CBLAS_TRANSPOSE' was not declared in this scope
    main.cpp:269: error: 'CBLAS_DIAG' was not declared in this scope
    main.cpp:269: error: expected primary-expression before 'const'
    main.cpp:269: error: 'Matrix' was not declared in this scope
    main.cpp:269: error: expected primary-expression before '>' token
    main.cpp:269: error: 'B' was not declared in this scope
    main.cpp:269: error: declaration of 'operator()' as non-function
    main.cpp:270: error: 'CBLAS_SIDE' was not declared in this scope
    main.cpp:270: error: 'CBLAS_UPLO' was not declared in this scope
    main.cpp:270: error: 'CBLAS_TRANSPOSE' was not declared in this scope
    main.cpp:270: error: 'CBLAS_DIAG' was not declared in this scope
    main.cpp:270: error: expected primary-expression before 'const'
    main.cpp:270: error: 'Matrix' was not declared in this scope
    main.cpp:270: error: expected primary-expression before '>' token
    main.cpp:270: error: 'B' was not declared in this scope
    main.cpp:270: error: declaration of 'operator()' as non-function
    main.cpp:271: error: 'complex' was not declared in this scope
    main.cpp:271: error: missing '>' to terminate the template argument list
    main.cpp:271: error: template argument 1 is invalid
    main.cpp:271: error: expected unqualified-id before '>' token
    main.cpp:272: error: 'complex' was not declared in this scope
    main.cpp:272: error: missing '>' to terminate the template argument list
    main.cpp:272: error: template argument 1 is invalid
    main.cpp:272: error: expected unqualified-id before '>' token
    main.cpp:275: error: expected ',' or '...' before '<' token
    main.cpp:275: error: ISO C++ forbids declaration of 'Matrix' with no type
    main.cpp: In function 'void atlas_trsm(int)':
    main.cpp:277: error: 'CBLAS_SIDE' was not declared in this scope
    main.cpp:277: error: expected `;' before 'side'
    main.cpp:278: error: 'CBLAS_UPLO' was not declared in this scope
    main.cpp:278: error: expected `;' before 'uplo'
    main.cpp:279: error: 'CBLAS_TRANSPOSE' was not declared in this scope
    main.cpp:279: error: expected `;' before 'trans'
    main.cpp:279: error: 'trans' was not declared in this scope
    main.cpp:279: error: 'CblasNoTrans' was not declared in this scope
    main.cpp:279: error: 'trans' was not declared in this scope
    main.cpp:279: error: 'CblasTrans' was not declared in this scope
    main.cpp:279: error: 'trans' was not declared in this scope
    main.cpp:279: error: 'CblasConjTrans' was not declared in this scope
    main.cpp:280: error: 'CBLAS_DIAG' was not declared in this scope
    main.cpp:280: error: expected `;' before 'unit'
    main.cpp:281: error: expected nested-name-specifier before 'Matrix'
    main.cpp:281: error: expected initializer before '<' token
    main.cpp:282: error: template argument 1 is invalid
    main.cpp:282: error: expected initializer before '>' token
    main.cpp: At global scope:
    main.cpp:287: error: expected constructor, destructor, or type conversion before '<' token
    main.cpp: In function 'int main()':
    main.cpp:346: error: 'string' was not declared in this scope
    main.cpp:346: error: expected `;' before 's'
    main.cpp:351: error: 's' was not declared in this scope
    main.cpp:368: error: 'max_threads' was not declared in this scope
    main.cpp:368: error: 'to_string' was not declared in this scope
    main.cpp:372: error: 'BLAS_M' was not declared in this scope
    main.cpp:372: error: 'BLAS_K' was not declared in this scope
    main.cpp:394: error: expected `;' before 'fname'
    main.cpp:395: error: 'cout' was not declared in this scope
    main.cpp:395: error: 'fname' was not declared in this scope
    main.cpp:395: error: 'endl' was not declared in this scope
    main.cpp:396: error: 'ofstream' was not declared in this scope
    main.cpp:396: error: expected `;' before 'fout'
    main.cpp:398: error: 'DenseMatrix' was not declared in this scope
    main.cpp:398: error: expected primary-expression before 'float'
    main.cpp:398: error: expected `;' before 'float'
    main.cpp:400: error: 'M' was not declared in this scope
    main.cpp:400: error: 'sub' was not declared in this scope
    main.cpp:400: error: 'gemm_benchmark' was not declared in this scope
    main.cpp:400: error: expected primary-expression before 'float'
    main.cpp:400: error: expected `;' before 'float'
    main.cpp:401: error: expected primary-expression before 'double'
    main.cpp:401: error: expected `;' before 'double'
    main.cpp:402: error: 'fout' was not declared in this scope
    main.cpp:403: error: 'sizes' was not declared in this scope
    main.cpp:403: error: 'excel_output' was not declared in this scope

Discussions similaires

  1. Quel script pour une application multithreading tournant tel un daemon?
    Par joboy84 dans le forum Langages de programmation
    Réponses: 7
    Dernier message: 04/06/2008, 16h04
  2. Debugger application multithread
    Par Riven666 dans le forum Eclipse Java
    Réponses: 1
    Dernier message: 10/03/2008, 00h47
  3. variable locale dans une Application multithreading
    Par dev1980 dans le forum Servlets/JSP
    Réponses: 3
    Dernier message: 13/06/2007, 12h59
  4. Log d'une application multithread
    Par speedster dans le forum Logging
    Réponses: 5
    Dernier message: 21/03/2007, 18h35

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo