Skip to content

[SYCL] Drain thread pool should not be called on Win #7973

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 10, 2023

Conversation

KseniyaTikhomirova
Copy link
Contributor

@KseniyaTikhomirova KseniyaTikhomirova commented Jan 10, 2023

Signed-off-by: Tikhomirova, Kseniya [email protected]

PR #7908 accidentally introduced a behavior that causes lots of timeouts on the CI system on Windows.

@KseniyaTikhomirova
Copy link
Contributor Author

/verify with intel/llvm-test-suite#1462

@KseniyaTikhomirova KseniyaTikhomirova temporarily deployed to aws January 10, 2023 12:07 — with GitHub Actions Inactive
@KseniyaTikhomirova
Copy link
Contributor Author

/verify with intel/llvm-test-suite#1462

@KseniyaTikhomirova KseniyaTikhomirova temporarily deployed to aws January 10, 2023 14:08 — with GitHub Actions Inactive
@cperkinsintel
Copy link
Contributor

I ran this PR against the llvm-test-suite on Windows. I see some failures, but none of the timeouts that this PR fixes. I think we should merge.

Oh, and the llvm-test-suite run just completed. There is a failure in Basic/event_profiling_info.cpp, but still that's far better than the timeouts which are dragging the whole CI system down. We should merge.

@bader bader merged commit c379817 into intel:sycl Jan 10, 2023
@KseniyaTikhomirova
Copy link
Contributor Author

failing Basic/event_profiling_info is not related to drain & deferred buffers functionality since it is failing with the following error:
what(): Unable to get command group submission time: Device and/or backend does not support querying timestamp: OpenCL version for device and/or platform is less than 2.1 -59 (PI_ERROR_INVALID_OPERATION)

@bader
Copy link
Contributor

bader commented Jan 10, 2023

failing Basic/event_profiling_info is not related to drain & deferred buffers functionality since it is failing with the following error: what(): Unable to get command group submission time: Device and/or backend does not support querying timestamp: OpenCL version for device and/or platform is less than 2.1 -59 (PI_ERROR_INVALID_OPERATION)

I'm not sure if current test behavior is friendly for developers. @intel/llvm-reviewers-runtime, do we want the test to fail, or skip is HW doesn't support profiling? Maybe running on OpenCL device with version >= 2.1 must be a prerequisite for launching pre-commit tests?

@againull
Copy link
Contributor

againull commented Jan 12, 2023

It looks like this PR caused the following failure in post commit:

D:\github\_work\llvm\llvm\build\tools\sycl\unittests\scheduler\.\SchedulerTests.exe --gtest_filter=SchedulerTest.HostTaskCleanup
--
D:\github\_work\llvm\llvm\src\sycl\unittests\scheduler\GraphCleanup.cpp(308): error: Expected equality of these values:
  EventImpl->getCommand()
    Which is: 00000[268](https://github.com/intel/llvm/actions/runs/3900784152/jobs/6661852328#step:10:269)560FC350
  nullptr
    Which is: (nullptr)

D:\github\_work\llvm\llvm\src\sycl\unittests\scheduler\GraphCleanup.cpp:308
Expected equality of these values:
  EventImpl->getCommand()
    Which is: 00000268560FC350
  nullptr
    Which is: (nullptr)


********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
  SYCL-Unit :: scheduler/./SchedulerTests.exe/SchedulerTest/HostTaskCleanup

https://github.com/intel/llvm/actions/runs/3886587010/jobs/6631863893

@KseniyaTikhomirova will you be able to take a look?

@cperkinsintel
Copy link
Contributor

@KseniyaTikhomirova - In reference to the last comment from Artur, about the failing unit test. In my observations, that test seems to pass on Linux, but sometimes fail on Win.

@KseniyaTikhomirova
Copy link
Contributor Author

It looks like this PR caused the following failure in post commit:

D:\github\_work\llvm\llvm\build\tools\sycl\unittests\scheduler\.\SchedulerTests.exe --gtest_filter=SchedulerTest.HostTaskCleanup
--
D:\github\_work\llvm\llvm\src\sycl\unittests\scheduler\GraphCleanup.cpp(308): error: Expected equality of these values:
  EventImpl->getCommand()
    Which is: 00000[268](https://github.com/intel/llvm/actions/runs/3900784152/jobs/6661852328#step:10:269)560FC350
  nullptr
    Which is: (nullptr)

D:\github\_work\llvm\llvm\src\sycl\unittests\scheduler\GraphCleanup.cpp:308
Expected equality of these values:
  EventImpl->getCommand()
    Which is: 00000268560FC350
  nullptr
    Which is: (nullptr)


********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
  SYCL-Unit :: scheduler/./SchedulerTests.exe/SchedulerTest/HostTaskCleanup

https://github.com/intel/llvm/actions/runs/3886587010/jobs/6631863893

@KseniyaTikhomirova will you be able to take a look?

My modifications broke attachScheduler() instrumentation for tests. SHould be fixed here #8006

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants