fix pinned mem USE_CUDA=1 on host with no device (#6864)
fix pinned mem USE_CUDA=1 on host with no device (#6864)

* fix pinned mem USE_CUDA=1 on host with no device

* fix

* fix

* fix

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