sgd: make compile