CUDA based spinglass codes