Python bindings gpu support.
I'm working on building the python bindings on windows, and most the correctness and tutorials seem to run, the only issue i have is lesson 12 using the gpu has black image coming back from the GPU (for both opencl and cuda). Before I sink too much time into this, can anyone provide a sanity check and validate this tutorial actually currently works on linux/mac?
Confirmed that it's broken on linux, but somehow this doesn't mark the test as failed, so we didn't notice. The C++ version of the test passes. Adding input.set_host_dirty() in main seems to fix it for me. The Buffer constructor must somehow not be setting it.
Allright! can confirm calling input.set_host_dirty() fixes it, thanks for the sanity check!
The fact that there is a difference between Python and C++ here indicates there's something amiss.
Also noticed the same thing.
Though the suggested fix also does not work for me - with input.set_host_dirty()
AssertionError: Mismatch between output (0) and reference output (255) at 463, 0, 0
Without set_host_dirty:
AssertionError: Mismatch between output (0) and reference output (3) at 1, 0, 0