Magnus Carlsen decided to leave the tournament on Friday when FIDE barred the Norwegian from participating in a round at the tournament due to his breach of dress code regulations.