A dynamic compilation framework for PTX