added a max call for SM 2.0 restrictions.
Merge pull request #17 from jonathantompson/upsampling_fix

added a max call for SM 2.0 restrictions.