The penitentiary and the grounds and premises thereof, for the purpose of all judicial proceedings, is within and a part of the county of Burleigh, and the courts of that county have jurisdiction of all crimes or public offenses committed within the penitentiary. The jurisdiction of a crime or public offense committed within an affiliated facility of the penitentiary is in the county where the affiliated facility is located.
N.D.C.C. § 12-47-02