G8 leaders expressed their wish to see Greece stay in the eurozone at a Camp David summit, as the group papered over deep-seated divisions about how best to tackle the eurozone crisis.
With the future of Europe's currency union in doubt, leaders of the world's largest economies on Saturday called on Greece to stick fast to the terms of a massive cash-for-reforms bailout, which is hanging by a thread.
"We agree on the importance of a strong and cohesive eurozone for global stability and recovery," a final G8 joint communique stated. "We affirm our interest in Greece remaining in the eurozone while respecting its commitments."
The summit took place after an electoral romp for Greek anti-austerity parties, that called into question the country's commitment to reforms and could leave G8 creditors facing a choice between loosening austerity demands or turning off the bailout spigot.
The latter would almost certainly lead to a Greek default and exit from the eurozone, sparking global panic.
The drama in Greece, as well as elections in European powerhouses France and Germany, had pushed divisions about how to tackle the crisis right to the surface of the G8 summit.
Obama noted leaders' agreement that growth and jobs must take precedence over austerity.
"As all of the leaders here today agree, growth and jobs must be our top priority," Obama said at the conclusion of the meeting.
"The direction the debate has taken recently should give us confidence that Europe is taking significant steps to manage the crisis," he said.
Ahead of the meeting, Obama jettisoned his neutrality, backing French and Italian efforts to rebalance German-led austerity-first policies.
Critics say two years of single-minded focus on debt reduction have fuelled rampant unemployment, brought Greece to the verge of bankruptcy and deepened crises in Italy and Spain.
Any deepening of those crises could have costly repercussions for the US economy and Obama's chances of re-election in November, factors that perhaps spurred him to wade into European political waters.
Inevitably that brought tensions with German Chancellor Angela Merkel that were evident throughout the summit.
Merkel has long demanded reforms be the first, second and third priorities as she tries to assuage German taxpayer opposition to repeated bailouts.
Her displeasure was evident Friday when a casually dressed President Obama greeted G8 leaders to his cabin for an informal dinner, designed to encourage candor.
It started well. Obama welcomed Merkel to the summit with a cordial: "How've you been?"
But when her response came-- a shrug and pursed lips -- Obama rushed to bridge the obvious gap: "Well, you have a few things on your mind," he conceded.
At the end of the meeting, Merkel insisted Germany and France were in agreement on the need for both growth and austerity, saying: "Otherwise we would not have been able to agree on a statement."
The statement, however, noted "the right measures are not the same for each of us."
The coming weeks will tell if the G8's new 30,000-foot view of mutually compatible austerity and stimulus survives contact with events on the ground.
Looking to the longer-term, there appeared to be broad agreement about specific European stimulus spending funded common European bonds and by the European Investment Bank.
"We should not just wait for structural reforms and the reduction of deficits to generate growth," said Italian Prime Minister Mario Monti.
"The European Union Council on 23rd (of May) should identify concrete paths, like reinforcing the capital of the European Investment Bank, project bonds and an evolution towards eurobonds."
Earlier discussions at the retreat's rustic collection of cabins in the wooded Catoctin Mountains focused heavily on Iran and the ongoing bloodshed in Syria.
G8 leaders sent a strong message to the Islamic Republic that tough energy sanctions would be firmly applied, vowing to ensure oil markets are adequately supplied and to prevent soaring crude prices.
The move came days before the next round of nuclear talks between global powers and Iran that will take place in Baghdad on Wednesday.
Obama said he was "hopeful" the negotiations would be productive and stressed that major powers were "unified" against Iran.
The G8 also called for a "political transition" in Syria and for the end to violence that has claimed an estimated 12,000 lives.
The group -- which includes long-time Syrian-ally Russia -- called for a "Syrian-led, inclusive political transition leading to a democratic, plural political system."
But as the United Nations weighs sending more military observers to the country, it was not clear whether Russia and the rest of the G8 had closed differences over the fate of Syrian President Bashar al-Assad's regime.
The G8 club of developed nations includes Britain, Canada, France, Germany, Italy, Japan, Russia and the United States.
The focus now turns to Chicago, where many of the members of the G8 will go next for a NATO summit.