Skip to content

Commit

Permalink
Library::print and ATLAS_DEBUG shows OpenACC and CUDA/HIP devices and…
Browse files Browse the repository at this point in the history
… features
  • Loading branch information
wdeconinck committed Feb 27, 2025
1 parent dc5775a commit 9223793
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/atlas/library/Library.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ static bool feature_MKL() {
} // namespace
#endif

#include "pluto/pluto.h"

#include "atlas_io/Trace.h"

#include "atlas/library/FloatingPointExceptions.h"
Expand All @@ -53,6 +55,7 @@ static bool feature_MKL() {
#include "atlas/library/version.h"
#include "atlas/parallel/mpi/mpi.h"
#include "atlas/parallel/omp/omp.h"
#include "atlas/parallel/acc/acc.h"
#include "atlas/runtime/Exception.h"
#include "atlas/runtime/Log.h"
#include "atlas/runtime/Trace.h"
Expand Down Expand Up @@ -341,6 +344,9 @@ void Library::initialise(const eckit::Parametrisation& config) {
out << " rank [" << mpi::rank() << "] \n";
out << " OMP\n";
out << " max_threads [" << atlas_omp_get_max_threads() << "] \n";
out << " GPU\n";
out << " devices [" << pluto::devices() << "] \n";
out << " OpenACC [" << acc::devices() << "] \n";
out << " \n";
out << " log.info [" << str(info_) << "] \n";
out << " log.trace [" << str(trace()) << "] \n";
Expand Down Expand Up @@ -473,6 +479,8 @@ void Library::Information::print(std::ostream& out) const {

bool feature_fortran(ATLAS_HAVE_FORTRAN);
bool feature_OpenMP(ATLAS_HAVE_OMP);
bool feature_OpenACC(ATLAS_HAVE_ACC);
bool feature_GPU(ATLAS_HAVE_GPU);
bool feature_ecTrans(ATLAS_HAVE_ECTRANS);
bool feature_FFTW(ATLAS_HAVE_FFTW);
bool feature_Eigen(ATLAS_HAVE_EIGEN);
Expand All @@ -498,6 +506,8 @@ void Library::Information::print(std::ostream& out) const {
<< " Fortran : " << str(feature_fortran) << '\n'
<< " MPI : " << str(feature_MPI) << '\n'
<< " OpenMP : " << str(feature_OpenMP) << '\n'
<< " OpenACC : " << str(feature_OpenACC) << '\n'
<< " GPU : " << str(feature_GPU) << '\n'
<< " BoundsChecking : " << str(feature_BoundsChecking) << '\n'
<< " Init_sNaN : " << str(feature_Init_sNaN) << '\n'
<< " ecTrans : " << str(feature_ecTrans) << '\n'
Expand Down

0 comments on commit 9223793

Please sign in to comment.