Tested padding function and it works correctly. Corrected one issue when copying from global to shared that was causing compilation problems.
Merge branch 'master' of https://github.com/eipeace/jtrcudasha3