MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / copyFrom

Method copyFrom

source/MRCuda/MRCudaBasic.hpp:117–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115template <typename T>
116template <typename U>
117inline 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
125template <typename T>
126template <typename U>

Callers 3

findProjectionsMethod · 0.80
calcFromVectorMethod · 0.80
findProjectionsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected