added device memsize log message
ops fix compilation errors, my bad