Help for this page

Select Code to Download


  1. or download this
    . $HOME/local-oneapi-tbb/oneapi-tbb-2021.7.0/env/vars.sh
    
  2. or download this
    g++ -o llil3vec-tbb -std=c++20 -Wall -O3 -I "$HOME/local-oneapi-tbb/on
    +eapi-tbb-2021.7.0/include" -L "$HOME/local-oneapi-tbb/oneapi-tbb-2021
    +.7.0/lib" 
    llil3vec-tbb.cpp -l tbb
    
  3. or download this
    $ locale -a
    C
    C.utf8
    POSIX
    
  4. or download this
        // std::cout.imbue(std::locale{"en_US.UTF8"});
        std::cout.imbue(std::locale{"C.utf8"});
    
  5. or download this
    using map_str_int_type = std::map<str_type, llil_int_type>;
    
  6. or download this
    using map_str_int_type = tbb::concurrent_map<str_type, llil_int_type>;
    
  7. or download this
    // llil3vec-tbb.cpp.
    // Vector version of llil2grt.pl.
    ...
    
       return 0;
    }
    
  8. or download this
    OpenMp version:
    $ time ./llil4vec_p big1.txt big2.txt big3.txt >vec.tmp
    ...
    real    0m3.041s
    user    0m5.553s
    sys     0m0.745s
    
  9. or download this
    OneTbb version:
    $ time ./llil3vec-tbb big1.txt big2.txt big3.txt >f.tmp
    ...
    real    0m2.890s
    user    0m4.687s
    sys     0m0.646s
    
  10. or download this
    $ time ./llil3vec-tbb-a big1.txt big2.txt big3.txt >f.tmp
    llil3vec-tbb-a (fixed string length=6) start
    ...
    real    0m2.552s
    user    0m4.304s
    sys     0m0.438s
    
  11. or download this
    clang++ -o llil3vec-tbb-a -std=c++20 -Wall -O3 -I "$HOME/llil/cmdlinux
    +/fast_io/include" -I "$HOME/local-oneapi-tbb/oneapi-tbb-2021.7.0/incl
    +ude" -L "$HOME/local-oneapi-tbb/oneapi-tbb-2021.7.0/lib" llil3vec-tbb
    +-a.cpp -l tbb
    
  12. or download this
    // llil3vec-tbb-a.cpp.
    // Vector version using the Intel TBB library
    ...
    
       return 0;
    }