add IDR processing in gmp wrapper
Merge pull request #1007 from ruil2/gmp_idr

add IDR processing in gmp wrapper