Giter Club home page Giter Club logo

foreach_async_sr's Introduction

foreach_async_SR

II. In hpx::main():

first, define four policies: seq_pol, par_pol,par_sr_pol,par_task_sr_pol;

then, calculate the time.

II(1). Got two sets results:

1.using following sentences to calculate the time: (using decltype) https://github.com/hcq9102/foreach_async_SR/blob/main/source%20files/foreach_async.cpp#L133-L136

 i.e.
    double SEQ = test<decltype(seq_pol), std::false_type>(seq_pol, 10, n, std::false_type{});
    double PAR = test<decltype(par_pol), std::false_type>(par_pol, 10, n, std::false_type{});
    double Par_SR = test<decltype(par_sr_pol), std::false_type>(par_sr_pol, 10, n, std::false_type{});
    double Par_Task_SR = test<decltype(par_task_sr_pol), std::true_type>(par_task_sr_pol, 10, n, std::true_type{});

--->> when threads number = 32: the results of par_sr_pol,par_task_sr_pol show up&down trend.

plots: check word file: https://github.com/hcq9102/foreach_async_SR/tree/main/results/results%3C%3E/plots

2.using following sentences to calculate the time: (dont use decltype) https://github.com/hcq9102/foreach_async_SR/blob/main/source%20files/foreach_async.cpp#L128-L131

   i.e.    
     double SEQ = test(seq_pol, 10, n, std::false_type{});
     double PAR = test(par_pol, 10, n, std::false_type{});
     double Par_SR = test(par_sr_pol, 10, n, std::false_type{});
     double Par_Task_SR = test(par_task_sr_pol, 10, n, std::true_type{});

--->> when threads number = 32: the results of par_sr_pol,par_task_sr_pol *didnt show up&down trend.

plots: check word file: https://github.com/hcq9102/foreach_async_SR/tree/main/results/results()/plots()

II(2). In sum, when threads num >=32, par_sr_pol(i.e, par.on(exec) ),par_task_sr_pol (i.e, par(task).on(exec)) shows bad perfromance; else(threads num <32), par.on(exec), par(task).on(exec) shows better performance than par policy.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.