Closed mortvest closed 3 years ago
Well, the type of the input is wrong here (np.arange
produces 64-bit ints), but I don't know if that is the cause.
The problem is due to Futhark's asynchronous error detection (documented here). The entry point will return a succesfull error code, but it will actually fail in its outstanding operations, as can be detected by calling the sync function. Two options are open to us:
I thought option (2) would be very difficult to implement, but apparently not - at least not with the (slightly naive) solution of just syncing initially in from_futhark
.
This program has an out of bounds error. When compiled with the opencl backend, it causes a hang instead of raising an ValueError (works as intended with c backend)