<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def nvrtcCompileProgram(self, prog, options):
 """ Compiles the NVRTC program object into PTX, using the provided options array. See the NVRTC API documentation for accepted options. """

        options_array = (c_char_p * len(options))()
        options_array[:] = encode_str_list(options)
        code = self._lib.nvrtcCompileProgram(prog, len(options), options_array)
        self._throw_on_error(code)
        return