Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(hlapi): rework CompressedCiphertextListBuilder
The hlapi builder target device was selected depending on features (gpu enabled ? gpu : cpu), but if at `build` time the thread_local key did not match the expected device, an error would be returned. This is a bit too limiting for users that might want to do some processing on GPU and compression on CPU. So the Builder is changed to delay, the selection of device used to compress when `build` is called. This new design is more flexible for end users, at the cost of a bit more memory copies * There should be no API breaking change * There is no serialization breaking change as only the builder (which is not serializable) has been changed
- Loading branch information