Commit Graph

9735 Commits

Author SHA1 Message Date
Abhishek Yenpure
9b82e75ac0 Fixing the type of reduce accumulator 2022-01-29 09:23:58 +05:30
Vicente Adolfo Bolea Sanchez
bac7559926 1.7.1 is our 11th official release of VTK-m.
The major changes to VTK-m from 1.7.0 can be found in:
  docs/changelog/1.7.1/release-notes.md' version.txt
v1.7.1
2022-01-28 18:18:04 -05:00
Vicente Adolfo Bolea Sanchez
6463a8c0b7 Add release notes for 1.7.1 2022-01-28 18:16:04 -05:00
Li-Ta Lo
4fa5f2f29c Merge topic 'new_contour'
af87308b9 better type safety, coding style conformation
16b8ed769 Merge branch 'new_contour' of gitlab.kitware.com:ollielo/vtk-m into new_contour
d8fdda5c3 use the new CreateResult
3a9e9f1ac Merge branch 'master' into new_contour
83c6032c9 minor update
1b028ab61 delete unused worklet unit test
175f9010a Merge branch 'master' into new_contour
5e991e4bf Merge branch 'master' into new_contour
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !2669
2022-01-28 15:13:34 -05:00
Li-Ta Lo
af87308b91 better type safety, coding style conformation 2022-01-28 12:20:01 -07:00
Vicente Bolea
ce17a3bf77 Merge topic 'cuda-multiple-archs' into release
0bbba6c0c CMAKE: CUDA ampere generate sm_80/86

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !2688
2022-01-28 12:55:33 -05:00
Vicente Bolea
d11c6f8ea9 Merge branch 'release' 2022-01-28 12:55:33 -05:00
Vicente Bolea
2bdce6c32d Merge topic 'cuda-multiple-archs'
0bbba6c0c CMAKE: CUDA ampere generate sm_80/86

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !2688
2022-01-28 12:55:33 -05:00
Vicente Bolea
415440b30b Merge topic 'backport-fixes' into release
3edcd554d CI: set GBench to latest tag
770c76f84 HIP: remove bogus kokkoscore props
f793258d0 Add instructions on how to commit Git-LFS files

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !2689
2022-01-28 12:46:51 -05:00
Vicente Bolea
f71fdf41c2 Merge branch 'release' into master 2022-01-28 12:46:51 -05:00
Vicente Bolea
1f22a2350b Merge topic 'cell-centered-advection' into release
91631760a Missing changes for cell centered velocity fields

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2663
2022-01-28 12:45:08 -05:00
Vicente Bolea
a756071838 Merge branch 'release' 2022-01-28 12:45:08 -05:00
Vicente Bolea
9334986821 Merge topic 'cell-centered-advection'
91631760a Missing changes for cell centered velocity fields

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2663
2022-01-28 12:45:08 -05:00
Li-Ta Lo
16b8ed7690 Merge branch 'new_contour' of gitlab.kitware.com:ollielo/vtk-m into new_contour 2022-01-28 08:54:57 -07:00
Li-Ta Lo
d8fdda5c37 use the new CreateResult 2022-01-28 08:48:26 -07:00
Li-Ta Lo
3a9e9f1ac1 Merge branch 'master' into new_contour 2022-01-28 07:34:35 -07:00
Abhishek Yenpure
3b95d06140 Removing debug print statements 2022-01-28 18:52:09 +05:30
Abhishek Yenpure
d8af004e8b Removing undefined method error 2022-01-28 17:48:38 +05:30
Vicente Adolfo Bolea Sanchez
3edcd554dd CI: set GBench to latest tag
Previously it was set to an specific commit known to work with VTK-m.
2022-01-27 20:42:26 -05:00
Vicente Adolfo Bolea Sanchez
770c76f842 HIP: remove bogus kokkoscore props 2022-01-27 20:41:56 -05:00
Kenneth Moreland
f793258d04 Add instructions on how to commit Git-LFS files 2022-01-27 20:41:42 -05:00
Abhishek Yenpure
91631760a7 Missing changes for cell centered velocity fields 2022-01-27 20:07:53 -05:00
Vicente Adolfo Bolea Sanchez
0bbba6c0c2 CMAKE: CUDA ampere generate sm_80/86 2022-01-27 20:03:54 -05:00
Kenneth Moreland
1007585c3d Merge topic 'create-result-does-field-map'
5bd60a0b7 Add `CreateResult` to `NewFilter` and absorb field mapping

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Li-Ta Lo <ollie@lanl.gov>
Merge-request: !2686
2022-01-27 16:24:15 -05:00
Li-Ta Lo
83c6032c94 minor update 2022-01-27 13:44:01 -07:00
Kenneth Moreland
5bd60a0b77 Add CreateResult to NewFilter and absorb field mapping
The original version of `Filter` classes had a helper header file named
`CreateResult.h` that had several forms of a `CreateResult` function that
helped correctly create the `DataSet` to be returned from a filter's
`DoExecute`. With the move to the `NewFilter` structure, these functions
did not line up very well with how `DataSet`s should actually be created.

A replacement for these functions have been added as protected helper
methods to `NewFilter` and `NewFilterField`. In addition to moving them
into the filter themselves, the behavior of `CreateResult` has been merged
with the map field to output functionality. The original implementation of
`Filter` did this mapping internally in a different step. The first design
of `NewFilter` required the filter implementer to call a
`MapFieldsOntoOutput` themselves. This new implementation wraps the
functionality of `CreateResult` and `MapFieldsOntoOutput` together so that
the `DataSet` will be created correctly with a single call to
`CreateResult`. This makes it easier to correctly create the output.
2022-01-27 13:27:39 -07:00
Abhishek Yenpure
1bee90c597 Adding VTKM_EXEC tag to test worklets 2022-01-27 19:11:36 +05:30
Abhishek Yenpure
9b1aebe2d6 Adding debug updates 2022-01-26 22:44:26 -08:00
Li-Ta Lo
1b028ab612 delete unused worklet unit test 2022-01-26 13:51:21 -07:00
Li-Ta Lo
175f9010a5 Merge branch 'master' into new_contour 2022-01-26 13:43:46 -07:00
Manish Mathai
5a0f26bc52 Merge topic 'volume-renderer-oob-fix' into release
36822756b Fix out of bounds cell location searchs in VolumeRendererStructured

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2685
2022-01-26 14:13:28 -05:00
Manish Mathai
4e047eae64 Merge branch 'release' 2022-01-26 14:13:28 -05:00
Manish Mathai
ae17410f2f Merge topic 'volume-renderer-oob-fix'
36822756b Fix out of bounds cell location searchs in VolumeRendererStructured

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2685
2022-01-26 14:13:28 -05:00
Li-Ta Lo
a876af59fc Merge topic 'new_connected_components'
027036700 use CastAndCallScalarField
2540fb1b2 Merge branch 'master' into new_connected_components
578f980ac Merge branch 'master' into new_connected_components
ee1b752e8 Merge branch 'master' into new_connected_components
de66d93d0 Add ALL_BACKENDS
77650a9ca migrate connected components filters

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Li-Ta Lo <ollie@lanl.gov>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !2675
2022-01-26 13:33:40 -05:00
Manish Mathai
36822756b9 Fix out of bounds cell location searchs in VolumeRendererStructured
`RectilinearLocator::LocateCell` and `UniformLocator::LocateCell` assume
that the point in inside the bounds of the cell set, but may return a
cell location that does not exist, i.e., cell location that is outside
of the bounds of the cell set due to errors from floating point
operations.

This fix, given the assumption above, bounds the calculated cell
location to within the cellset by capping the indices to within the
limits.
2022-01-26 09:27:05 -08:00
Vicente Bolea
bb896e13cf Merge topic 'set-gbench-lastest-tag'
fc1514de7 CI: set GBench to latest tag

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !2671
2022-01-26 11:30:56 -05:00
Vicente Adolfo Bolea Sanchez
fc1514de7e CI: set GBench to latest tag
Previously it was set to an specific commit known to work with VTK-m.
2022-01-26 00:21:15 +00:00
Li-Ta Lo
0270367004 use CastAndCallScalarField 2022-01-25 12:18:15 -07:00
Kenneth Moreland
ca032801a8 Allow ArrayExtractComponent to work with Vec-like value types
Before, `ArrayExtractComponent` only worked with `Vec` types. Anything
that was not specifically a `Vec` was assumed to be a basic component
even if it had `VecTraits`. This was changed to extract components out
of anything that has `VecTraits`. The assumption is that all components
of the Vec-like object are packed tightly in the object.

This allows `ArrayExtractComponent` to work with objects like
`vtkm::Range` and `vtkm::Bounds` and extract their parts as expected.
2022-01-25 10:55:41 -07:00
Kenneth Moreland
f48b4b761e Add implementation of VecTraits for Range and Bounds
Added specializations of `vtkm::VecTraits` for the simple structures of
`vtkm::Range` and `vtkm::Bounds`. This expands the support for using
these structures in things like `ArrayHandle` and `UnknownArrayHandle`.
2022-01-25 10:55:35 -07:00
Li-Ta Lo
2540fb1b27 Merge branch 'master' into new_connected_components 2022-01-25 10:15:57 -07:00
Kenneth Moreland
ab86763c74 Merge topic 'cast-and-call-field'
32507a510 Update CrossProduct filter to new filter base class
72065024a Add CastAndCallScalarField and CastAndCallVecField to NewFilterField

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Li-Ta Lo <ollie@lanl.gov>
Merge-request: !2681
2022-01-25 10:28:55 -05:00
Kenneth Moreland
ff43a2efa5 Merge topic 'universal-dot-product-filter'
0c47645ba Remove DotProduct from worklet directory
d76929a78 Allow dot product to work with any field type

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Li-Ta Lo <ollie@lanl.gov>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !2682
2022-01-25 10:11:05 -05:00
Kenneth Moreland
32507a5109 Update CrossProduct filter to new filter base class
This also provides a good opportunity to demonstrate and test the
CastAndCallVecField method of the new filter classes.
2022-01-25 07:23:48 -07:00
Kenneth Moreland
9b2955e9f8 Merge topic 'arraycopy-precompiled'
170a10e4b Fix slow ArrayCopy calls
63c45efc0 GenerateIds filter does not require device compiler
245fc3a98 Compile IO library without device compiler
9b017f4f9 Correct inefficient extract component for decorating arrays
392d78135 Add ArrayCopy specialization for Counting and Permutation array
f3c82bfea Add ArrayCopy fast paths
00609b0af Make ArrayCopy not depend on a device compiler
aefc75332 Implement permutation mapping in vtkm_cont
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Li-Ta Lo <ollie@lanl.gov>
Merge-request: !2678
2022-01-24 17:55:39 -05:00
Kenneth Moreland
0c47645bad Remove DotProduct from worklet directory
All worklets are now encapsulated in the DotProduct filter.
2022-01-24 15:05:40 -07:00
Kenneth Moreland
d76929a788 Allow dot product to work with any field type
The previous implementation of the `DotProduct` filter only worked with
arrays containing "common" types. The filter has been updated to use the
extract component feature of `UnknownArrayHandle` to support computing
the dot product of arrays of almost any type.
2022-01-24 15:02:20 -07:00
Vicente Bolea
a4a38835e8 Merge topic 'kokkos-fix'
cc6502498 HIP: remove bogus kokkoscore props

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Sujin Philip <sujin.philip@kitware.com>
Merge-request: !2679
2022-01-24 16:19:26 -05:00
Kenneth Moreland
72065024aa Add CastAndCallScalarField and CastAndCallVecField to NewFilterField
These methods somewhat simplify doing the `CastAndCall` from an
`UnknownArrayhandle` that comes from an input field.

The motivation for this change is for the User's guide, where I am
having a chicken-and-egg problem of wanting to describe how to make a
simple filter implementation without having to go into details about
`UnknownArrayHandle`.
2022-01-24 14:18:53 -07:00
Kenneth Moreland
170a10e4b4 Fix slow ArrayCopy calls
The `ArrayCopy` method has been changed to be precompiled. It handles
most standard array types. But there are some special `ArrayHandle`
types that are not correctly handled, and these go to a slow fallback.
Find places in the code that use that fallback and fix them.

There are also some instances of replacing an `ArrayHandleCounting` with
an `ArrayHandleIndex`. This change is probably not strictly necessary to
make the `ArrayCopy` faster, but when it can be used `ArrayHandleIndex`
is generally better.
2022-01-24 14:15:45 -07:00