Suncor Energy Inc (SU.TO) said on Wednesday it and Teck Resources Ltd (TECKb.TO) have taken higher stakes in the Fort Hills oil sands mine from partner Total SA, resolving a dispute over building costs.

Under terms of the deal, Suncor and Teck will fund more of the $17 billion project's capital cost - $300 million and $120 million more respectively. Suncor's share of the project will be 53.06 per cent, compared to 20.89 per cent for Teck and 26.05 per cent for Total.

Calgary-based Suncor, Canada's second-largest energy producer, told investors last July it was in dispute with the French company, which had refused to provide any more funding for the massive project in northern Alberta.

"We're pleased to have reached this agreement and taken a bigger stake in what is arguably the best long-term growth project in our industry," Suncor chief executive Steve Williams said in a statement.

Fort Hills produced 6,000 barrels per day during fourth-quarter test runs and is expected to fully start production in mid-January when the first of three secondary extraction trains starts up, Suncor said.

The company had previously said it would produce first oil at Fort Hills by the end of 2017.

Once ramp-up operations are complete, Fort Hills will produce 190,000 barrels per day and Suncor expects the plant to reach 90 per cent of capacity by year-end 2018.

The startup comes as increasing oil sands supply outpaces Canadian pipeline capacity, contributing to a deepening price discount for Canadian heavy crude compared to benchmark West Texas Intermediate (WTI).

Suncor produced 736,000 barrels of oil equivalent per day in the fourth quarter of 2017, in line with record production in the previous quarter.