wrap cuda check in windows ifdef