You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
As discussed in my MacOS documentation PR, the compilation gives a warning related to using memcpy to copy a non-trivial type used for half precision
/Users/36j/Devel/HIP-CPU/HIP-CPU/examples/bit_extract/../../include/hip/hip_fp16.h:898:43: required from here
/Users/36j/Devel/HIP-CPU/HIP-CPU/examples/bit_extract/../../include/hip/../../src/include/hip/detail/helpers.hpp:46:32: warning: 'void* memcpy(void*, const void*, size_t)' copying an object of non-trivial type 'class half_float::half' from an array of 'const short int' [-Wclass-memaccess]
46 | std::memcpy(&r, &v, sizeof(T));
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
This appearst to be known (and is benign) I am just noting it here for later cleanup.
The text was updated successfully, but these errors were encountered:
bjoo
changed the title
Compilation Warning resulting from non-trivial half precision type (MacOS build)
Compilation Warning resulting from non-trivial half precision type (MacOS build, homebrew gcc-10)
Jan 5, 2021
Hi,
As discussed in my MacOS documentation PR, the compilation gives a warning related to using memcpy to copy a non-trivial type used for half precision
This appearst to be known (and is benign) I am just noting it here for later cleanup.
The text was updated successfully, but these errors were encountered: