How can I set the optimization level when compiling a .ptx to a .cubin file?

I’m trying to run some low-level test code on my machine, but some of the instructions in my kernel are being removed by the compiler. Is there a way I can compile my .ptx file into a .cubin file with no optimization?