San Francisco fire investigators are looking into whether welding work was to blame for a massive blaze that barreled through an apartment building construction site.

The fire Tuesday evening threatened nearby buildings, forcing officials to call in about half the city's on-duty firefighters.

Fire Chief Joanne Hayes-White says preliminary reports say workers were doing torch work at the site shortly before the fire was reported.