MCPcopy Create free account
hub / github.com/davisking/dlib / swap

Method swap

dlib/cuda/gpu_data.h:169–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167 size_t size() const { return data_size; }
168
169 void swap (gpu_data& item)
170 {
171 std::swap(data_size, item.data_size);
172 std::swap(host_current, item.host_current);
173 std::swap(device_current, item.device_current);
174 std::swap(have_active_transfer, item.have_active_transfer);
175 std::swap(data_host, item.data_host);
176 std::swap(data_device, item.data_device);
177 std::swap(cuda_stream, item.cuda_stream);
178 std::swap(the_device_id, item.the_device_id);
179 }
180
181 private:
182

Callers 15

swapFunction · 0.45
swapFunction · 0.45
swapFunction · 0.45
swapFunction · 0.45
swapMethod · 0.45
swapFunction · 0.45
newman_cluster_splitFunction · 0.45
swapFunction · 0.45
swapFunction · 0.45
swapFunction · 0.45
swapFunction · 0.45
swapFunction · 0.45

Calls 1

swapFunction · 0.50

Tested by

no test coverage detected