mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
parent
6cda22710e
commit
917919569c
@ -230,13 +230,13 @@ int main(int argc, char* argv[])
|
||||
if (parser.hasOption("--numThreads"))
|
||||
{
|
||||
// Print warning about mismatch between the --numThreads and -d/--device opton
|
||||
VTKM_LOG_S_IF(vtkm::cont::LogLevel::Warn,
|
||||
device != vtkm::cont::DeviceAdapterTagTBB,
|
||||
VTKM_LOG_IF_S(vtkm::cont::LogLevel::Warn,
|
||||
device != vtkm::cont::DeviceAdapterTagTBB{},
|
||||
"WARNING: Mismatch between --numThreads and -d/--device option."
|
||||
"numThreads option requires the use of TBB as device. "
|
||||
"Ignoring the numThread option.");
|
||||
// Set the number of threads to be used for TBB
|
||||
if (device == vtkm::cont::DeviceAdapterTagTBB)
|
||||
if (device == vtkm::cont::DeviceAdapterTagTBB{})
|
||||
{
|
||||
numThreads = std::stoi(parser.getOption("--numThreads"));
|
||||
tbb::task_scheduler_init schedulerInit(numThreads);
|
||||
|
Loading…
Reference in New Issue
Block a user