Trying to get device functions to compile