The current design overloads the synchronization function, hipCompressSynchronize so that it takes on two responsibilities:
- Synchronize the auxiliary stream
- D2H Copy the compressed size and compute the compression ratio and return these values to the user.
A cleaner design would be to separate these two tasks into two functions:
hipCompressSynchronize(...) // Sync only
hipCompressGetCompressedSize(...) // Get data after sync
The current design overloads the synchronization function,
hipCompressSynchronizeso that it takes on two responsibilities:A cleaner design would be to separate these two tasks into two functions:
hipCompressSynchronize(...)// Sync onlyhipCompressGetCompressedSize(...)// Get data after sync