     long long eventCounts[1];
     char nativeEventName[] = "CUDA:::Quadro_4000:domain_d:active_cycles";
     int eventCode;
-    char input[] = "12345678901234567890123456789012";
     string output;
     
     int result = PAPI_library_init(PAPI_VER_CURRENT);

    if (PAPI_start(eventSet) != PAPI_OK)
        cout << "Couldn't start measurement for thread." << endl;
    
    output = invokeKernel(input);

    if (PAPI_stop(eventSet, eventCounts) != PAPI_OK)
        cout << "Couldn't stop measurement for thread." << endl;

    cout << "Input:\t\t" << input
         << "\nOutput:\t\t" << output
         << "\nExpected:\t11111111111111111111111111111111\n"
         << nativeEventName << " = " << eventCounts[0] << endl;

    output[threadIdx.x] = '1';
}

string invokeKernel()
{
    string result;
    char input[] = "12345678912345678912345678912345";
    size_t size = sizeof(input);
    char* output;
    cudaMalloc((void**) &output, size);
