Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
69490292
Commit
69490292
authored
Nov 13, 2015
by
Davis King
Browse files
removed print statements
parent
adc791ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
dlib/dnn/gpu_data.cpp
dlib/dnn/gpu_data.cpp
+0
-3
No files found.
dlib/dnn/gpu_data.cpp
View file @
69490292
...
@@ -22,7 +22,6 @@ namespace dlib
...
@@ -22,7 +22,6 @@ namespace dlib
{
{
if
(
have_active_transfer
)
if
(
have_active_transfer
)
{
{
std
::
cout
<<
"wait for cudaStreamSynchronize()"
<<
std
::
endl
;
CHECK_CUDA
(
cudaStreamSynchronize
((
cudaStream_t
)
cuda_stream
.
get
()));
CHECK_CUDA
(
cudaStreamSynchronize
((
cudaStream_t
)
cuda_stream
.
get
()));
have_active_transfer
=
false
;
have_active_transfer
=
false
;
// Check for errors. These calls to cudaGetLastError() are what help us find
// Check for errors. These calls to cudaGetLastError() are what help us find
...
@@ -46,7 +45,6 @@ namespace dlib
...
@@ -46,7 +45,6 @@ namespace dlib
if
(
!
host_current
)
if
(
!
host_current
)
{
{
wait_for_transfer_to_finish
();
wait_for_transfer_to_finish
();
std
::
cout
<<
"cudaMemcpy to host"
<<
std
::
endl
;
CHECK_CUDA
(
cudaMemcpy
(
data_host
.
get
(),
data_device
.
get
(),
data_size
*
sizeof
(
float
),
cudaMemcpyDeviceToHost
));
CHECK_CUDA
(
cudaMemcpy
(
data_host
.
get
(),
data_device
.
get
(),
data_size
*
sizeof
(
float
),
cudaMemcpyDeviceToHost
));
host_current
=
true
;
host_current
=
true
;
// Check for errors. These calls to cudaGetLastError() are what help us find
// Check for errors. These calls to cudaGetLastError() are what help us find
...
@@ -60,7 +58,6 @@ namespace dlib
...
@@ -60,7 +58,6 @@ namespace dlib
{
{
if
(
!
device_current
)
if
(
!
device_current
)
{
{
std
::
cout
<<
"cudaMemcpyAsync to device"
<<
std
::
endl
;
CHECK_CUDA
(
cudaMemcpyAsync
(
data_device
.
get
(),
data_host
.
get
(),
data_size
*
sizeof
(
float
),
cudaMemcpyHostToDevice
,
(
cudaStream_t
)
cuda_stream
.
get
()));
CHECK_CUDA
(
cudaMemcpyAsync
(
data_device
.
get
(),
data_host
.
get
(),
data_size
*
sizeof
(
float
),
cudaMemcpyHostToDevice
,
(
cudaStream_t
)
cuda_stream
.
get
()));
have_active_transfer
=
true
;
have_active_transfer
=
true
;
device_current
=
true
;
device_current
=
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment