Some marathons are warning runners when conditions increase the risk of heatstroke.