Viagra, generically referred to as sildenafil, is a medication primarily intended to help erectile dysfunction , a ailment where individuals have difficulty achieving or sustaining an erection of the penis . Beyond this purpose, it is sometimes employed off-label in the management of pulmonary hy