The first group went to the final day, with Venezuela and the US progressing, with two teams from group B joining them.
The NBA will keep its academy in Senegal open as the league has made Africa a larger part of its global focus.