ã¡ãã£ã¨åã«Intelã®ã½ããã¦ã§ã¢ã«ã³ãã¡ã¬ã³ã¹ã«è¡ã£ãã®ã§ãããããã§ã®è©±ã§ãCPUã®åä½ã¯ããã¯ãéãããã®ã¯ããããéçãªã®ã§ããã«ãã³ã¢/ã¡ãã¼ã³ã¢ãä¸æã«ä½¿ããããã«ãã©ã¬ã«ããã°ã©ã ãæ¸ãã¾ããããã¨è¨ã話ãèãã¦ãã¾ããã ãVC8ã¯OpenMPã使ãããããªã®ã§ãã¡ãã£ã¨éãã§ã¿ã¾ããããã¨è¨ãã話ãã§ãã â»ï¼å®é¨ãã·ã³ã¯CPUã«ã³ã¢ãï¼ã¤ä¹ã£ã¦ãã¾ãã ã¾ãã¯ã試ãã³ã¼ã"hello world"ã§ãã #include "stdafx.h" #include <omp.h> int _tmain(int argc, _TCHAR* argv[]) { #pragma omp parallel { printf("hello world from %d of %d\n", omp_get_thread_num(), omp_get_num_threads()); }
{{#tags}}- {{label}}
{{/tags}}