Commit 0fbe04af authored by Sebastian Eibl's avatar Sebastian Eibl

added build info to benchmarks

parent a5400d89
......@@ -367,6 +367,7 @@ int main( int argc, char ** argv )
realProperties["linkedCellsVolume"] = linkedCellsVolume;
integerProperties["numLinkedCells"] = int64_c(numLinkedCells);
addBuildInfoToSQL( integerProperties, realProperties, stringProperties );
saveToSQL(params, integerProperties, realProperties, stringProperties );
addDomainPropertiesToSQL(*forest, integerProperties, realProperties, stringProperties);
addSlurmPropertiesToSQL(integerProperties, realProperties, stringProperties);
......
......@@ -373,6 +373,7 @@ int main( int argc, char ** argv )
realProperties["linkedCellsVolume"] = linkedCellsVolume;
integerProperties["numLinkedCells"] = int64_c(numLinkedCells);
addBuildInfoToSQL( integerProperties, realProperties, stringProperties );
saveToSQL(params, integerProperties, realProperties, stringProperties );
addDomainPropertiesToSQL(*forest, integerProperties, realProperties, stringProperties);
addSlurmPropertiesToSQL(integerProperties, realProperties, stringProperties);
......
......@@ -320,6 +320,7 @@ int main( int argc, char ** argv )
integerProperties["num_particles"] = numParticles;
integerProperties["num_ghost_particles"] = numGhostParticles;
mesa_pd::addBuildInfoToSQL( integerProperties, realProperties, stringProperties );
saveToSQL(params, integerProperties, realProperties, stringProperties );
mesa_pd::addDomainPropertiesToSQL(*forest, integerProperties, realProperties, stringProperties);
mesa_pd::addSlurmPropertiesToSQL(integerProperties, realProperties, stringProperties);
......
......@@ -24,11 +24,21 @@
#include <blockforest/loadbalancing/DynamicDiffusive.h>
#include <blockforest/loadbalancing/DynamicParMetis.h>
#include <core/DataTypes.h>
#include <pe/cr/HCSITS.h>
#include <core/waLBerlaBuildInfo.h>
namespace walberla {
namespace mesa_pd {
void addBuildInfoToSQL( std::map< std::string, int64_t > & /*integerProperties*/,
std::map< std::string, double > & /*realProperties*/,
std::map< std::string, std::string > & stringProperties )
{
stringProperties["walberla_sha"] = walberla::core::buildinfo::gitSHA1();
stringProperties["build_type"] = walberla::core::buildinfo::buildType();
stringProperties["compiler_flags"] = walberla::core::buildinfo::compilerFlags();
stringProperties["build_machine"] = walberla::core::buildinfo::buildMachine();
}
void addDomainPropertiesToSQL( const ::walberla::blockforest::BlockForest& forest,
std::map< std::string, int64_t > & integerProperties,
std::map< std::string, double > & realProperties,
......
......@@ -33,6 +33,10 @@ class DynamicParMetis;
namespace walberla {
namespace mesa_pd {
void addBuildInfoToSQL( std::map< std::string, int64_t > & integerProperties,
std::map< std::string, double > & realProperties,
std::map< std::string, std::string > & stringProperties );
void addDomainPropertiesToSQL( const walberla::blockforest::BlockForest& forest,
std::map< std::string, int64_t > & integerProperties,
std::map< std::string, double > & realProperties,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment