 
 void kernel(float* dev_out)
 {
-    static const dim3 threads(SIZE);
+    static const dim3 threads(DATA_SIZE);
     dim3 blocks(1);
 
     simple_sinf<<< blocks, threads >>>(dev_out);

const float    dx = 0.1;
const float    FRANGE_START = 0.f;
const float    FRANGE_END = 2 * 3.141592f;
const size_t   SIZE = ( FRANGE_END - FRANGE_START ) / dx;

void kernel(float* dev_out);


    plt2.setAxesLimits(FRANGE_END, FRANGE_START, 1.1f, -1.1f);
    plt3.setAxesLimits(FRANGE_END, FRANGE_START, 1.1f, -1.1f);

    CUDA_ERROR_CHECK(cudaMalloc((void**)&dev_out, sizeof(float) * DATA_SIZE * 2));
    kernel(dev_out);
    /* copy your data into the vertex buffer object exposed by
     * fg::Plot class and then proceed to rendering.
