Conform to new D.A.A.Memory API. Fixes problem with CUDA context handling.
Conform to new D.A.A.Memory API. Fixes problem with CUDA context handling.

AccelerateHS/accelerate-cuda,tmcdonell/accelerate-cuda,mwu-tow/accelerate-cuda,mwu-tow/accelerate-cuda,flowbox-public/accelerate-cuda,flowbox-public/accelerate-cuda,flowbox-public/accelerate-cuda,AccelerateHS/accelerate-cuda,AccelerateHS/accelerate-cuda,tmcdonell/accelerate-cuda,tmcdonell/accelerate-cuda,mwu-tow/accelerate-cuda