Add try/catch around cuda::setDevice in Pinned Memory Manager
Add try/catch around cuda::setDevice in Pinned Memory Manager

shehzan10/arrayfire,victorv/arrayfire,9prady9/arrayfire,merlin-ext/arrayfire,bkloppenborg/arrayfire,marbre/arrayfire,marbre/arrayfire,ghisvail/arrayfire,bkloppenborg/arrayfire,9prady9/arrayfire,victorv/arrayfire,ghisvail/arrayfire,umar456/arrayfire,bkloppenborg/arrayfire,ghisvail/arrayfire,umar456/arrayfire,9prady9/arrayfire,merlin-ext/arrayfire,munnybearz/arrayfire,shehzan10/arrayfire,9prady9/arrayfire,arrayfire/arrayfire,marbre/arrayfire,marbre/arrayfire,arrayfire/arrayfire,victorv/arrayfire,munnybearz/arrayfire,arrayfire/arrayfire,merlin-ext/arrayfire,arrayfire/arrayfire,umar456/arrayfire,umar456/arrayfire,victorv/arrayfire,shehzan10/arrayfire,munnybearz/arrayfire,shehzan10/arrayfire,merlin-ext/arrayfire,ghisvail/arrayfire,bkloppenborg/arrayfire