 }
 
 // Forward declaration
-int preempt_stream(int, int);
+cudaError_t experiment(int priority_low, int priority_hi);
 
 int main(int argc, char **argv) {
   cudaDeviceProp device_prop;

  printf("CUDA stream priority range: LOW: %d to HIGH: %d\n", priority_low,
      priority_hi);

  preempt_stream(priority_low, priority_hi);

  exit(EXIT_SUCCESS);
}

/**

    fprintf(stderr,
        "%s requires Compute Capability of SM 3.5 or higher to run.\nexiting...\n",
        argv[0]);
    exit (EXIT_WAIVED);
  }

  // get the range of priorities available
  // [ greatest_priority, least_priority ]
  int priority_low;
  int priority_hi;
  checkCudaErrors(
