calclogdiff now uses GPU map. Refactored create buffer functions