You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To make the code compatible between CPU and GPU arrays, you can modify the line in the Metalhead.jl package where the pointer() function is used. Instead of directly calling pointer(col), you can create a helper function that handles both CPU and GPU arrays.
The demos from Metalhead.jl are broken if one tries to run them on the GPU (xref FluxML/Metalhead.jl#42), eg
The trace points to a an exception in NNlib:
Which in this example comes from the NNlib kernel trying to obtain a
pointer
from aCuArray
NNlib.jl/src/impl/conv_im2col.jl
Line 54 in 342928e
I believe to obtain the pointer of a CuArray one now does
But I have no idea how to rewrite the code to make this compatible between CPU and GPU arrays.
The text was updated successfully, but these errors were encountered: