 
 namespace popart {
 
+__host__
 void write_plane2D( const char* filename, bool onDevice, Plane2D_float& f )
 {
     if( onDevice ) {


#include <iostream>
#include <fstream>

// #include "debug_macros.h"
// #include "align_macro.h"

    }
}

__host__
void write_plane2D( const char* filename, Plane2D_float& f )
{
    // cerr << "Enter " << __FUNCTION__ << endl;
