Skip to content
Snippets Groups Projects
Commit 2ad061e8 authored by Martin Bauer's avatar Martin Bauer
Browse files

GPU benchmark: added LB storage pattern to python callback

parent 6e1c0704
Branches
Tags
No related merge requests found
...@@ -332,9 +332,11 @@ int main( int argc, char **argv ) ...@@ -332,9 +332,11 @@ int main( int argc, char **argv )
python_coupling::PythonCallback pythonCallbackResults( "results_callback" ); python_coupling::PythonCallback pythonCallbackResults( "results_callback" );
if ( pythonCallbackResults.isCallable()) if ( pythonCallbackResults.isCallable())
{ {
const char * storagePattern = "twofield";
pythonCallbackResults.data().exposeValue( "mlupsPerProcess", mlupsPerProcess ); pythonCallbackResults.data().exposeValue( "mlupsPerProcess", mlupsPerProcess );
pythonCallbackResults.data().exposeValue( "stencil", infoStencil ); pythonCallbackResults.data().exposeValue( "stencil", infoStencil );
pythonCallbackResults.data().exposeValue( "configName", infoConfigName ); pythonCallbackResults.data().exposeValue( "configName", infoConfigName );
pythonCallbackResults.data().exposeValue( "storagePattern", storagePattern );
pythonCallbackResults.data().exposeValue( "cse_global", infoCseGlobal ); pythonCallbackResults.data().exposeValue( "cse_global", infoCseGlobal );
pythonCallbackResults.data().exposeValue( "cse_pdfs", infoCsePdfs ); pythonCallbackResults.data().exposeValue( "cse_pdfs", infoCsePdfs );
// Call Python function to report results // Call Python function to report results
......
...@@ -267,9 +267,11 @@ int main( int argc, char **argv ) ...@@ -267,9 +267,11 @@ int main( int argc, char **argv )
python_coupling::PythonCallback pythonCallbackResults( "results_callback" ); python_coupling::PythonCallback pythonCallbackResults( "results_callback" );
if ( pythonCallbackResults.isCallable()) if ( pythonCallbackResults.isCallable())
{ {
const char * storagePattern = "aa";
pythonCallbackResults.data().exposeValue( "mlupsPerProcess", mlupsPerProcess ); pythonCallbackResults.data().exposeValue( "mlupsPerProcess", mlupsPerProcess );
pythonCallbackResults.data().exposeValue( "stencil", infoStencil ); pythonCallbackResults.data().exposeValue( "stencil", infoStencil );
pythonCallbackResults.data().exposeValue( "configName", infoConfigName ); pythonCallbackResults.data().exposeValue( "configName", infoConfigName );
pythonCallbackResults.data().exposeValue( "storagePattern", storagePattern );
pythonCallbackResults.data().exposeValue( "cse_global", infoCseGlobal ); pythonCallbackResults.data().exposeValue( "cse_global", infoCseGlobal );
pythonCallbackResults.data().exposeValue( "cse_pdfs", infoCsePdfs ); pythonCallbackResults.data().exposeValue( "cse_pdfs", infoCsePdfs );
// Call Python function to report results // Call Python function to report results
......
...@@ -121,9 +121,7 @@ def generate_jobscripts(machine='pizdaint_hybrid', ...@@ -121,9 +121,7 @@ def generate_jobscripts(machine='pizdaint_hybrid',
output_file='overlap_bench_{:04d}_%j.txt'.format(node_count), output_file='overlap_bench_{:04d}_%j.txt'.format(node_count),
error_file='overlap_bench_{:04d}_%j.txt'.format(node_count), error_file='overlap_bench_{:04d}_%j.txt'.format(node_count),
initial_dir=getcwd(), initial_dir=getcwd(),
#exe_name='UniformGridBenchmarkGPU', commands=list(("./" + exe, 'overlap_benchmark.py') for exe in exe_names),
#parameter_files=['overlap_benchmark.py'],
commands=list((exe, 'overlap_benchmark.py') for exe in exe_names),
wall_time=timedelta(minutes=25), wall_time=timedelta(minutes=25),
machine=machine, machine=machine,
account='d105', account='d105',
......
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