libocca / occa

Portable and vendor neutral framework for parallel programming on heterogeneous platforms.
https://libocca.org
MIT License
382 stars 81 forks source link

A couple of Examples/concurrency #736

Open deukhyun-cha opened 5 months ago

deukhyun-cha commented 5 months ago

Examples for 1) OpenMP streams to generalize the "stream" concept for all modes 2) Internal thread safe block for occa properties.

deukhyun-cha commented 5 months ago
codecov[bot] commented 5 months ago

Codecov Report

Attention: 103 lines in your changes are missing coverage. Please review.

Comparison is base (ec6e59d) 75.26% compared to head (519d104) 74.96%. Report is 1 commits behind head on examples/concurrency.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/libocca/occa/pull/736/graphs/tree.svg?width=650&height=150&src=pr&token=doaG4c84wZ&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=libocca)](https://app.codecov.io/gh/libocca/occa/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=libocca) ```diff @@ Coverage Diff @@ ## examples/concurrency #736 +/- ## ======================================================== - Coverage 75.26% 74.96% -0.30% ======================================================== Files 297 298 +1 Lines 19324 19486 +162 ======================================================== + Hits 14544 14608 +64 - Misses 4780 4878 +98 ``` | [Files](https://app.codecov.io/gh/libocca/occa/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=libocca) | Coverage Δ | | |---|---|---| | [include/occa/core/memoryPool.tpp](https://app.codecov.io/gh/libocca/occa/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=libocca#diff-aW5jbHVkZS9vY2NhL2NvcmUvbWVtb3J5UG9vbC50cHA=) | `100.00% <ø> (ø)` | | | [include/occa/functional/typelessArray.hpp](https://app.codecov.io/gh/libocca/occa/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=libocca#diff-aW5jbHVkZS9vY2NhL2Z1bmN0aW9uYWwvdHlwZWxlc3NBcnJheS5ocHA=) | `73.49% <100.00%> (ø)` | | | [src/c/base.cpp](https://app.codecov.io/gh/libocca/occa/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=libocca#diff-c3JjL2MvYmFzZS5jcHA=) | `85.71% <100.00%> (ø)` | | | [src/c/memoryPool.cpp](https://app.codecov.io/gh/libocca/occa/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=libocca#diff-c3JjL2MvbWVtb3J5UG9vbC5jcHA=) | `87.87% <100.00%> (ø)` | | | [src/core/base.cpp](https://app.codecov.io/gh/libocca/occa/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=libocca#diff-c3JjL2NvcmUvYmFzZS5jcHA=) | `72.82% <100.00%> (+2.17%)` | :arrow_up: | | [src/core/kernel.cpp](https://app.codecov.io/gh/libocca/occa/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=libocca#diff-c3JjL2NvcmUva2VybmVsLmNwcA==) | `85.93% <ø> (ø)` | | | [src/core/memory.cpp](https://app.codecov.io/gh/libocca/occa/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=libocca#diff-c3JjL2NvcmUvbWVtb3J5LmNwcA==) | `84.71% <100.00%> (+1.38%)` | :arrow_up: | | [src/occa/internal/core/device.hpp](https://app.codecov.io/gh/libocca/occa/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=libocca#diff-c3JjL29jY2EvaW50ZXJuYWwvY29yZS9kZXZpY2UuaHBw) | `100.00% <ø> (ø)` | | | [src/occa/internal/core/memory.cpp](https://app.codecov.io/gh/libocca/occa/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=libocca#diff-c3JjL29jY2EvaW50ZXJuYWwvY29yZS9tZW1vcnkuY3Bw) | `100.00% <ø> (ø)` | | | [src/occa/internal/core/memoryPool.cpp](https://app.codecov.io/gh/libocca/occa/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=libocca#diff-c3JjL29jY2EvaW50ZXJuYWwvY29yZS9tZW1vcnlQb29sLmNwcA==) | `68.58% <ø> (ø)` | | | ... and [18 more](https://app.codecov.io/gh/libocca/occa/pull/736?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=libocca) | | ... and [3 files with indirect coverage changes](https://app.codecov.io/gh/libocca/occa/pull/736/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=libocca)