Commit Graph

27 Commits

Author SHA1 Message Date
Louis Gombert
dcdda3065a Split flying edges and marching cells into separate filters
In order to compile the contour filter more efficiently, we split the contour filter into two separate translation units, corresponding to the new filters ContourFlyingEdges and ContourMarchingCells. The API for Contour filter is left totally unchanged, and tries to use flying edges if the dataset is structured and uniform.
All three contour filters inherit from the `AbstractContour` class, providing utility methods used in the implementations.
2023-05-04 15:20:20 +02:00
Kenneth Moreland
2ba051e604 Merge topic 'fix_insitu_arg_processing'
b4a6c2b54 Restore argument processing to InSitu benchmark

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3010
2023-03-09 17:52:44 -05:00
Mark Bolstad
b4a6c2b546 Restore argument processing to InSitu benchmark
GBench barfs on arguments such as --size without this patch that restores removing vtkm specific arguments from the command-line.
2023-03-09 08:40:00 -07:00
Kenneth Moreland
84bc723121 Make source parameters more clear
Originally, most of the sources used constructor parameters to set the
various options of the source. Although convenient, it was difficult to
keep track of what each parameter meant. To make the code more clear,
source parameters are now set with accessor functions (e.g.
`SetPointDimensions`). Although this makes code more verbose, it helps
prevent mistakes and makes the changes more resilient to future changes.
2022-12-01 08:13:58 -07:00
Kenneth Moreland
dafa01e9e9 Add benchmark arguments without leaking memory
The previous version of BenchmarkInSitu added arguments to its argv list
by using `strdup`. However, this method will leak memory, which is not
great. Replace this with a safer mechanism that will properly delete
memory at the end of the program (and satisfy any memory analyzers).

This also fixes a warning from MS about `strdup` being deprecated.
2022-10-26 15:16:15 -06:00
Mark Bolstad
613b4d44b7 Switch how InSitu benchmark iterates
Previous version had a hard-coded loop for updating the dataset. This change relenquishes control over to google benchmarks. Running it from the command-line will iterate each sub-benchmark a different number of iterations depending on how long each individual test takes. The number of iterations can be increased (but not controlled) by increasing the minimum time for each test. Alternatively, using the "repetitions" argument, you can control exactly how many times the benchamrks are run.

See the README for InSitu that throughly documents the arguments.
2022-09-12 09:24:47 -06:00
Dave Pugmire
e1fbfea305 Remove device compiler dependencies. 2022-08-01 08:00:46 -04:00
Dave Pugmire
6a200c62d9 Cuda fixes: device in headers.. 2022-07-29 13:39:38 -04:00
Dave Pugmire
767b6c0048 CUDA fixes move device copy into .cxx file. 2022-07-28 13:28:09 -04:00
Dave Pugmire
cdcc083d4c Fix benchmarks, windows builds? 2022-07-25 10:16:05 -04:00
Kenneth Moreland
08e6826017 Remove deprecated use of old unscoped enums in FieldSelection 2022-03-18 13:16:55 -06:00
Kenneth Moreland
f8f41e0ef5 Update use of field association enumerations
The enumerations in `vtkm::cont::Field::Association` were renamed in the
previous commit. The old names still exist, but are deprecated. Change
the rest of the code to use the new names.
2022-03-17 11:02:37 -06:00
Li-Ta Lo
f09032aaaf migrate geometry refinement filters 2022-02-11 20:52:43 -07:00
Li-Ta Lo
cdc4c29c5f renamve vector_calculus -> vector_analysis 2022-01-31 08:58:38 -07:00
Li-Ta Lo
59cc8cbaeb Migrate Gradient filter 2022-01-30 12:18:22 -07:00
Li-Ta Lo
1c9fe90806 update benchmark 2022-01-11 08:30:42 -07:00
Li-Ta Lo
3c700259a1 migrate Contour, ClipWithField and Slice 2022-01-10 20:39:43 -07:00
Manish Mathai
2ab1594ad1 Fix typo 2021-12-06 15:01:19 -08:00
Manish Mathai
5482bc5518 Fix formatting 2021-12-06 13:09:03 -08:00
Manish Mathai
a571f50dfc Cleanup unused code 2021-12-06 13:09:03 -08:00
Manish Mathai
48a820df07 Align mesh and volume rendering benchmarks timings 2021-12-06 13:09:03 -08:00
Manish Mathai
a2c3c80ce0 Make perlin generation as a vtkm::source::Source source
Making it a `vtkm::source::Source` makes it easier to use in other
benchmarks or tests.
2021-12-06 13:09:03 -08:00
Manish Mathai
2130ed5915 Refactor some static globals 2021-12-06 13:09:03 -08:00
Manish Mathai
1ceb137751 Add commandline arg for rendered image size
The image size defaults to `1024` if not specified.
2021-12-06 13:09:03 -08:00
Manish Mathai
2c5180fee9 Write benchmark rendered images to disk 2021-12-06 13:09:03 -08:00
Manish Mathai
d9487e01d4 Add copyright notice 2021-12-06 13:09:03 -08:00
Manish Mathai
035a7b39bc Add initial framework for in-situ benchmarks
This adapts existing benchmarks and creates new ones that simulate
in-situ simulations.
2021-12-06 13:09:03 -08:00