-
Notifications
You must be signed in to change notification settings - Fork 622
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
Remove usage of THRUST host&device vector #5439
Conversation
c6a3dd2
to
b2bc44b
Compare
!build |
CI MESSAGE: [14417381]: BUILD STARTED |
b2bc44b
to
67aa28a
Compare
dali/c_api/operator_trace_test.cc
Outdated
template<typename T> | ||
thrust::device_vector<T> random_vector_gpu(std::mt19937 &mt, size_t size) { | ||
thrust::device_vector<T> ret = random_vector_cpu<T>(mt, size); | ||
Fill(ret.cpu(), gen); |
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.
Even better:
Fill(ret.cpu(), gen); | |
UniformRandomFill(ret.cpu(), mt, 0, 255); |
...and get rid of the dist/gen.
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.
Done
- as there is no guarantee that THRUST host and device vectors can be used in host-only programs this PR removes their usage from DALI Signed-off-by: Janusz Lisiecki <[email protected]>
67aa28a
to
ecec3dc
Compare
!build |
CI MESSAGE: [14418852]: BUILD STARTED |
CI MESSAGE: [14417381]: BUILD PASSED |
CI MESSAGE: [14418852]: BUILD PASSED |
vectors can be used in host-only programs this PR removes
their usage from DALI
Category:
Other (e.g. Documentation, Tests, Configuration)
Description:
vectors can be used in host-only programs this PR removes
their usage from DALI
Additional information:
Affected modules and functionalities:
Key points relevant for the review:
Tests:
Checklist
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: N/A