ã½ã¼ããé ãã¦å°ã£ã¦ããã®ã§ãOpenMPã使ã£ãBitonic Sortãæ¸ããã¨ãããstd::sortãããé ãã¦ã·ã§ãã¯ãåããã¤ã³ã¿ã¼ãããã§ãããã調ã¹ã¦ããããgccã ã¨ã³ã³ãã¤ã©ã®ãªãã·ã§ã³ã ãã§ä¸¦ååã§ãããã¨ãç¥ãã¾ããã Chapter 18. Parallel Mode g++ã®ãªãã·ã§ã³ã« -D_GLIBCXX_PARALLEL -fopenmpãã¤ããã¨ã_GLIBCXX_PARALLELãå®ç¾©ããã¦std::sortã__gnu_parallel::sortã«ãªããOpenMPãæå¹ã«ãªã£ã¦ä¸¦ååããã¾ããã³ã¬ã§ååã§ããã 試ãã #include <algorithm> #include <vector> #include <iostream> #include <time.h> #include <sys/time.h> #include <assert
{{#tags}}- {{label}}
{{/tags}}