oneapi-src / oneDPL

oneAPI DPC++ Library (oneDPL) https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/dpc-library.html
Apache License 2.0
716 stars 113 forks source link

[Dynamic Selection] Parallel tests for Dynamic Selection #1623

Open AnuyaWelling2801 opened 1 month ago

AnuyaWelling2801 commented 1 month ago

Added Parallel tests for

  1. Round Robin policy - sycl backend
  2. Round Robin policy - inline backend
  3. Fixed resource policy - sycl backend
  4. Fixed resource policy - inline backend
  5. Dynamic Load policy - sycl backend
  6. Dynamic Load policy - inline backend
  7. Auto tune policy - sycl backend
  8. Auto tune policy - inline backend

More to be added either in this PR or a separate PR

SergeyKopienko commented 1 week ago

@AnuyaWelling2801 Could you please extract this two typical peace of code in your test into some functions?

1)

        for(int i=0;i<n_threads;i++){
            threads.emplace_back(thread_func);
        }

2)

        for(auto& thread : threads){
            thread.join();
        }

There are a lot of this code...

SergeyKopienko commented 1 week ago

@AnuyaWelling2801 another question: For example, we have some code like this:

    if (!pass)
    {
        std::cout << "ERROR: did not select expected resources\n";
        return 1;
    }

in the function test_submit_and_wait_on_group and in some other functions.

The question: should we continue test is it's happen (!pass) ? And if so, should this affect the outcome of the entire test?

SergeyKopienko commented 1 week ago

CI is red...