The 2001 film that has Ice Cube playing the character of James 'Desolation' Williams is "Ghosts of Mars". The film is an American science fiction action horror story. It was written, directed, and scored by John Carpenter. Sandy King is the executive who produced this film. The stars are Ice Cube, Natasha Henstridge, Jason Statham, Pam Grier, Clea DuVall, and Joanna Cassidy.

The film's plot is as follows. Long inhabited by human settlers, the Red Planet (Mars) has become the manifest destiny of an over-populated Earth. Nearly 640,000 people now live and work all over Mars, mining the planet for its abundant natural resources. One of the mining operations has now uncovered a deadly mother lode. In conjunction with the mining, a long-dormant Martian civilization has became a major problem. The indigenous warriors of Mars are systematically taking over the bodies of the human intruders.

Overall, this film received negative reviews from theater viewers and critics; it got just a 22% rating from Rotten Tomatoes. Earning 14 million US dollars at the box office, against a production budget of 28 million US dollars, "Ghosts of Mars" was a big commercial bomb.

More Info: en.wikipedia.org