On the way of making a package CUDA.jl
-compatible, the easiest way to get the Base.display
function working without causing trouble, would be to enable @CUDA.allowscalar
for just this function. So I thought to simply define it with this property and then hand over the task to the standard implementation. Yet then I did not know how to do this. Does anyone know how to call the shadowed function definition? I was hoping for something like
@CUDA.allowscalar display(arg::myType) = parentscope.display(arg)