code: public static int cuStreamCreateWithPriority(CUstream phStream, int flags, int priority)
      {
          return checkResult(cuStreamCreateWithPriorityNative(phStream, flags, priority));
      }
docs: Create a stream with the given priority
  
  Creates a stream with the specified priority and returns a handle in phStream.
  This API alters the scheduler priority of work in the stream. Work in a higher
  priority stream may preempt work already executing in a low priority stream.
  
  priority follows a convention where lower numbers represent higher priorities.
  '0' represents default priority. The range of meaningful numerical priorities can
  be queried using ::cuCtxGetStreamPriorityRange. If the specified priority is
  outside the numerical range returned by ::cuCtxGetStreamPriorityRange,
  it will automatically be clamped to the lowest or the highest number in the range.
  
  @param phStream Returned newly created stream
  @param flags Flags for stream creation. See ::cuStreamCreate for a list of valid flags
  @param priority Stream priority. Lower numbers represent higher priorities.
  See ::cuCtxGetStreamPriorityRange for more information about
  meaningful stream priorities that can be passed.
  
  Note: Stream priorities are supported only on GPUs
  with compute capability 3.5 or higher.
  
  Note: In the current implementation, only compute kernels launched in
  priority streams are affected by the stream's priority. Stream priorities have
  no effect on host-to-device and device-to-host memory operations.
  
  @return CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED,
  CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT,
  CUDA_ERROR_INVALID_VALUE, CUDA_ERROR_OUT_OF_MEMORY
  
  @see JCudaDriver#cuStreamDestroy
  @see JCudaDriver#cuStreamCreate
  @see JCudaDriver#cuStreamGetPriority
  @see JCudaDriver#cuCtxGetStreamPriorityRange
  @see JCudaDriver#cuStreamGetFlags
  @see JCudaDriver#cuStreamWaitEvent
  @see JCudaDriver#cuStreamQuery
  @see JCudaDriver#cuStreamSynchronize
  @see JCudaDriver#cuStreamAddCallback
  @see JCudaDriver#cudaStreamCreateWithPriority