I don’t think this is possible. You’ll have to make a single large allocation, and use an indexing function to access it. Are you trying to make a 2d array or something? If so, allocate a single array that is NM in size, and then index into it using a function like idx(i,j) = j + iM.
Can you elaborate? The runtime api is more C++'y than device API.