Padding GPU allocations (#5276)
Padding GPU allocations (#5276)

* Padding GPU allocations

* Fix for DirectFree

* Making ndev constant

piiswrong/mxnet,Northrend/mxnet,ForkedReposBak/mxnet,luoyetx/mxnet,EvanzzzZ/mxnet,arikpoz/mxnet,Ldpe2G/mxnet,solin319/incubator-mxnet,Northrend/mxnet,navrasio/mxnet,piiswrong/mxnet,ykim362/mxnet,arikpoz/mxnet,piiswrong/mxnet,jiajiechen/mxnet,antoan2/incubator-mxnet,danithaca/mxnet,rahul003/mxnet,crazy-cat/incubator-mxnet,thirdwing/mxnet,wangyum/mxnet,kkk669/mxnet,rishita/mxnet,mbaijal/incubator-mxnet,Northrend/mxnet,arank/mxnet,szha/mxnet,tornadomeet/mxnet,danithaca/mxnet,gautamkmr/incubator-mxnet,CodingCat/mxnet,likelyzhao/mxnet,ykim362/mxnet,formath/mxnet,hpi-xnor/BMXNet,fullfanta/mxnet,arikpoz/mxnet,xcgoner/dist-mxnet,weleen/mxnet,zhreshold/mxnet,yajiedesign/mxnet,crazy-cat/incubator-mxnet,yuruofeifei/mxnet,TuSimple/mxnet,ShownX/incubator-mxnet,larroy/mxnet,danithaca/mxnet,DR08/mxnet,TuSimple/mxnet,xcgoner/dist-mxnet,xcgoner/dist-mxnet,weleen/mxnet,kkk669/mxnet,rishita/mxnet,larroy/mxnet,thirdwing/mxnet,precedenceguo/mxnet,jennyzhang0215/incubator-mxnet,formath/mxnet,hotpxl/mxnet,jermainewang/mxnet,sergeykolychev/mxnet,sxjscience/mxnet,apaleyes/mxnet,kevinthesun/mxnet,gautamkmr/incubator-mxnet,yuruofeifei/mxnet,saurabh3949/mxnet,rahul003/mxnet,saurabh3949/mxnet,tornadomeet/mxnet,tornadomeet/mxnet,larroy/mxnet,madjam/mxnet,dmlc/mxnet,hotpxl/mxnet,ShownX/incubator-mxnet,ShownX/incubator-mxnet,hpi-xnor/BMXNet,ForkedReposBak/mxnet,ForkedReposBak/mxnet,CodingCat/mxnet,mbaijal/incubator-mxnet,reminisce/mxnet,precedenceguo/mxnet,mbaijal/incubator-mxnet,szha/mxnet,precedenceguo/mxnet,stefanhenneking/mxnet,sergeykolychev/mxnet,luoyetx/mxnet,navrasio/mxnet,ForkedReposBak/mxnet,DickJC123/mxnet,vikingMei/mxnet,ZihengJiang/mxnet,xcgoner/dist-mxnet,stefanhenneking/mxnet,kevinthesun/mxnet,hotpxl/mxnet,stefanhenneking/mxnet,rahul003/mxnet,nicklhy/mxnet,tornadomeet/mxnet,reminisce/mxnet,indhub/mxnet,apaleyes/mxnet,szha/mxnet,DR08/mxnet,vikingMei/mxnet,ShownX/incubator-mxnet,arikpoz/mxnet,arikpoz/mxnet,smolix/incubator-mxnet,saurabh3949/mxnet,indhub/mxnet,reminisce/mxnet,lxn2/mxnet,mbaijal/incubator-mxnet,navrasio/mxnet,vikingMei/mxnet,sergeykolychev/mxnet,formath/mxnet,crazy-cat/incubator-mxnet,jiajiechen/mxnet,TuSimple/mxnet,CodingCat/mxnet,solin319/incubator-mxnet,ForkedReposBak/mxnet,piiswrong/mxnet,Mega-DatA-Lab/mxnet,Northrend/mxnet,tlby/mxnet,rahul003/mxnet,pluskid/mxnet,precedenceguo/mxnet,wangyum/mxnet,stefanhenneking/mxnet,fullfanta/mxnet,wangyum/mxnet,danithaca/mxnet,LinkHS/incubator-mxnet,indhub/mxnet,arikpoz/mxnet,navrasio/mxnet,danithaca/mxnet,indhub/mxnet,jennyzhang0215/incubator-mxnet,eric-haibin-lin/mxnet,lxn2/mxnet,formath/mxnet,solin319/incubator-mxnet,crazy-cat/incubator-mxnet,zhreshold/mxnet,arikpoz/mxnet,ForkedReposBak/mxnet,piiswrong/mxnet,dmlc/mxnet,jiajiechen/mxnet,hesseltuinhof/mxnet,stefanhenneking/mxnet,pluskid/mxnet,hesseltuinhof/mxnet,yuruofeifei/mxnet,zhreshold/mxnet,LinkHS/incubator-mxnet,larroy/mxnet,tornadomeet/mxnet,sxjscience/mxnet,leezu/mxnet,gautamkmr/incubator-mxnet,Prasad9/incubator-mxnet,likelyzhao/mxnet,crazy-cat/incubator-mxnet,nicklhy/mxnet,yajiedesign/mxnet,rishita/mxnet,xcgoner/dist-mxnet,EvanzzzZ/mxnet,reminisce/mxnet,madjam/mxnet,kkk669/mxnet,arank/mxnet,solin319/incubator-mxnet,arank/mxnet,Northrend/mxnet,navrasio/mxnet,tlby/mxnet,EvanzzzZ/mxnet,crazy-cat/incubator-mxnet,coder-james/mxnet,rishita/mxnet,Prasad9/incubator-mxnet,Northrend/mxnet,Prasad9/incubator-mxnet,precedenceguo/mxnet,eric-haibin-lin/mxnet,smolix/incubator-mxnet,Prasad9/incubator-mxnet,ptrendx/mxnet,hpi-xnor/BMXNet,kkk669/mxnet,jamesliu/mxnet,weleen/mxnet,nicklhy/mxnet,smolix/incubator-mxnet,saurabh3949/mxnet,vikingMei/mxnet,lxn2/mxnet,arank/mxnet,jamesliu/mxnet,yuruofeifei/mxnet,Prasad9/incubator-mxnet,hesseltuinhof/mxnet,solin319/incubator-mxnet,antoan2/incubator-mxnet,luoyetx/mxnet,sergeykolychev/mxnet,danithaca/mxnet,hesseltuinhof/mxnet,coder-james/mxnet,ptrendx/mxnet,tlby/mxnet,DR08/mxnet,jamesliu/mxnet,solin319/incubator-mxnet,DR08/mxnet,jamesliu/mxnet,larroy/mxnet,nicklhy/mxnet,weleen/mxnet,lxn2/mxnet,reminisce/mxnet,ptrendx/mxnet,madjam/mxnet,apaleyes/mxnet,DR08/mxnet,yajiedesign/mxnet,crazy-cat/incubator-mxnet,weleen/mxnet,tornadomeet/mxnet,saurabh3949/mxnet,jiajiechen/mxnet,fullfanta/mxnet,precedenceguo/mxnet,solin319/incubator-mxnet,ZihengJiang/mxnet,Mega-DatA-Lab/mxnet,dmlc/mxnet,jennyzhang0215/incubator-mxnet,yajiedesign/mxnet,yuruofeifei/mxnet,tlby/mxnet,kevinthesun/mxnet,sxjscience/mxnet,kkk669/mxnet,ykim362/mxnet,vikingMei/mxnet,mbaijal/incubator-mxnet,luoyetx/mxnet,jermainewang/mxnet,hotpxl/mxnet,jiajiechen/mxnet,weleen/mxnet,apache/incubator-mxnet,yuruofeifei/mxnet,Northrend/mxnet,jermainewang/mxnet,lxn2/mxnet,rahul003/mxnet,zhreshold/mxnet,reminisce/mxnet,hotpxl/mxnet,LinkHS/incubator-mxnet,likelyzhao/mxnet,antoan2/incubator-mxnet,antoan2/incubator-mxnet,saurabh3949/mxnet,Mega-DatA-Lab/mxnet,leezu/mxnet,sxjscience/mxnet,wangyum/mxnet,ykim362/mxnet,nicklhy/mxnet,yajiedesign/mxnet,hesseltuinhof/mxnet,jamesliu/mxnet,smolix/incubator-mxnet,sergeykolychev/mxnet,TuSimple/mxnet,reminisce/mxnet,hpi-xnor/BMXNet,rishita/mxnet,arank/mxnet,tlby/mxnet,ZihengJiang/mxnet,likelyzhao/mxnet,weleen/mxnet,LinkHS/incubator-mxnet,TuSimple/mxnet,reminisce/mxnet,jermainewang/mxnet,Ldpe2G/mxnet,apache/incubator-mxnet,hpi-xnor/BMXNet,hotpxl/mxnet,piiswrong/mxnet,madjam/mxnet,ForkedReposBak/mxnet,vikingMei/mxnet,szha/mxnet,DR08/mxnet,larroy/mxnet,wangyum/mxnet,Mega-DatA-Lab/mxnet,weleen/mxnet,coder-james/mxnet,Ldpe2G/mxnet,Northrend/mxnet,Mega-DatA-Lab/mxnet,DickJC123/mxnet,piiswrong/mxnet,Ldpe2G/mxnet,tornadomeet/mxnet,Ldpe2G/mxnet,TuSimple/mxnet,madjam/mxnet,DR08/mxnet,kkk669/mxnet,precedenceguo/mxnet,navrasio/mxnet,jiajiechen/mxnet,tlby/mxnet,sxjscience/mxnet,zhreshold/mxnet,antoan2/incubator-mxnet,jermainewang/mxnet,jiajiechen/mxnet,ZihengJiang/mxnet,sergeykolychev/mxnet,piiswrong/mxnet,thirdwing/mxnet,antoan2/incubator-mxnet,luoyetx/mxnet,dmlc/mxnet,CodingCat/mxnet,jamesliu/mxnet,luoyetx/mxnet,hpi-xnor/BMXNet,piiswrong/mxnet,saurabh3949/mxnet,lxn2/mxnet,DR08/mxnet,apache/incubator-mxnet,sergeykolychev/mxnet,ZihengJiang/mxnet,ptrendx/mxnet,gautamkmr/incubator-mxnet,szha/mxnet,kevinthesun/mxnet,tlby/mxnet,navrasio/mxnet,EvanzzzZ/mxnet,nicklhy/mxnet,pluskid/mxnet,apache/incubator-mxnet,ptrendx/mxnet,thirdwing/mxnet,coder-james/mxnet,indhub/mxnet,Prasad9/incubator-mxnet,mbaijal/incubator-mxnet,ptrendx/mxnet,kkk669/mxnet,kevinthesun/mxnet,ptrendx/mxnet,TuSimple/mxnet,pluskid/mxnet,ykim362/mxnet,weleen/mxnet,szha/mxnet,nicklhy/mxnet,EvanzzzZ/mxnet,kkk669/mxnet,leezu/mxnet,EvanzzzZ/mxnet,pluskid/mxnet,ykim362/mxnet,xcgoner/dist-mxnet,coder-james/mxnet,madjam/mxnet,larroy/mxnet,yuruofeifei/mxnet,DickJC123/mxnet,hpi-xnor/BMXNet,indhub/mxnet,larroy/mxnet,danithaca/mxnet,nicklhy/mxnet,jermainewang/mxnet,antoan2/incubator-mxnet,apaleyes/mxnet,fullfanta/mxnet,dmlc/mxnet,TuSimple/mxnet,rishita/mxnet,likelyzhao/mxnet,TuSimple/mxnet,formath/mxnet,zhreshold/mxnet,rahul003/mxnet,apaleyes/mxnet,solin319/incubator-mxnet,antoan2/incubator-mxnet,EvanzzzZ/mxnet,arank/mxnet,arank/mxnet,tlby/mxnet,xcgoner/dist-mxnet,stefanhenneking/mxnet,dmlc/mxnet,Ldpe2G/mxnet,yajiedesign/mxnet,fullfanta/mxnet,leezu/mxnet,kevinthesun/mxnet,Ldpe2G/mxnet,ZihengJiang/mxnet,jennyzhang0215/incubator-mxnet,kkk669/mxnet,Mega-DatA-Lab/mxnet,Mega-DatA-Lab/mxnet,ykim362/mxnet,hesseltuinhof/mxnet,yajiedesign/mxnet,vikingMei/mxnet,xcgoner/dist-mxnet,reminisce/mxnet,rahul003/mxnet,CodingCat/mxnet,pluskid/mxnet,indhub/mxnet,arank/mxnet,mbaijal/incubator-mxnet,pluskid/mxnet,formath/mxnet,ZihengJiang/mxnet,jamesliu/mxnet,crazy-cat/incubator-mxnet,LinkHS/incubator-mxnet,dmlc/mxnet,Ldpe2G/mxnet,sxjscience/mxnet,EvanzzzZ/mxnet,LinkHS/incubator-mxnet,hesseltuinhof/mxnet,madjam/mxnet,antoan2/incubator-mxnet,jennyzhang0215/incubator-mxnet,danithaca/mxnet,eric-haibin-lin/mxnet,likelyzhao/mxnet,LinkHS/incubator-mxnet,Mega-DatA-Lab/mxnet,madjam/mxnet,TuSimple/mxnet,jamesliu/mxnet,hotpxl/mxnet,hotpxl/mxnet,szha/mxnet,zhreshold/mxnet,eric-haibin-lin/mxnet,ptrendx/mxnet,kevinthesun/mxnet,precedenceguo/mxnet,leezu/mxnet,saurabh3949/mxnet,tlby/mxnet,sxjscience/mxnet,tlby/mxnet,hpi-xnor/BMXNet,rishita/mxnet,hpi-xnor/BMXNet,precedenceguo/mxnet,thirdwing/mxnet,hotpxl/mxnet,ForkedReposBak/mxnet,yajiedesign/mxnet,fullfanta/mxnet,zhreshold/mxnet,smolix/incubator-mxnet,ptrendx/mxnet,EvanzzzZ/mxnet,DR08/mxnet,sergeykolychev/mxnet,apaleyes/mxnet,coder-james/mxnet,smolix/incubator-mxnet,eric-haibin-lin/mxnet,szha/mxnet,Prasad9/incubator-mxnet,jennyzhang0215/incubator-mxnet,kevinthesun/mxnet,apaleyes/mxnet,madjam/mxnet,hesseltuinhof/mxnet,ShownX/incubator-mxnet,thirdwing/mxnet,LinkHS/incubator-mxnet,stefanhenneking/mxnet,ShownX/incubator-mxnet,fullfanta/mxnet,ShownX/incubator-mxnet,yajiedesign/mxnet,lxn2/mxnet,CodingCat/mxnet,danithaca/mxnet,jennyzhang0215/incubator-mxnet,jennyzhang0215/incubator-mxnet,jermainewang/mxnet,xcgoner/dist-mxnet,jiajiechen/mxnet,wangyum/mxnet,smolix/incubator-mxnet,jermainewang/mxnet,leezu/mxnet,LinkHS/incubator-mxnet,nicklhy/mxnet,sergeykolychev/mxnet,lxn2/mxnet,rahul003/mxnet,CodingCat/mxnet,tornadomeet/mxnet,vikingMei/mxnet,fullfanta/mxnet,Mega-DatA-Lab/mxnet,apaleyes/mxnet,eric-haibin-lin/mxnet,indhub/mxnet,luoyetx/mxnet,CodingCat/mxnet,apaleyes/mxnet,Prasad9/incubator-mxnet,vikingMei/mxnet,ForkedReposBak/mxnet,likelyzhao/mxnet,lxn2/mxnet,CodingCat/mxnet,jiajiechen/mxnet,reminisce/mxnet,Prasad9/incubator-mxnet,yuruofeifei/mxnet,luoyetx/mxnet,luoyetx/mxnet,ShownX/incubator-mxnet,wangyum/mxnet,jennyzhang0215/incubator-mxnet,ShownX/incubator-mxnet,solin319/incubator-mxnet,sxjscience/mxnet,eric-haibin-lin/mxnet,coder-james/mxnet,fullfanta/mxnet,likelyzhao/mxnet,formath/mxnet,saurabh3949/mxnet,formath/mxnet,ptrendx/mxnet,hesseltuinhof/mxnet,navrasio/mxnet,ykim362/mxnet,pluskid/mxnet,ZihengJiang/mxnet,thirdwing/mxnet,DickJC123/mxnet,formath/mxnet,szha/mxnet,eric-haibin-lin/mxnet,stefanhenneking/mxnet,leezu/mxnet,gautamkmr/incubator-mxnet,dmlc/mxnet,dmlc/mxnet,leezu/mxnet,rahul003/mxnet,sxjscience/mxnet,jermainewang/mxnet,thirdwing/mxnet,gautamkmr/incubator-mxnet,kevinthesun/mxnet,pluskid/mxnet,coder-james/mxnet,navrasio/mxnet,thirdwing/mxnet,yuruofeifei/mxnet,wangyum/mxnet,smolix/incubator-mxnet,Northrend/mxnet,mbaijal/incubator-mxnet,rishita/mxnet,crazy-cat/incubator-mxnet,leezu/mxnet,Ldpe2G/mxnet,gautamkmr/incubator-mxnet,tornadomeet/mxnet,mbaijal/incubator-mxnet,jamesliu/mxnet,arank/mxnet,stefanhenneking/mxnet,wangyum/mxnet,coder-james/mxnet,indhub/mxnet,smolix/incubator-mxnet,rishita/mxnet,likelyzhao/mxnet,arikpoz/mxnet,ykim362/mxnet,ZihengJiang/mxnet,zhreshold/mxnet,gautamkmr/incubator-mxnet,arikpoz/mxnet,larroy/mxnet,gautamkmr/incubator-mxnet,eric-haibin-lin/mxnet