Skip to content

Commit 4023556

Browse files
committed
[compiler] Allow printing Float16s
1 parent 8272782 commit 4023556

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler/output.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ export @ipuprint, @ipuprintln
140140
# `@ipuprint` pretty directly maps to `@ipuprintf`; we should just support `write(::IO)`.
141141
const ipuprint_conversions = Dict(
142142
Float32 => (x->:(Float64($x)), Float64),
143+
Float16 => (x->:(Float64($x)), Float64),
143144
Ptr{<:Any} => (x->:(convert(Ptr{Cvoid}, $x)), Ptr{Cvoid}),
144145
LLVMPtr{<:Any} => (x->:(reinterpret(Ptr{Cvoid}, $x)), Ptr{Cvoid}),
145146
Bool => (x->:(Int32($x)), Int32),

0 commit comments

Comments
 (0)