Update --kokkos-threads to --kokkos-num-threads

The former has been deprecated for the latter.
This commit is contained in:
Kenneth Moreland 2023-01-25 09:29:05 -07:00
parent 9f77e11185
commit 4912d1d042
2 changed files with 4 additions and 4 deletions

@ -95,7 +95,7 @@ public:
return RuntimeDeviceConfigReturnCode::NOT_APPLIED;
}
this->KokkosArguments.insert(this->KokkosArguments.begin(),
"--kokkos-threads=" + std::to_string(value));
"--kokkos-num-threads=" + std::to_string(value));
return RuntimeDeviceConfigReturnCode::SUCCESS;
}
@ -131,7 +131,7 @@ public:
VTKM_CONT virtual RuntimeDeviceConfigReturnCode GetThreads(vtkm::Id& value) const override final
{
return GetArgFromList(this->KokkosArguments, "--kokkos-threads", value);
return GetArgFromList(this->KokkosArguments, "--kokkos-num-threads", value);
}
VTKM_CONT virtual RuntimeDeviceConfigReturnCode GetNumaRegions(
@ -149,7 +149,7 @@ public:
protected:
/// Store a copy of the current arguments when initializing the Kokkos subsystem later
/// Appends a copy of the argv values in the KokkosArguments vector: this assumes the
/// argv values contain kokkos command line arguments (like --kokkos-threads, etc)
/// argv values contain kokkos command line arguments (like --kokkos-num-threads, etc)
VTKM_CONT virtual void ParseExtraArguments(int& argc, char* argv[]) override final
{
if (argc > 0 && argv)

@ -26,7 +26,7 @@ TestingRuntimeDeviceConfiguration<vtkm::cont::DeviceAdapterTagKokkos>::TestRunti
{
int argc;
char** argv;
vtkm::cont::testing::Testing::MakeArgs(argc, argv, "--kokkos-numa=4");
vtkm::cont::testing::Testing::MakeArgs(argc, argv, "--kokkos-print-configuration");
auto deviceOptions = TestingRuntimeDeviceConfiguration::DefaultInitializeConfigOptions();
deviceOptions.VTKmDeviceInstance.SetOption(0);
internal::RuntimeDeviceConfigurationBase& config =