-
Notifications
You must be signed in to change notification settings - Fork 199
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 build errors related with variable defined array length and gl te… #1957
Conversation
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.
Thanks, this is a nice improvement! Just a few comments.
Reviewing |
Hi @jujiang-del - did you have a chance to look at the comments above? We discussed this PR in our teleconference today and ideally they would be addressed before merging - thanks! |
Thanks for the review. Updated accordingly. |
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.
Mostly LGTM, thanks!
|
||
generate_random_data( vecType, (unsigned int)( numOrders * inVecSize ), d, inData ); | ||
outData.clear(); |
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.
Sorry, missed that there is one more clear
here, too.
This one should change to std::fill
also. Or, since the vector contents are automatically initialized to zero, I think it can be removed entirely.
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.
Good catch; I'd say it's best to rely on the default initialization and avoid unnecessary std::fill
calls.
Updated. Thanks. |
…sts logged error