Skip to content

Commit 2bc42d0

Browse files
committed
Update on "Fix Half X86_F16 CUDA build failure"
It passed PyTorch CI, but internally we saw failures from this. Differential Revision: [D66137897](https://our.internmc.facebook.com/intern/diff/D66137897/) [ghstack-poisoned]
2 parents cc6f8e2 + ad9705a commit 2bc42d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

c10/util/Half.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,10 @@ inline uint16_t fp16_ieee_from_fp32_value(float f) {
349349
#endif // C10_X86_F16
350350
}
351351

352+
#ifdef C10_X86_F16
353+
#undef C10_X86_F16
354+
#endif // C10_X86_F16
355+
352356
#if defined(__aarch64__) && !defined(__CUDACC__)
353357
inline float16_t fp16_from_bits(uint16_t h) {
354358
return c10::bit_cast<float16_t>(h);

0 commit comments

Comments
 (0)