change some gpu setting and kmeans