Skip to content

Commit

Permalink
fixup: remove comments about runtime backends
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Nov 15, 2023
1 parent dbf734d commit 9a43013
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 47 deletions.
1 change: 0 additions & 1 deletion examples/crack_branching.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ int main( int argc, char* argv[] )
};
particles->updateParticles( exec_space{}, init_functor );

// FIXME: use createSolver to switch backend at runtime.
auto cabana_pd = CabanaPD::createSolverFracture<memory_space>(
inputs, particles, force_model, bc, prenotch );
cabana_pd->init_force();
Expand Down
1 change: 0 additions & 1 deletion examples/elastic_wave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ int main( int argc, char* argv[] )
{
Kokkos::ScopeGuard scope_guard( argc, argv );

// FIXME: change backend at compile time for now.
using exec_space = Kokkos::DefaultExecutionSpace;
using memory_space = typename exec_space::memory_space;

Expand Down
1 change: 0 additions & 1 deletion examples/kalthoff_winkler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ int main( int argc, char* argv[] )
{
Kokkos::ScopeGuard scope_guard( argc, argv );

// FIXME: change backend at compile time for now.
using exec_space = Kokkos::DefaultExecutionSpace;
using memory_space = typename exec_space::memory_space;

Expand Down
44 changes: 0 additions & 44 deletions src/CabanaPD_Solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,50 +527,6 @@ auto createSolverFracture( InputsType inputs,
prenotch );
}

/*
template <class MemorySpace, class ForceModel>
std::shared_ptr<SolverBase> createSolver( Inputs inputs,
Particles<MemorySpace> particles )
{
std::string device_type = inputs.device_type;
if ( device_type.compare( "SERIAL" ) == 0 )
{
#ifdef KOKKOS_ENABLE_SERIAL
return std::make_shared<Solver<
Kokkos::Device<Kokkos::Serial, Kokkos::HostSpace>, ForceModel>>(
inputs, particles );
#endif
}
else if ( device_type.compare( "OPENMP" ) == 0 )
{
#ifdef KOKKOS_ENABLE_OPENMP
return std::make_shared<Solver<
Kokkos::Device<Kokkos::OpenMP, Kokkos::HostSpace>, ForceModel>>(
inputs, particles );
#endif
}
else if ( device_type.compare( "CUDA" ) == 0 )
{
#ifdef KOKKOS_ENABLE_CUDA
return std::make_shared<Solver<
Kokkos::Device<Kokkos::Cuda, Kokkos::CudaSpace>, ForceModel>>(
inputs, particles );
#endif
}
else if ( device_type.compare( "HIP" ) == 0 )
{
#ifdef KOKKOS_ENABLE_HIP
return std::make_shared<
Solver<Kokkos::Device<Kokkos::Experimental::HIP,
Kokkos::Experimental::HIPSpace>,
ForceModel>>( inputs, particles );
#endif
}
log_err( std::cout, "Unknown backend: ", device_type );
return nullptr;
}
*/
} // namespace CabanaPD

#endif

0 comments on commit 9a43013

Please sign in to comment.