invokes cuda if properly installed