Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nickolas Davis
VTK-m
Commits
671c1df5
Commit
671c1df5
authored
Apr 17, 2019
by
Robert Maynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Timer logs the proper device name when called with an invalid device
parent
d3d66a33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vtkm/cont/Timer.cxx
vtkm/cont/Timer.cxx
+3
-3
No files found.
vtkm/cont/Timer.cxx
View file @
671c1df5
...
...
@@ -328,11 +328,11 @@ vtkm::Float64 Timer::GetElapsedTime(vtkm::cont::DeviceAdapterId device) const
// If we have specified a specific device, make sure we can run on it.
auto
&
tracker
=
vtkm
::
cont
::
GetRuntimeDeviceTracker
();
if
(
(
deviceToTime
!=
vtkm
::
cont
::
DeviceAdapterTagAny
()
)
&&
!
tracker
.
CanRunOn
(
deviceToTime
))
if
(
deviceToTime
!=
vtkm
::
cont
::
DeviceAdapterTagAny
()
&&
!
tracker
.
CanRunOn
(
deviceToTime
))
{
VTKM_LOG_S
(
vtkm
::
cont
::
LogLevel
::
Error
,
"Device '"
<<
device
.
GetName
()
<<
"' can not run on current Device."
"
Thus timer is not usable"
);
"Device '"
<<
device
ToTime
.
GetName
()
<<
"' can not run on current Device."
"
Thus timer is not usable"
);
return
0.0
;
}
...
...
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