The Australian sharemarket closed flat as gains in the mining and energy sector were offset by losses in the tech sector.