I was looking into GPUDirect Storage (GDS) and noticed that although GDS allows for direct reads and writes to block storage devices, there seems to be no instruction that ensures that data reaches the storage.
For example, in the CPU equivalent for storage management, Linux provides fsync() system call. And fsync() guarantees that all modifications to a file are flushed to the storage device and are retrievable after a crash. I noticed cuFile API does not have an analogous function, I was wondering whether such a guarantee is possible from GPU too.
If yes, what steps should be taken to achieve such a guarantee?