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

Method device_write_only

dlib/cuda/gpu_data.h:128–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 }
127
128 float* device_write_only()
129 {
130#ifndef DLIB_USE_CUDA
131 DLIB_CASSERT(false, "CUDA NOT ENABLED");
132#endif
133 wait_for_transfer_to_finish();
134 host_current = false;
135 device_current = true;
136 device_in_use = true;
137 return data_device.get();
138 }
139
140 bool host_ready (
141 ) const { return host_current; }

Callers 1

memcpyFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected