The Rim fire near Yosemite National Park has grown to 105,620 acres -- or roughly 165 square miles -- in its sixth day of burning largely out of control through steep, rugged terrain.

Gov. Jerry Brown on Thursday declared a state of emergency as the wildfire spread in two directions. Having already destroyed nine structures, the fire was just 2% contained as of Friday, according to the U.S. Forest Service.

The fire in the Stanislaus National Forest also brought additional evacuation orders from the Tuolumne County Sheriff's Office as flames moved west toward homes in Pine Mountain Lake and west toward Camp Mather, which is near the border of Yosemite.

PHOTOS: Rim fire rages near Yosemite

Evacuations have also taken place in numerous small vacation communities in the area.

The blaze was spewing thick clouds of smoke that stretched as far as Reno, about 160 miles away.

The cost of fighting the fire, which has been burning since Saturday afternoon, had exceeded $5 million as of Thursday.

California 120, the highway leading to the west side of Yosemite, remained closed. But entrances to the park from the south -- on highways 41 and 4 -- remained open and Yosemite Valley was free from smoke, officials said.

Yosemite National Park remained open, and alternate routes are available for visitors planning to leave.

ALSO:

Rim fire near Yosemite grows to more than 63,000 acres

Suspect named in slaying of transgender woman in Fontana

Shots hit 2 boys and a man near South L.A. gang fight, police say

jill.cowan@latimes.com

Twitter: @jillcowan