Remove ability to pass a runtime device tracker to TryExecute
Since runtime device trackers are single instance per thread the ability to pass them around to other functions is unneeded.
Merge request reports
Activity
Errors:
- commit d38e61c1 is not allowed because the following files are not formatted according to the 'clang-format-3.8' check:
vtkm/cont/ArrayCopy.h
,vtkm/cont/ArrayRangeCompute.h
,vtkm/cont/ArrayRangeCompute.hxx
,vtkm/cont/TryExecute.h
. Post a comment ending in the lineDo: reformat
to rewrite the MR source branch automatically.
Please rewrite commits to fix the errors listed above (adding fixup commits will not resolve the errors) and force-push the branch again to update the merge request.
- commit d38e61c1 is not allowed because the following files are not formatted according to the 'clang-format-3.8' check:
added 1 commit
- 6fd60f63 - Remove ability to pass a runtime device tracker to TryExecute
@kmorel Do you have any objections to these changes? Specifically the new API for ArrayCopy and ArrayRangeCompute?
Looking at
ArrayCopy
I don't see the value of adding aDeviceAdapterId
. The run-time version already has some 'smarts' to select the device where the input array was last executed on.The more I think about it, I think what we should do is the following:
- Move the
ArrayCopy
smart logic over tovtkm::cont::Algorithm::Copy
- Make the run-time version of
ArrayCopy
a light wrapper aroundvtkm::cont::Algorithm::Copy
- Remove the device adapter templated version of
ArrayCopy
as it isn't used at all currently
@kmorel thoughts?
Edited by Robert Maynard- Move the
added 1 commit
- 26899aee - Remove ability to pass a runtime device tracker to TryExecute
Errors:
- commit 26899aee is not allowed because the following files are not formatted according to the 'clang-format-3.8' check:
vtkm/cont/Algorithm.h
,vtkm/cont/ArrayCopy.h
,vtkm/cont/ArrayRangeCompute.h
,vtkm/cont/ArrayRangeCompute.hxx
,vtkm/cont/TryExecute.h
. Post a comment ending in the lineDo: reformat
to rewrite the MR source branch automatically.
Please rewrite commits to fix the errors listed above (adding fixup commits will not resolve the errors) and force-push the branch again to update the merge request.
- commit 26899aee is not allowed because the following files are not formatted according to the 'clang-format-3.8' check:
@kmorel I have made the above changes to
ArrayCopy
andArrayRange
are you happy with all these changes now?