You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/03/02 23:38:20 UTC

[GitHub] [incubator-mxnet] leezu opened a new issue #17743: mshadow::bfloat::bf16_t triggers Wclass-memaccess

leezu opened a new issue #17743: mshadow::bfloat::bf16_t triggers Wclass-memaccess
URL: https://github.com/apache/incubator-mxnet/issues/17743
 
 
   Warning triggered by GCC 8.
   
   @rongzha1 @pengzhao-intel 
   
   `../include/mshadow/./tensor_cpu-inl.h:133:11: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘class mshadow::bfloat::bf16_t’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]`
   `     memcpy(_dst.dptr_, _src.dptr_, sizeof(DType) * _dst.shape_.Size());`
   
   https://github.com/apache/incubator-mxnet/blob/c2e9a885683774f229eebdcf2699f51bc3afb3d9/3rdparty/mshadow/mshadow/bfloat.h#L111-L129

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-mxnet] leezu closed issue #17743: bf16_t and half_t trigger Wclass-memaccess

Posted by GitBox <gi...@apache.org>.
leezu closed issue #17743: bf16_t and half_t trigger Wclass-memaccess
URL: https://github.com/apache/incubator-mxnet/issues/17743
 
 
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-mxnet] leezu commented on issue #17743: bf16_t and half_t trigger Wclass-memaccess

Posted by GitBox <gi...@apache.org>.
leezu commented on issue #17743: bf16_t and half_t trigger Wclass-memaccess
URL: https://github.com/apache/incubator-mxnet/issues/17743#issuecomment-593693257
 
 
   Actually this warning should be triggered for all DTypes. Not sure why gcc doesn't do it. It's a fundamental problem with mshadow, so let's just ignore the warning.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services