While you can't turn a plant genetically male (=give it a Y chromosome), you can force it to grow male flowers with:
-Light stress
-Heat stress
-Insect attack stress
-Giberellin or colloidal silver
-Letting the plant go over-ripe

Heat, light, and ripeness stress are the safest and are the only ones that should be used on a plant that you intend to smoke.