convert pointers in function arguments  to addrspace(3). still there is poroblem with shared memory. need to figure out which one ..
added DeviceCacheSettings