This project is mirrored from https://gitlab.kitware.com/vtk/vtk-m.git.
Pull mirroring updated .
- 03 Feb, 2023 3 commits
-
-
Moreland, Ken authored
29ecbbb0 Map fields of any type in MIRFilter Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Li-Ta Lo <ollie@lanl.gov> Merge-request: !2977
-
Moreland, Ken authored
Use the ability to extract array components to handle any array in the map field.
-
Moreland, Ken authored
a478081d Clean up point mapping in CleanGrid Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Li-Ta Lo <ollie@lanl.gov> Merge-request: !2976
-
- 02 Feb, 2023 3 commits
-
-
Moreland, Ken authored
Use the `MapFieldPermutation` function when mapping point coordinates for points that are removed. (This function was already being used for the rest of the fields.) Also remove some unneeded code in the `CleanGrid` worklets.
-
Moreland, Ken authored
719d347f Update contour filter's field map to work on any field type Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Sujin Philip <sujin.philip@kitware.com> Merge-request: !2973
-
Zhe Wang authored
58acf3a4 add statistics filter Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !2957
-
- 01 Feb, 2023 1 commit
-
-
Moreland, Ken authored
447b8e71 Fill input to test of array extract from stride array 726bb091 Fix floating point exception in Kokkos sort 89245c3d Remove NUMA regions option 4912d1d0 Update --kokkos-threads to --kokkos-num-threads 9f77e111 Do not test if Kokkos device id does not match fa30d677 Update the minimum Kokkos required to 3.7 3a96e942 ci: update Kokkos docker images 67457241 Use Kokkos 3.7.1 in the CI builds Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Vicente Bolea <vicente.bolea@kitware.com> Merge-request: !2967
-
- 31 Jan, 2023 3 commits
-
-
Sujin Philip authored
-
Sujin Philip authored
c7a2a7b3 Refactor RuntimeDeviceTracker Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !2971
-
Sujin Philip authored
c7a2a7b3 Refactor RuntimeDeviceTracker Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !2971
-
- 30 Jan, 2023 12 commits
-
-
Moreland, Ken authored
Use the extract component functionality to get data from any type of array. This prevents converting fields to `vtkm::DefaultFloat` and supports any size `Vec` in the component.
-
Moreland, Ken authored
I was getting some floating point exceptions which may have come from reading garbage as floating point values.
-
Moreland, Ken authored
THe current version of sort in Kokkos does not check whether the array is of size 0, and that messes up its bin calculation. If the size of the array is less than 2, skip the sort since the order cannot change.
-
Moreland, Ken authored
This configuration option was only added because Kokkos has such a flag. But this flag is now deprecated in Kokkos and has no effect, so remove it from VTK-m.
-
Moreland, Ken authored
The former has been deprecated for the latter.
-
Moreland, Ken authored
There was a regression test to check for an exception if the requested Kokkos device id did not match the `KOKKOS_DEVICE_ID` environment variable. New versions of Kokkos do not throw an exception (they just pick one over the other), so remove this check.
-
Moreland, Ken authored
This was suggested by a developer on the Kokkos team.
-
-
Moreland, Ken authored
This was recommended to us by the Kokkos team.
-
Moreland, Ken authored
4e9c63b6 Enable floating point exceptions on apple Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !2970
-
Sujin Philip authored
Simplifies the code by using modern C++ features
-
Jay authored
-
- 27 Jan, 2023 1 commit
-
-
Moreland, Ken authored
Clang for apple does not support `fpenableexcept`, so make a special way to turn them on to help developers debug code. This code is based on the suggestions at: https://stackoverflow.com/questions/37819235/how-do-you- enable-floating-point-exceptions-for-clang-in-os-x https://stackoverflow.com/questions/71821666/trapping-floating-point-exceptions-and-signal-handling-on-apple-silicon This code is actually disabled because it does not work on all known platforms (most notably one of the dashboard machines). However, I would like to keep the code there to assist debugging.
-
- 26 Jan, 2023 3 commits
-
-
Zhe Wang authored
90e1e82b add composite filter Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !2962
-
Bolea Sanchez, Vicente Adolfo authored
9b268bce perftest: reorder fixtures; fetch vtk/vtk-m objects Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Kenneth Moreland <morelandkd@ornl.gov> Merge-request: !2968
-
Jay authored
-
- 25 Jan, 2023 2 commits
-
-
Moreland, Ken authored
1889447d Update clip filter's field map to work on any field type Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Sujin Philip <sujin.philip@kitware.com> Merge-request: !2969
-
Bolea Sanchez, Vicente Adolfo authored
-
- 24 Jan, 2023 2 commits
-
-
Moreland, Ken authored
The previous implementation of the map field in the clip filters (`ClipWithField` and `ClipWithImplicitFunction`) checked for common field types and interpolated those. If the field value type did not match, it would either convert the field to floats (which is at odds with what VTK does) or fail outright if the `Vec` length is not supported. The map field function for clip has been changed to support all possible types. It does this by using the extract component functionality to get data from any type of array.
-
Moreland, Ken authored
eda6dc39 Support using arrays with dynamic Vec-likes as output arrays Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Li-Ta Lo <ollie@lanl.gov> Merge-request: !2963
-
- 23 Jan, 2023 2 commits
-
-
Moreland, Ken authored
When you use an `ArrayHandle` as an output array in a worklet (for example, as a `FieldOut`), the fetch operation does not read values from the array during the `Load`. Instead, it just constructs a new object. This makes sense as an output array is expected to have garbage in it anyway. This is a problem for some special arrays that contain `Vec`-like objects that are sized dynamically. For example, if you use an `ArrayHandleGroupVecVariable`, each entry is a dynamically sized `Vec`. The array is referenced by creating a special version of `Vec` that holds a reference to the array portal and an index. Components are retrieved and set by accessing the memory in the array portal. This allows us to have a dynamically sized `Vec` in the execution environment without having to allocate within the worklet. The problem comes when we want to use one of these arrays with `Vec`-like objects for an output. The typical fetch fails because you cannot construct one of these `Vec`-like objects without an array portal to bind it to. In these cases, we need the fetch to create the `Vec`-like object by reading it from the array. Even though the data will be garbage, you get the necessary buffer into the array (and nothing more). Previously, the problem was fixed by creating partial specializations of the `Fetch` for these `ArrayHandle`s. This worked OK as long as you were using the array directly. However, the approach failed if the `ArrayHandle` was wrapped in another `ArrayHandle` (for example, if an `ArrayHandleView` was applied to an `ArrayHandleGroupVecVariable`). To get around this problem and simplify things, the basic `Fetch` for direct output arrays is changed to handle all cases where the values in the `ArrayHandle` cannot be directly constructed. A compile-time check of the array's value type is checked with `std::is_default_constructible`. If it can be constructed, then the array is not accessed. If it cannot be constructed, then it grabs a value out of the array.
-
Moreland, Ken authored
23469cab Add ability to resize ArrayHandleRecombineVec 2061e95e Add ability to resize ArrayHandleStride Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Li-Ta Lo <ollie@lanl.gov> Merge-request: !2964
-
- 20 Jan, 2023 3 commits
-
-
Bolea Sanchez, Vicente Adolfo authored
a6f2a93c testing: remove vtkm/cont/testing relative path Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Kenneth Moreland <morelandkd@ornl.gov> Merge-request: !2965
-
Bolea Sanchez, Vicente Adolfo authored
-
Bolea Sanchez, Vicente Adolfo authored
a6f2a93c testing: remove vtkm/cont/testing relative path Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Kenneth Moreland <morelandkd@ornl.gov> Merge-request: !2965
-
- 19 Jan, 2023 2 commits
-
-
Sujin Philip authored
5d048134 Fix compile issues when using cuda 12 Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !2960
-
Bolea Sanchez, Vicente Adolfo authored
-
- 18 Jan, 2023 3 commits
-
-
Moreland, Ken authored
This feature enables the ability to anonomously create an array (such as with `UnknownArrayHandle::NewInstance()`) and then use that as an output array.
-
Moreland, Ken authored
This feature enables the ability to anonomously create an array (such as with `UnknownArrayHandle::NewInstance()`) and then use that as an output array. Although resizing `ArrayHandleStride` is a little wonky, it allows worklets to resize them after creation rather than having to know what size to make and allocating the array.
-
Sujin Philip authored
CUDA 12 adds a `cub::Swap` function that creates ambiguity with `vtkm::Swap`. This happens when a function from the `cub` namespace is called with an object of a class defined in the `vtkm` namespace as an argument. If that function has an unqualified call to `Swap`, it results in ADL being used, causing the templated functions `cub::Swap` and `vtkm::Swap` to conflict.
-