mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #5611 from multitalentloes/print_gpu_info_on_startup
Print gpus used on simulator startup
This commit is contained in:
@@ -35,10 +35,6 @@
|
||||
#include <opm/simulators/utils/DamarisOutputModule.hpp>
|
||||
#endif
|
||||
|
||||
#if HAVE_CUDA
|
||||
#include <opm/simulators/linalg/gpuistl/set_device.hpp>
|
||||
#endif
|
||||
|
||||
namespace Opm {
|
||||
|
||||
Main::Main(int argc, char** argv, bool ownMPI)
|
||||
@@ -163,7 +159,7 @@ void Main::initMPI()
|
||||
}
|
||||
|
||||
#if HAVE_CUDA
|
||||
Opm::gpuistl::setDevice(FlowGenericVanguard::comm().rank(), FlowGenericVanguard::comm().size());
|
||||
Opm::gpuistl::setDevice();
|
||||
#endif
|
||||
|
||||
#endif // HAVE_MPI
|
||||
|
||||
@@ -72,6 +72,10 @@
|
||||
#include <opm/simulators/utils/ParallelEclipseState.hpp>
|
||||
#endif
|
||||
|
||||
#if HAVE_CUDA
|
||||
#include <opm/simulators/linalg/gpuistl/device_management.hpp>
|
||||
#endif
|
||||
|
||||
#if HAVE_DAMARIS
|
||||
#include <opm/simulators/utils/DamarisKeywords.hpp>
|
||||
#endif
|
||||
@@ -426,6 +430,10 @@ protected:
|
||||
return false;
|
||||
}
|
||||
|
||||
#if HAVE_CUDA
|
||||
Opm::gpuistl::printDevice();
|
||||
#endif
|
||||
|
||||
exitCode = EXIT_SUCCESS;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user