wpan11nv commented on a change in pull request #5226: [CODEGEN][CUDA] Fix
vector load
URL: https://github.com/apache/incubator-tvm/pull/5226#discussion_r404291102
##########
File path: src/target/source/literal/cuda_half_t.h
##########
@@ -291,7 +291,7 @@ static inline __device__ __host__ unsigned
__pack_half2(const half x, const half y) {
unsigned v0 = *((unsigned short *)&x);
unsigned v1 = *((unsigned short *)&y);
- return (v0 << 16) | v1;
+ return (v1 << 16) | v0;
Review comment:
good catch!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services