     cudaMemcpy(&result, d_jp, sizeof(int), cudaMemcpyDeviceToHost);
     check_cuda_error();
     
-    std::cout <<"result " << result << " (should be 666)" << std::endl;
+    printf("result %d", result );
+    printf( " (should be 666)\n");
 
 
     if ( expected_kernel_result != result ) {

    cudaError_t error = cudaGetLastError();
    
    if ( cudaSuccess != error ) {
        std::cerr << cudaGetErrorString( error ) << std::endl;
    }
    
    return error;

#include <stdlib>


#include "cuda_runtime.h"

