Scalable locality

Computer software is said to exhibit scalable locality[1] if it can continue to make use of processors that out-pace their memory systems, to solve ever larger problems. This term is a high-performance uniprocessor analog of the use of scalable parallelism to refer to software for which increasing numbers of processors can be employed for larger problems.

Overview

Consider the memory usage patterns of the following loop nest (an iterative two-dimensional stencil computation):

for t := 0 to T do
    for i := 1 to N-1 do
        for j := 1 to N-1 do
            new(i,j) := (A(i-1,j) + A(i,j-1) + A(i,j) + A(i,j+1) + A(i+1,j)) * .2
        end
    end

    for i := 1 to N-1 do
        for j := 1 to N-1 do
            A(i,j) := new(i,j)
        end
    end
end

The entire loop nest touches about 2*N**2 array elements, and performs about 5*T*N**2 floating-point operations. Thus, the overall compute balance (ratio of floating-point computations to floating-point memory cells used) of this entire loop nest is about 5T/2. When the compute balance is a function of problem size, as it is here, the code is said to have scalable compute balance. Here, we could achieve any compute balance we desire by simply choosing a large enough T.

However, when N is large, this code will still not exhibit good cache reuse, due to poor locality of reference: by the time new(1,1) is needed in the second assignment, or the second time step's execution of the first assignment, the cache line holding new(1,1) will have been overwritten with some other part of one of the arrays.

Tiling of the first i/j loop nest can improve cache performance, but only by a limited factor, since that nest has compute balance of about 5/2. To produce a very high degree of locality, for example 500 (to run this code efficiently with an array that will not fit in RAM and is relegated to virtual memory), we must re-use values across time steps.

Optimization across time steps has been explored in a number of research compilers; see work by Wonnacott,[1][2] by Song and Li,[3] or by Sadayappan et al.[4] for details of some approaches to time-tiling. Wonnacott[1] demonstrated that time tiling could be used to optimize for out-of-core data sets; in principle, any of these approaches[2][3][4] should be able to achieve arbitrarily high memory locality without requiring that the entire array fit in cache (the cache requirement does, however, grow with the required locality). The multiprocessor techniques cited above[2][4] should, in principle, simultaneously produce scalable locality and scalable parallelism.

References

  1. ^ a b c David Wonnacott. Achieving Scalable Locality with Time Skewing. International Journal of Parallel Programming 30.3 (2002)
  2. ^ a b c David Wonnacott. Using Time Skewing to eliminate idle time due to memory bandwidth and network limitations. International Parallel and Distributed Processing Symposium 2000
  3. ^ a b Yonghong Song and Zhiyuan Li. New tiling techniques to improve cache temporal locality. PLDI '99
  4. ^ a b c Sriram Krishnamoorthy and Muthu Baskaran and Uday Bondhugula and J. Ramanujam and Atanas Rountev and P. Sadayappan. Effective automatic parallelization of stencil computations. PLDI '07

Read other articles:

Notable people who converted to Islam Converts to IslamTotal population According to The Jerusalem Post, in the United Kingdom and France, up to 100,000 people converted in the last decade in each country.[1] According to Yedioth Ahronoth, Germany has up to 4,000 a year.[2] According to The Guardian, about 5,000 British people convert to Islam every year, mostly women.[3] According to The New York Times, 25,000 Americans convert to Islam every year.[4] Part of ...

 

Coupe du monde de parapente 2015 à proximité de Bir-Billing Présentation La Coupe du monde de parapente est un circuit de compétitions internationales de haut niveau qui se déroule sur plusieurs épreuves chaque année. Ce circuit a vu le jour en 1992 et est géré par une association à but non lucratif Paragliding World Cup Association ou PWCA basée à Marlens (France) dont les membres sont les compétiteurs eux-mêmes. Chaque compétition dure une semaine et se compose de plusieurs m...

 

Local authority for Shetland, Scotland Shetland Islands Council Comhairle ShealtainnFull council election every 5 yearsCoat of armsCouncil logoTypeTypeUnitary authority HistoryFounded1975LeadershipConvenerAndrea Manson, Independent since 23 May 2022 LeaderEmma MacDonald, Independent since 23 May 2022 Chief ExecutiveMaggie Sandison since 28 February 2018[1] StructureSeats23 councillorsPolitical groups  Independent (20)   Greens (1)   SNP (1)  ...

Internal Bleeding StrawberryAlbum mini karya OliviaDirilis21 Februari 2003Direkam2003GenreRock/AlternativeDurasi26:42BahasaBahasa Jepang/Bahasa InggrisLabelavex traxAlbum mini Olivia Internal Bleeding Strawberry(2003) Merry&Hell Go Round(2003)Merry&Hell Go Round2003 Internal Bleeding Strawberry adalah album mini pertama Olivia dirilis pada tanggal 21 Februari 2003[1] dan dirilis ulang oleh Tower Records Japan pada tanggal 12 Desember 2003. Daftar lagu Sea Me Solarhalfbreed...

 

Indian actress This article is about the Indian actress born in 1982. For the Indian actress born in 1985, see Meenakshi (Malayalam actress). For other people, see Meenakshi (name). MeenakshiMeenakshi posing with a copy of the Thangam magazineBornPinky Sarkar (1982-08-06) 6 August 1982 (age 41)Kolkata, West Bengal, IndiaNationalityIndianOccupationActressYears active2006–2017 Pinky Sarkar (born 6 August 1982[1]) better known as Meenakshi, is an Indian actress, who appears i...

 

село Чорна Країна  Україна Область Хмельницька область Район Хмельницький Громада Староостропільська сільська громада Код КАТОТТГ UA68040410160020010 Основні дані Засноване 1861 Населення 448 Площа 2,062 км² Густота населення 217,26 осіб/км² Поштовий індекс 31140 Телефонний код +3...

CA76Stasiun Hozumi穂積駅Pintu keluar utara Stasiun Hozumi, Agustus 2007Lokasi370 Beppu, Mizuho-shi, Gifu-ken 501-0222JepangKoordinat35°23′46″N 136°41′36″E / 35.3961°N 136.6933°E / 35.3961; 136.6933Koordinat: 35°23′46″N 136°41′36″E / 35.3961°N 136.6933°E / 35.3961; 136.6933Pengelola JR Central Japan Freight Railway Company Jalur Jalur Utama TōkaidōLetak dari pangkal402.3 km dari TokyoJumlah peron1 peron pulauJumlah ja...

 

United States historic placeThe Historic Bakersfield Californian BuildingU.S. National Register of Historic Places Street (east) facade of main building.Show map of Bakersfield, CaliforniaShow map of CaliforniaShow map of the United StatesLocation1707 Eye St., Bakersfield, CaliforniaCoordinates35°22′30″N 119°1′10″W / 35.37500°N 119.01944°W / 35.37500; -119.01944Area0.5 acres (0.20 ha)Built1926Built byHenry EisslerArchitectCharles H. BiggarArchitectural...

 

American singer (born 1987) Frank OceanOcean in 2021BornChristopher Edwin Breaux (1987-10-28) October 28, 1987 (age 36)Long Beach, California, U.S.Occupations Singer songwriter rapper record producer Years active2005–presentOrganizationHomerWorksDiscographyproductionAwardsFull listMusical careerOriginNew Orleans, Louisiana, U.S.Genres Alternative R&B pop psychedelic soul avant-soul Instrument(s) Vocals keyboards Labels Blonded[a] Def Jam RedZone Formerly ofOdd FutureWe...

2008 South Korean television series Jungle FishPromotional posterHangul정글피쉬Revised RomanizationJeonggeulpiswi GenreTeen dramaWritten by Seo Jae-won Kim Kyung-min Im Chae-joon Directed byChoi Sung-bumStarring Kim Soo-hyun Park Bo-young Country of originSouth KoreaOriginal languageKoreanNo. of episodes1ProductionExecutive producerKim Gwang-pilProducerKim Jeong-hwanProduction locationsSeoul, South KoreaRunning time60 minutesOriginal releaseNetworkKBS2ReleaseMay 5, 2008 (20...

 

Class of chemical compounds composed of iron and oxygen Electrochemically oxidized iron (rust) Iron oxides are chemical compounds composed of iron and oxygen. Several iron oxides are recognized. Often they are non-stoichiometric. Oxyhydroxides are a related class of compounds, perhaps the best known of which is rust.[1] Iron oxides and oxyhydroxides are widespread in nature and play an important role in many geological and biological processes. They are used as iron ores, pigments, ca...

 

Perdana Menteri SarawakPremier Sarawak ڤريميير سراوقPetahanaAbang Abdul Rahman Zohari Abang Opengsejak 1 Maret 2022GelarYang Amat Berhormat(resmi)StatusKepala pemerintahanAnggotaKabinet SarawakAtasanDewan Undangan Negeri SarawakKantorWisma Bapa Malaysia, Petra Jaya, KuchingDitunjuk olehAbdul Taib Mahmudsebagai Yang di-Pertua NegeriMasa jabatan5 tahunDasar hukumUndang-Undang Negara Bagian SarawakPejabat perdanaStephen Kalong Ningkan (sebagai Ketua Menteri)Abang Johari Openg (s...

Deckengestaltung des Kaskade-Kinos Außenansicht vom Königsplatz (2013) Kaskade ist ein ehemaliges denkmalgeschütztes[1] Kino am Königsplatz in Kassel. Inhaltsverzeichnis 1 Geschichte 2 Neuinterpretation im Filmpalast 3 Weblinks 4 Literatur 5 Einzelnachweise Geschichte 1952 fand die Eröffnung des von Paul Bode entworfenen Kinos statt. Es war in Besitz der Filmtheaterbetriebe Georg Reiss und hatte ursprünglich ein Fassungsvermögen von 903 Plätzen. Der Entwurf des Saals galt als ...

 

吉野線 16200系電車「青の交響曲」(吉野神宮駅 - 吉野駅間)基本情報国 日本所在地 奈良県起点 橿原神宮前駅終点 吉野駅駅数 16駅路線記号 F開業 1912年10月25日全通 1928年3月25日所有者 近畿日本鉄道運営者 近畿日本鉄道車両基地 古市検車区六田車庫使用車両 車両の節を参照路線諸元路線距離 25.2 km軌間 1,067 mm (狭軌)線路数 単線電化方式 直流1,500 V 架空電車線方式閉塞...

 

Historical period of Greece This article's lead section may be too short to adequately summarize the key points. Please consider expanding the lead to provide an accessible overview of all important aspects of the article. (September 2019) Part of a series on the History of Greece Neolithic Greece Pelasgians Greek Bronze Age Helladic Cycladic Minoan Mycenaean Greece 1750 BC–1050 BC Ancient Greece Greek Dark Ages 1050 BC–750 BC Archaic Greece 800 BC–480 BC Classical Greece 500 BC–323BC...

Jerónimo Borao y Clemente Rector de la Universidad de Zaragoza (1.ª vez) 1855-1857Predecesor Eusebio Lera y AznarSucesor Simón Martín Sanz Rector de la Universidad de Zaragoza (2.ª vez) 1868-1872Predecesor Enrique Sánchez-Muñoz BassieroSucesor José Nieto Álvarez Rector de la Universidad de Zaragoza (3.ª vez) 1874-1879Predecesor José Nieto ÁlvarezSucesor José Nadal Escudero Información personalNacimiento 1821 Zaragoza (España) Fallecimiento 23 de noviembre de 1878 o 1878 Zaragoz...

 

Paliki, Kefalonia (Cephalonia) & Ithaki (the traditional Ithaca): click map to show scale — Homer said Ithaca was low-lying Odysseus Unbound is a 2005 book by Robert Bittlestone, with appendices by the philologist James Diggle and the geologist John Underhill. The book investigates the location of Homer's Ithaca, arguing that Paliki, a peninsula of Kefalonia, was an island at the time of the Trojan War, and that it was the island referred to as Ithaca in the Odyssey.[1] The accu...

 

This article is about San Bartolomé on the island of Gran Canaria. For San Bartolomé on the island of Lanzarote, see San Bartolomé, Las Palmas. You can help expand this article with text translated from the corresponding article in Spanish. (May 2020) Click [show] for important translation instructions. View a machine-translated version of the Spanish article. Machine translation, like DeepL or Google Translate, is a useful starting point for translations, but translators must revise ...

Guidance relationship Mentor and Protégé redirect here. For other uses, see Mentor (disambiguation) and Protégé (disambiguation). An army trainer mentors new soldiers. Mentorship is the patronage, influence, guidance, or direction given by a mentor.[1] A mentor is someone who teaches or gives help and advice to a less experienced and often younger person.[2] In an organizational setting, a mentor influences the personal and professional growth of a mentee. Most traditional...

 

For the 2018 film directed by Tom Harper, see Wild Rose (film). For the Canadian TV show, see Wild Roses (TV series). 2017 Polish filmWild RosesFilm posterDirected byAnna JadowskaWritten byAnna JadowskaProduced byIzabela Igel, Roman JaroszStarringMarta Nieradkiewicz, Michał Żurawski, Halina Rasiakówna, Konrad Skolimowski, Natalia Bartnik[1]CinematographyMałgorzata SzyłakEdited byAnna MassMusic byAgnieszka StulgińskaProductioncompaniesAlter Ego Pictures, Canal+ Poland, Polish Fil...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!