17 lines
353 B
C
17 lines
353 B
C
|
#include "stdio.h"
|
||
|
#include <stdlib.h>
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#include <omp.h>
|
||
|
|
||
|
int main(int argc, char **argv)
|
||
|
{
|
||
|
// Lecture des caractétistiques du processeur
|
||
|
int nb_thread = omp_get_max_threads();
|
||
|
int nb_proc = omp_get_num_procs();
|
||
|
|
||
|
printf("Nb thread max = %d\n\r", nb_thread);
|
||
|
printf("Nb procs : %d\n\r", nb_proc);
|
||
|
return 0;
|
||
|
}
|