fix shared mem size
pass k to print coefs