Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
2a8a3af7
Commit
2a8a3af7
authored
May 30, 2017
by
Jens Korinth
Browse files
benchmark: remove throws in TransferSpeed
parent
6446089f
Changes
1
Hide whitespace changes
Inline
Side-by-side
arch/tests/TransferSpeed.hpp
View file @
2a8a3af7
...
...
@@ -71,11 +71,13 @@ private:
while
(
!
stop
)
{
if
(
tapasco
.
alloc
(
h
,
chunk_sz
,
TAPASCO_DEVICE_ALLOC_FLAGS_NONE
)
!=
TAPASCO_SUCCESS
)
throw
"allocation failed"
;
return
;
if
(
opmask
&
OP_COPYTO
&&
tapasco
.
copy_to
(
data
,
h
,
chunk_sz
,
TAPASCO_DEVICE_COPY_BLOCKING
)
!=
TAPASCO_SUCCESS
)
throw
"copy_to failed"
;
if
(
opmask
&
OP_COPYFROM
&&
tapasco
.
copy_from
(
h
,
data
,
chunk_sz
,
TAPASCO_DEVICE_COPY_BLOCKING
)
!=
TAPASCO_SUCCESS
)
throw
"copy_from failed"
;
return
;
if
(
opmask
&
OP_COPYFROM
&&
tapasco
.
copy_from
(
h
,
data
,
chunk_sz
,
TAPASCO_DEVICE_COPY_BLOCKING
)
!=
TAPASCO_SUCCESS
)
{
tapasco
.
free
(
h
,
TAPASCO_DEVICE_ALLOC_FLAGS_NONE
);
return
;
}
if
(
opmask
&
OP_COPYFROM
)
bytes
+=
chunk_sz
;
if
(
opmask
&
OP_COPYTO
)
...
...
Jens Korinth
@jk
mentioned in commit
a831b501
·
Jul 14, 2017
mentioned in commit
a831b501
mentioned in commit a831b5015df6bd8f8d23ddd334a3b1159392de92
Toggle commit list
Write
Preview
Supports
Markdown
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