Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
tapasco
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
52
Issues
52
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tapasco
tapasco
Commits
2a8a3af7
Commit
2a8a3af7
authored
May 30, 2017
by
Jens Korinth
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
benchmark: remove throws in TransferSpeed
parent
6446089f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
arch/tests/TransferSpeed.hpp
arch/tests/TransferSpeed.hpp
+6
-4
No files found.
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
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