MCPcopy Create free account
hub / github.com/bitsandbytes-foundation/bitsandbytes / cvt_fp32_to_fp16

Function cvt_fp32_to_fp16

csrc/cpu_ops.cpp:235–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233#if defined(__AVX512F__)
234
235inline __m256i cvt_fp32_to_fp16(const __m512 src) {
236 return _mm512_cvtps_ph(src, (_MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC));
237}
238
239inline __m256i cvt_fp32_to_bf16(const __m512 src) {
240#if defined(__AVX512BF16__)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected