Difference between cudamallocmanaged and malloc/new

(host code) malloc/new for device code access only works on devices/systems where that feature is available. Currently, this would be x86 systems with the HMM, or Grace with ATS feature. Here are a couple recent threads:

1 2 3

which also link to more info.