Commit f02f5ca8 authored by Robert Maynard's avatar Robert Maynard

All Benchmark executables now enable logging.

parent f3536e44
......@@ -555,8 +555,10 @@ struct BenchmarkArrayTransfer
}
} // end namespace vtkm::benchmarking
int main(int, char* [])
int main(int argc, char* argv[])
{
vtkm::cont::InitLogging(argc, argv);
using DeviceAdapter = VTKM_DEFAULT_DEVICE_ADAPTER_TAG;
using Benchmarks = vtkm::benchmarking::BenchmarkArrayTransfer<DeviceAdapter>;
bool result = Benchmarks::Run();
......
......@@ -561,8 +561,10 @@ public:
}
} // end namespace vtkm::benchmarking
int main(int, char* [])
int main(int argc, char* argv[])
{
vtkm::cont::InitLogging(argc, argv);
using Device = VTKM_DEFAULT_DEVICE_ADAPTER_TAG;
auto tracker = vtkm::cont::GetGlobalRuntimeDeviceTracker();
tracker.ForceDevice(Device{});
......
......@@ -140,6 +140,8 @@ void BenchmarkValueType()
int main(int argc, char* argv[])
{
vtkm::cont::InitLogging(argc, argv);
using namespace vtkm::benchmarking;
#if VTKM_DEVICE_ADAPTER == VTKM_DEVICE_ADAPTER_TBB
......
......@@ -1194,6 +1194,8 @@ public:
int main(int argc, char* argv[])
{
vtkm::cont::InitLogging(argc, argv);
#if VTKM_DEVICE_ADAPTER == VTKM_DEVICE_ADAPTER_TBB
int numThreads = tbb::task_scheduler_init::automatic;
#elif VTKM_DEVICE_ADAPTER == VTKM_DEVICE_ADAPTER_OPENMP
......
......@@ -920,6 +920,8 @@ public:
int main(int argc, char* argv[])
{
vtkm::cont::InitLogging(argc, argv);
int benchmarks = 0;
if (argc < 2)
{
......
......@@ -130,8 +130,10 @@ VTKM_MAKE_BENCHMARK(RayTracing, BenchRayTracing);
}
} // end namespace vtkm::benchmarking
int main(int, char* [])
int main(int argc, char* argv[])
{
vtkm::cont::InitLogging(argc, argv);
VTKM_RUN_BENCHMARK(RayTracing, vtkm::ListTagBase<vtkm::Float32>());
return 0;
}
......@@ -461,6 +461,8 @@ public:
int main(int argc, char* argv[])
{
vtkm::cont::InitLogging(argc, argv);
int benchmarks = 0;
if (argc < 2)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment