generate PTX code