[Parallel_libs-commits] [PATCH] D24353: [SE] RegisteredHostMemory for async device copies

Jason Henline via Parallel_libs-commits parallel_libs-commits at lists.llvm.org
Thu Sep 8 12:19:48 PDT 2016


jhen added a comment.

For the record, in addition to using `std::enable_if` to get the `Stream` `thenCopy` functions to accept either mutable or immutable slice arguments, I also tried providing an implicit ctor to make immutable slices from mutable slices and designing the functions to take only immutable slices. Result: as usual, template type inference does not consider implicit type conversions, so the user would have to specify the `ElemT` type parameter in order to get that to work. That's the reason I stuck with `std::enable_if`.


https://reviews.llvm.org/D24353





More information about the Parallel_libs-commits mailing list