In reply to kitesilicon:
This forum is not for discussing tool specie issues.
I can say switches like +UVM_NO_DPI are used when you compile the UVM package; not your own code. You need to make sure you compile and use the UVM package with those switches turned on instead of the pre-compiled versions.