| 115 | template <typename T> |
| 116 | template <typename U> |
| 117 | inline cudaError_t DynamicArray<T>::copyFrom( const U* data, size_t size ) |
| 118 | { |
| 119 | static_assert ( sizeof( T ) == sizeof( U ) ); |
| 120 | if ( size_ < size ) |
| 121 | size = size_; |
| 122 | return CUDA_LOGE( cudaMemcpy( data_, data, size * sizeof( T ), cudaMemcpyHostToDevice ) ); |
| 123 | } |
| 124 | |
| 125 | template <typename T> |
| 126 | template <typename U> |
no outgoing calls
no test coverage detected