Fix missing ampersand
Add device attribute enum to mini_cuda and use it