now sampling c on gpu