I now appreciate that one does not want to add indiscriminate synchronization calls, but I am still concerned that these functions might return garbage to python if they return before the GPU calculation is done. However, I cannot seem to get this to fail, so maybe there is no problem (it seems there is an underlying synchronize() call somewhere, maybe in the library?)