Searching for cosmic accelerators via IceCube