allocation bug fixed. Does not pass test lb_gpu.tcl