add checks for cuda compiler