Skip to content

Bad error message #225

@maleadt

Description

@maleadt
function fill_normal!(A::ct.TileArray{Float32, 1}, n::Int)
  bid = ct.bid(1)
  tile = randn(Float32, (n,))
  ct.store(A; index=bid, tile=tile)
  return
end

@cuda backend=ct blocks=64 fill_normal!(A, 1024)
ERROR: unhandled Vararg
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:44
  [2] widenconst(::Core.TypeofVararg)
    @ Compiler ./../usr/share/julia/Compiler/src/typelattice.jl:694
  [3] (::cuTile.var"#promote_scalar_type##0#promote_scalar_type##1")(P::Core.TypeofVararg)
    @ cuTile ~/.julia/packages/cuTile/XjsGS/src/compiler/transform/canonicalize.jl:199
  [4] map(f::cuTile.var"#promote_scalar_type##0#promote_scalar_type##1", v::Core.SimpleVector)
    @ Base ./essentials.jl:956
  [5] promote_scalar_type(T::Any)
    @ cuTile ~/.julia/packages/cuTile/XjsGS/src/compiler/transform/canonicalize.jl:198
  [6] scalar_elim_block!(block::IRStructurizer.Block)
    @ cuTile ~/.julia/packages/cuTile/XjsGS/src/compiler/transform/canonicalize.jl:173
  [7] scalar_elim_block!(block::IRStructurizer.Block) (repeats 3 times)
    @ cuTile ~/.julia/packages/cuTile/XjsGS/src/compiler/transform/canonicalize.jl:98
  [8] scalar_elim_pass!
    @ ~/.julia/packages/cuTile/XjsGS/src/compiler/transform/canonicalize.jl:88 [inlined]
  [9] canonicalize!
    @ ~/.julia/packages/cuTile/XjsGS/src/compiler/transform/canonicalize.jl:6 [inlined]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions