| 56 | |
| 57 | template<typename Ty> |
| 58 | Ty* copyArrayToUSM(const avector<Ty>& in) { |
| 59 | Ty* out = (Ty*)alignedUSMMalloc(in.size()*sizeof(Ty)); |
| 60 | memcpy((void*)out,in.data(),in.size()*sizeof(Ty)); |
| 61 | return out; |
| 62 | } |
| 63 | |
| 64 | template<typename Ty> |
| 65 | Ty* copyArrayToUSM(const std::vector<Ty>& in) { |
no test coverage detected