Artem M. Chirkin
Artem M. Chirkin
A few days ago @jrhemstad mentioned you'd welcome this wrapper. I tried to follow `cuda_stream` approach as close as possible, so some copy-pasting is there.
Thanks, @jrhemstad ! I wouldn't mind moving the `wait` and `record`, but then we need to make a choice: shall I add another `event_view`, or better just make duplicate methods...
There would also be some inconvenience in having to explicitly convert stream types to the `stream_view` to access its member functions if we move `wait` and `record` there, right? Still...
Done. Sorry I don't have the rights to set github labels here.
Also note, I added a function that doesn't strictly belong to the PR (I hope it's ok). I need it in cuml to decide if I need one worker stream...
Ok, though I hoped to push it in 21.10, cause I need events in https://github.com/rapidsai/cuml/pull/4201 .
Hi @helq ! Indeed. [Here is a small example](https://github.com/achirkin/easytensor/blob/master/easytensor/bench/misc.hs#L22). If you have some dimensions unknown, you can change `Nat` indexing to [`XNat`](http://hackage.haskell.org/package/dimensions-1.0.0.0/docs/Numeric-Dim.html#t:XNat) that allows you to say either you know...
I just have stumbled again on this problem. Another workaround for multiple GHC versions is to add these haddock options via [custom-setup `Setup.hs`](https://github.com/achirkin/easytensor/blob/4cc9a381ad09c7a013a121cc02231f0ac2de649d/dimensions/Setup.hs). Useful for building a library, since it...
The latter problem is due to missing header files or vulkan loader static files. You may try either to specify `--extra-lib-dirs=` to match the folder containing `vulkan-1.lib` on your machine...
Hmm, that might work. There is a problem that some structs are rather big and have many optional fields (which default to `0` or `null`). Also, often one would be...