Closed mzguntalan closed 2 weeks ago
With the caveat that I didn't write futhark-ffi originally and don't remember all of how it works...
It looks like futhark-ffi does not actually expose the futhark_context_sync()
function from the C FFI, although it uses it internally when mapping Futhark arrays to Numpy arrays.
Thank you! I was able to find futhark_context_sync(self.ctx)
in the Futhark
python object.
First of all, thank you for the language/compiler. I enjoy coding in it!
In python, there is a timeit utility and it's pretty handy. I would like to know the fair way of measuring the run speed interacting through python.
I used the python-ffi compiled using cuda. I pass the futhark arrays instead of numpy (RAM) so that it doesn't measure the copying.
My question
Thank you!