Bounded the number of threads and blocks by the limits of the device selected.