Prompt photon and inclusive π0 production at RHIC and LHC