This project is mirrored from https://gitlab.kitware.com/vtk/vtk-m.git.
Pull mirroring updated .
- 30 Mar, 2021 5 commits
-
-
Kenneth Moreland authored
-
Kenneth Moreland authored
It always worked to trivially copy these classes, but the compiler did not think so because copy constructors were defined. Change these constructors to be default so that the compler can properly check triviality.
-
Kenneth Moreland authored
For some reason some versions of the CUDA compiler would return true for `is_trivially_copyable` on a `VariantUnion` even when the types of the union caused the copy constructor to get deleted. Solve the problem by using `AllTriviallyCopyable` instead of directly caling `is_trivially_copyable` on the union.
-
Kenneth Moreland authored
Nvcc was having troubles resolving the return type of the overloaded function to get a value out of a `VariantUnion`. Replace the implementation with a class with specializations. This is more verbose, but easier on the compiler.
-
Kenneth Moreland authored
Create a `VaraintUnion` that is an actual C++ `union` to store the data in a `Variant`. You may be asking yourself, why not just use an `std::aligned_union` rather than a real union type? That was our first implementation, but the problem is that the `std::aligned_union` reference needs to be recast to the actual type. Typically you would do that with `reinterpret_cast`. However, doing that leads to undefined behavior. The C++ compiler assumes that 2 pointers of different types point to different memory (even if it is clear that they are set to the same address). That means optimizers can remove code because it "knows" that data in one type cannot affect data in another type. To safely change the type of an `std::aligned_union`, you really have to do an `std::memcpy`. This is problematic for types that cannot be trivially copied. Another problem is that we found that device compilers do not optimize the memcpy as well as most CPU compilers. Likely, memcpy is used much less frequently on GPU devices.
-
- 29 Mar, 2021 2 commits
-
-
Kenneth Moreland authored
eadaf06f Set what string in Error::SetMessage Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Nickolas Davis <nadavi@sandia.gov> Merge-request: !2451
-
Kenneth Moreland authored
`vtkm::cont::Error` inherits from `std::exception`. As such, it has a special `what` string that reports an error message in a standard way. This is particularly useful when a `vtkm::cont::Error` exception remains uncaught because the system will print the `what` string before crashing. Unfortunately, the `what` string was only being set in the `Error` constructor that took a message. That is a problem for subclasses like `ErrorCuda` that used the default constructor and then used `SetMessage`. The `what` string did not get set in this case. Change the behavior to capture the stack trace in the default constructor and update the `what` string if a subclass uses `SetMessage`.
-
- 26 Mar, 2021 1 commit
-
-
Bolea Sanchez, Vicente Adolfo authored
486c5de9 TESTING: Set C++14 as minimum standard for install test Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Li-Ta Lo <ollie@lanl.gov> Merge-request: !2447
-
- 25 Mar, 2021 5 commits
-
-
Bolea Sanchez, Vicente Adolfo authored
Signed-off-by:
Vicente Adolfo Bolea Sanchez <vicente.bolea@kitware.com>
-
Yenpure, Abhishek authored
b316cf58 Fix compiler warnings 5f7287bc Removing virtuals from particle advection 2897b7a1 Fix missing include 4c781374 Removing virtuals v1 Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Kenneth Moreland <kmorel@acm.org> Merge-request: !2445
-
Kenneth Moreland authored
d1dba170 Do not use volatile when calling CUDA atomicCAS Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !2448
-
Kenneth Moreland authored
Although it makes sense to assume a pointer is `volatile` when doing an atomic operation, the arguments to the `atomicCAS` overloads take regular pointers. The overload resolution can fail if you use the `volatile` keyword.
-
Nickolas Davis authored
268e882c raise allowed num of error pixels a bit 78e3cbb5 Move regression test images into subdirs, implement io library support d2545316 Implement additional wireframer rendering regression tests Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Kenneth Moreland <kmorel@acm.org> Merge-request: !2442
-
- 24 Mar, 2021 4 commits
-
-
nadavi authored
-
nadavi authored
-
Yenpure, Abhishek authored
-
Yenpure, Abhishek authored
-- Removing virtuals from CellInterpolationHelpers
-
- 23 Mar, 2021 5 commits
-
-
Li-Ta Lo authored
197a9b3f fixed an oversight on the correct way to get CoordinateSystem. Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Kenneth Moreland <kmorel@acm.org> Merge-request: !2446
-
Li-Ta Lo authored
-
Li-Ta Lo authored
508b992c Merge branch 'particle_density_cic' of gitlab.kitware.com:ollielo/vtk-m into particle_density_cic 056ee726 fixed another copy paste bug f71a01b3 Fixed misunderstanding of tolerance. afe0a3e5 correct uncareful search and replace error b3c6ea39 install ParticleDensityBase.h 7b8cc401 public CUDA 6796b1a4 consolidate two particle density filters 4a22f54b Merge branch 'master' into particle_density_cic ... Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Kenneth Moreland <kmorel@acm.org> Merge-request: !2434
-
Yenpure, Abhishek authored
-
Yenpure, Abhishek authored
-- Remove virtuals from Integrators, Fields, Particles -- Remaining virtuals are in the CellInterpolationHelpers
-
- 20 Mar, 2021 1 commit
-
-
Larsen, Matthew authored
292ac2e4 clang is not is_trivially safe 8e588504 Merge branch 'identify_xl' of gitlab.kitware.com:mclarsen/vtk-m into identify_xl 9c539639 Merge remote-tracking branch 'upstream/master' into identify_xl 8d8228f3 correct type in comment 4d7a08c1 add xl compiler identification Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Kenneth Moreland <kmorel@acm.org> Merge-request: !2440
-
- 19 Mar, 2021 4 commits
- 18 Mar, 2021 4 commits
- 17 Mar, 2021 9 commits
-
-
Li-Ta Lo authored
-
Li-Ta Lo authored
7572699b fix compiler warning f5767708 did I miss more float? e8d3325d use FloatDefault for density 1222ce5f override PrepareForExecution 59897dc3 add a missing word 45dd24ad reinstitute the counting of particles d25eb7de more doc on the selection of scalar field and DivideByVolume ff73723f fine tune the doc on the filter ... Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Li-Ta Lo <ollie@lanl.gov> Acked-by:
Kenneth Moreland <kmorel@acm.org> Merge-request: !2441
-
Li-Ta Lo authored
-
Li-Ta Lo authored
-
Li-Ta Lo authored
-
Li-Ta Lo authored
-
Li-Ta Lo authored
-
Li-Ta Lo authored
-
Li-Ta Lo authored
-