MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / Memory

Method Memory

include/base/memory.h:51–54  ·  view source on GitHub ↗

* @brief Construct a memory space * @param _device_id GPU id, -1 for CPU * @param _count number of data * @param _stream CUDA stream */

Source from the content-addressed store, hash-verified

49 * @param _stream CUDA stream
50 */
51 Memory(int _device_id, Index _count = 0, cudaStream_t _stream = 0) :
52 device_id(_device_id), stream(_stream) {
53 resize(_count);
54 }
55
56 /** Shallow copy constructor */
57 Memory(const Memory &m) :

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected