Global block index

Global thread index = Threadidx.x + blockidx.x * blockdim.x
Is there anyway to determine the global block index?

If you have 1D block grid then blockIdx.x is the global block Id. But for 2D block grid case blockIdx.x and blockIdx.y are global Id in their particular direction.