Skip to content
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

Is the code error? #73

Open
casm-ahb opened this issue May 10, 2022 · 1 comment
Open

Is the code error? #73

casm-ahb opened this issue May 10, 2022 · 1 comment

Comments

@casm-ahb
Copy link

in utility.hpp line 446
template <>
device inline void store_uint8_vector<2u>(uint8_t *dest, const uint32_t *ptr){
uchar2 uint8x2;
uint8x2.x = static_cast<uint8_t>(ptr[0]);
uint8x2.y = static_cast<uint8_t>(ptr[0]);
store_as(dest, uint8x2);
}
should be right as following code
template <>
device inline void store_uint8_vector<2u>(uint8_t *dest, const uint32_t *ptr){
uchar2 uint8x2;
uint8x2.x = static_cast<uint8_t>(ptr[0]);
uint8x2.y = static_cast<uint8_t>(ptr[1]);
store_as(dest, uint8x2);
}

@atakagi-fixstars
Copy link
Contributor

Hi, @casm-ahb

I'm sorry for the late reply.

Your indication is correct.
The error doesn't appear because this code is not called in current setting, but needs correction anyway.
We will fix next.

Thank you for your comment.
Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants