Open DonIsaac opened 9 months ago
Note: I've commented out todo implementations for all BinaryKernel
and UnaryKernel
traits, and I've commented out the top-level exports for Webgpu
while I write code. This is so I can build it without getting 100+ compilation errors; I'll re-add these later as needed.
What This PR Does
Starts a general binary op implementation for
Webgpu
. This code is based on an (old, in-progress WGPU branch)[https://github.com/DonIsaac/dfdx/tree/don/feat/wgpu2] I made a while ago.I've (mostly) got
forward
down, but I think I need some help withbackward
Todo
BinaryOpWebgpuKernel.forward()
UnaryOpWebgpuKernel.forward()
(may require push constants)to_dtype
std
)f16
viashader-f16
featureOther Notes
COPY_SRC
andCOPY_DST
, but this leaves them un-mappable without an intermediateMAP_READ
buffer.