Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 667 Bytes

File metadata and controls

20 lines (16 loc) · 667 Bytes

#OpenMP tasks

##command to compile

  • ➜ git:(master) ✗ gcc -o omp1 -fopenmp OpenMP/omp01.c
  • omp1 - executable file, omp1.c - file to compile

##command to run

  • ➜ git:(master) ✗ ./omp1
  • omp1 - executable file

set threads amount

  • omp_set_num_threads() - via func
  • OMP_NUM_THREADS - via global variable.

OMP tutorials from Habr