-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Bugfix: make kernel generator wait for events on matrices #1796
Bugfix: make kernel generator wait for events on matrices #1796
Conversation
…stable/2017-11-14)
Jenkins Console Log Machine informationProductName: Mac OS X ProductVersion: 10.11.6 BuildVersion: 15G22010CPU: G++: Clang: |
Jenkins Console Log Machine informationProductName: Mac OS X ProductVersion: 10.11.6 BuildVersion: 15G22010CPU: G++: Clang: |
Jenkins Console Log Machine informationProductName: Mac OS X ProductVersion: 10.11.6 BuildVersion: 15G22010CPU: G++: Clang: |
…gs/RELEASE_500/final)
Jenkins Console Log Machine informationProductName: Mac OS X ProductVersion: 10.11.6 BuildVersion: 15G22010CPU: G++: Clang: |
Jenkins Console Log Machine informationProductName: Mac OS X ProductVersion: 10.11.6 BuildVersion: 15G22010CPU: G++: Clang: |
@serban-nicusor-toptal Are all the windows boxes down or is there one still running so it's going slow? Looks like most tests are stopping while waiting for upstream windows boxes here https://jenkins.mc-stan.org/blue/organizations/jenkins/CmdStan/detail/downstream_tests/1534/pipeline |
There are two in use, one is down and can't be handled on-site because of covid-19. |
Sounds good thanks for the update! |
There was a huge backlog of Windows jobs. Its unfortunate that the Windows jobs take the longest and we also have the least workers (and obviousyl the least stable). This job will finish in 20 minutes https://jenkins.mc-stan.org/blue/organizations/jenkins/Stan/detail/downstream_tests/1417/pipeline then this PR should be next. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One tiny comment
inline void get_clear_read_write_events( | ||
std::vector<cl::Event>& events) const { | ||
index_apply<N>([&](auto... Is) { | ||
(void)std::initializer_list<int>{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be static_cast<void>()
? I'm surprised this is getting through the cpplint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. Fixed.
…bstatcomp/math into cl_kernel_generator_wait_events
…stable/2017-11-14)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! I'm good with the rest of this
Jenkins Console Log Machine informationProductName: Mac OS X ProductVersion: 10.11.6 BuildVersion: 15G22010CPU: G++: Clang: |
Summary
Fixes kernel generator so it only executes kernels after appropriate events on matrices used by a kernel are complete.
Tests
Added tests that check events are waited on.
Side Effects
None.
Checklist
Math issue Implement OpenCL kernel generator #1342
Copyright holder: Tadej Ciglarič
The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
the basic tests are passing
./runTests.py test/unit
)make test-headers
)make test-math-dependencies
)make doxygen
)make cpplint
)the code is written in idiomatic C++ and changes are documented in the doxygen
the new changes are tested