     int i = 42;	
     int *d_jp = 0;
     
-    cudaMalloc((void**)&d_jp, sizeof(int));
+    cudaMalloc( (void**) &d_jp, sizeof( int ) );
     check_cuda_error();
     
-    cudaMemset( d_jp, 0, sizeof(int)); 
+    cudaMemset( d_jp, 0, sizeof( int ) ); 
     check_cuda_error();
     
     // Setup CUDA kernel arguments
-    dim3 block_dim(1);
-    dim3 grid_dim(1);
+    dim3 block_dim( 1 );
+    dim3 grid_dim( 1 );
     
     bool const use_native_cuda_kernel_call = false;
     if ( use_native_cuda_kernel_call ) {
         
         // CUDA native kernel call.
         
-        kernel_function<<< grid_dim, block_dim >>>( /* i, */ d_jp);
+        kernel_function<<< grid_dim, block_dim >>>( i, d_jp);
         
     } else {
     

 * CUDA kernel that sets the first memory value @a j os pointing to to @c expected_kernel_result.
 *
 * @param i Dummy parameter but needed to trigger the problem we are observing.
 */
__global__ void kernel_function ( int* j);


/**

}


__global__ void kernel_function( int i, int* j ) {
    *j = EXPECTED_KERNEL_RESULT;
}

