MIAMI — Free-agent forward Derrick Williams announced Friday that he has agreed to sign with the Miami Heat.

A person with direct knowledge of the negotiations confirmed the one-year deal to The Associated Press.

Williams is entering his sixth NBA season. The No. 2 overall pick in the 2011 draft, he has spent time with Minnesota, Sacramento and New York. Williams averaged 9.3 points in 80 games last season for the Knicks, mostly as a reserve.

THUNDER: Forward Mitch McGary has been suspended five games without pay for violating the terms of the NBA’s anti-drug program.

McGary’s suspension will begin with the next regular-season game that he is eligible and physically able to play.

McGary apologized to the organization, teammates and fans in a statement released by the team. He played little last season, and left the team for undisclosed personal reasons late in the year.

“I realize there are only so many opportunities given to you and I need make sure that as a person and as a player, I take accountability and ensure that this does not happen again,” McGary said.

McGary had drug issues in college. He played just eight games his sophomore season at Michigan after electing to have back surgery, then tested positive for marijuana and faced a suspension, prompting him to enter the 2014 draft.

WARRIORS: Golden State resigned free-agent guard Ian Clark, who averaged 3.6 points in 66 games last season.