code: public static int cuStreamWriteValue64(CUstream stream, CUdeviceptr addr, long value, int flags)
      {
          return checkResult(cuStreamWriteValue64Native(stream, addr, value, flags));
      }
docs: Write a value to memory.<br>
  <br>
  Write a value to memory. Unless the
  CU_STREAM_WRITE_VALUE_NO_MEMORY_BARRIER flag is passed, the write is
  preceded by a system-wide memory fence, equivalent to a
  __threadfence_system() but scoped to the stream rather than a CUDA
  thread.<br>
  <br>
  If the memory was registered via cuMemHostRegister(), the device pointer
  should be obtained with cuMemHostGetDevicePointer(). This function cannot
  be used with managed memory (cuMemAllocManaged).<br>
  <br>
  On Windows, the device must be using TCC, or the operation is not
  supported. See cuDeviceGetAttribute().
  
  @param stream The stream to do the write in.
  @param addr The device address to write to.
  @param value The value to write.
  @param flags See {@link CUstreamWriteValue_flags}
  @return CUDA_SUCCESS, CUDA_ERROR_INVALID_VALUE, CUDA_ERROR_NOT_SUPPORTED
  
  @see JCudaDriver#cuStreamWaitValue64
  @see JCudaDriver#cuStreamBatchMemOp
  @see JCudaDriver#cuMemHostRegister
  @see JCudaDriver#cuEventRecord