OpenMP ã¯å ±æã¡ã¢ãªä¸¦åããã°ã©ãã³ã°ã®æ¨æº API ã§ãããããã§ã¯ C/C++ çãç´¹ä»ãããFortran çãããã OpenMP ã¯èªå並ååã§ã¯ãªããä¾åæ§ã®åæã¨è§£æ±ºã¯ããã°ã©ãã«ä»»ããã¦ããã使ãæ¹ãééãã°ãå½ç¶æ£ãããªãçµæãåºãã #include <omp.h> OpenMP ã使ãã¨ãã«ã¯ã¤ã³ã¯ã«ã¼ãããã _OPENMP OpenMP ã³ã³ãã¤ã©ã define ãããã¯ãã #pragma omp parallel ç¯ æ¬¡ã®è¡ããå§ã¾ããããã¯ã並åã«ï¼éè¤ãã¦ï¼å®è¡ããã ã¹ã¬ããã®æ°ã¯ num_threads ç¯ããomp_set_num_threads é¢æ°ããç°å¢å¤æ° OMP_NUM_THREADS ã§æå®ããã Parallel æ示è¡ã®æç¹ã§æ¢ã«å®ç¾©ããã¦ããå¤æ°ã¨ããããã¯å ã§ãstatic 宣è¨ããã¦ããå¤æ°ã¯
{{#tags}}- {{label}}
{{/tags}}