Commit 2ad061e8 authored by Martin Bauer's avatar Martin Bauer
Browse files

GPU benchmark: added LB storage pattern to python callback

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