add spec_runner for amd example
added spec_runner for global_variables example