It would honestly be hard to cook just a gram, unless it was highly potent weed. Your best bet with that would be to make firecrackers.

However, if you still want to try to give it a try, it would take about 1/8 to 1/4 of a cup of butter or oil.