-
Notifications
You must be signed in to change notification settings - Fork 607
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
Fix stream usage in C API #3713
Conversation
… CPU backen usable without a GPU. Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
@@ -69,9 +69,27 @@ std::string GetDeviceStr(device_type_t dev) { | |||
return dev == CPU ? "cpu" : "gpu"; | |||
} | |||
|
|||
// Allocates a buffer on the specified backend and, if necessary, another one for the CPU |
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.
The only test we run from this file without GPU is CpuOnlyTest - see https://github.com/NVIDIA/DALI/blob/main/qa/TL0_cpu_only/test.sh#L34.
Maybe we should improve the pattern there - or change test naming here to run more CPU only test?
CI MESSAGE: [4061845]: BUILD STARTED |
CI MESSAGE: [4061845]: BUILD FAILED |
Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
CI MESSAGE: [4062458]: BUILD STARTED |
CI MESSAGE: [4062458]: BUILD FAILED |
CI MESSAGE: [4062458]: BUILD PASSED |
CI MESSAGE: [4068049]: BUILD STARTED |
CI MESSAGE: [4068293]: BUILD STARTED |
CI MESSAGE: [4068293]: BUILD FAILED |
Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
d088d3c
to
da5e5ae
Compare
CI MESSAGE: [4068460]: BUILD STARTED |
@@ -31,7 +31,7 @@ test_body() { | |||
exit 1 | |||
fi | |||
|
|||
"$FULLPATH" --gtest_filter="*CpuOnlyTest*" | |||
"$FULLPATH" --gtest_filter="*CpuOnly*:*CApi*/0.*-*0.UseCopyKernel:*ForceNoCopyFail:*daliOutputCopySamples" |
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.
Does 0
mean CPU?
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.
Yes - unfortunately the name of the TypeParam is not a part of the name, so you can't match against that.
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.
You can pls add a comment about that?
CI MESSAGE: [4068049]: BUILD PASSED |
* Fix stream/order usage in C API and tests. Make most C API tests with CPU backen usable without a GPU. * Make C API CpuOnly test only run for CPU backend. * Use AccessOrder in copyX2Y. Add more CPU-only tests. * Extend the range of CPU-only native tests * Adjust cpplint for C++17 structured bindings. Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
CI MESSAGE: [4068460]: BUILD PASSED |
* Fix stream/order usage in C API and tests. Make most C API tests with CPU backen usable without a GPU. * Make C API CpuOnly test only run for CPU backend. * Use AccessOrder in copyX2Y. Add more CPU-only tests. * Extend the range of CPU-only native tests * Adjust cpplint for C++17 structured bindings. Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
* Fix stream/order usage in C API and tests. Make most C API tests with CPU backen usable without a GPU. * Make C API CpuOnly test only run for CPU backend. * Use AccessOrder in copyX2Y. Add more CPU-only tests. * Extend the range of CPU-only native tests * Adjust cpplint for C++17 structured bindings. Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
Category:
Bug fix (non-breaking change which fixes an issue)
Description:
auto [a, b]
Additional information:
Affected modules and functionalities:
Key points relevant for the review:
Checklist
Tests
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: N/A