Carnegie Mellon Optimized Parallel Distribution Load Flow Solver on Commodity Multi-core CPU Tao Cui (Presenter) Franz Franchetti Dept. of ECE. Carnegie.

Slides:



Advertisements
Similar presentations
Coordination of Multi-Agent Systems Mark W. Spong Donald Biggar Willett Professor Department of Electrical and Computer Engineering and The Coordinated.
Advertisements

Vectors, SIMD Extensions and GPUs COMP 4611 Tutorial 11 Nov. 26,
Copyright© 2011, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners. Intel ® Software Development.
Carnegie Mellon Automatic Generation of Vectorized Fast Fourier Transform Libraries for the Larrabee and AVX Instruction Set Extension Automatic Generation.
Scalable Multi-Cache Simulation Using GPUs Michael Moeng Sangyeun Cho Rami Melhem University of Pittsburgh.
Sistan & Balouchestan Electric Power Distribution Company
Overview Motivations Basic static and dynamic optimization methods ADAPT Dynamo.
Distribution System Analysis for Smart Grid Roger C. Dugan Sr. Technical Executive, EPRI Webcast Feb 8, 2011.
Multi-Area Stochastic Unit Commitment for High Wind Penetration in a Transmission Constrained Network Shmuel Oren University of California, Berkeley Joint.
Development of a track trigger based on parallel architectures Felice Pantaleo PH-CMG-CO (University of Hamburg) Felice Pantaleo PH-CMG-CO (University.
Convey Computer Status Steve Wallach swallach”at”conveycomputer.com.
March 18, 2008SSE Meeting 1 Mary Hall Dept. of Computer Science and Information Sciences Institute Multicore Chips and Parallel Programming.
Simulation Where real stuff starts. ToC 1.What, transience, stationarity 2.How, discrete event, recurrence 3.Accuracy of output 4.Monte Carlo 5.Random.
Ee392n - Spring 2011 Stanford University Intelligent Energy Systems 1 Lecture 3 Intelligent Energy Systems: Control and Monitoring Basics Dimitry Gorinevsky.
CSE351/ IT351 Modeling and Simulation
High Performance Computing 1 Parallelization Strategies and Load Balancing Some material borrowed from lectures of J. Demmel, UC Berkeley.
Carnegie Mellon Adaptive Mapping of Linear DSP Algorithms to Fixed-Point Arithmetic Lawrence J. Chang Inpyo Hong Yevgen Voronenko Markus Püschel Department.
Center for Embedded Computer Systems University of California, Irvine and San Diego Loop Shifting and Compaction for the.
Compilation, Architectural Support, and Evaluation of SIMD Graphics Pipeline Programs on a General-Purpose CPU Mauricio Breternitz Jr, Herbert Hum, Sanjeev.
1 Computer Science, University of Warwick Architecture Classifications A taxonomy of parallel architectures: in 1972, Flynn categorised HPC architectures.
Implementation of adaptive control algorithm based on SPOC form
SPL: A Language and Compiler for DSP Algorithms Jianxin Xiong 1, Jeremy Johnson 2 Robert Johnson 3, David Padua 1 1 Computer Science, University of Illinois.
University of Zagreb MMVE 2012 workshop1 Towards Reinterpretation of Interaction Complexity for Load Prediction in Cloud-based MMORPGs Mirko Sužnjević,
Folklore Confirmed: Compiling for Speed = Compiling for Energy Tomofumi Yuki INRIA, Rennes Sanjay Rajopadhye Colorado State University 1.
Short Vector SIMD Code Generation for DSP Algorithms
High Performance Linear Transform Program Generation for the Cell BE
Prajwal K. Gautam, Dept. of Electrical and Computer Engineering Dr. Ganesh K. Venayagamoorthy, Dept of Electrical & Computer Engineering Dr. Keith A. Corzine,
COMPUTER SCIENCE &ENGINEERING Compiled code acceleration on FPGAs W. Najjar, B.Buyukkurt, Z.Guo, J. Villareal, J. Cortes, A. Mitra Computer Science & Engineering.
Multi-core architectures. Single-core computer Single-core CPU chip.
Optimal Power Control, Rate Adaptation and Scheduling for UWB-Based Wireless Networked Control Systems Sinem Coleri Ergen (joint with Yalcin Sadi) Wireless.
An Autonomic Framework in Cloud Environment Jiedan Zhu Advisor: Prof. Gagan Agrawal.
MS Thesis Defense “IMPROVING GPU PERFORMANCE BY REGROUPING CPU-MEMORY DATA” by Deepthi Gummadi CoE EECS Department April 21, 2014.
A Framework for Elastic Execution of Existing MPI Programs Aarthi Raveendran Tekin Bicer Gagan Agrawal 1.
Carnegie Mellon Generating High-Performance General Size Linear Transform Libraries Using Spiral Yevgen Voronenko Franz Franchetti Frédéric de Mesmay Markus.
A Framework for Elastic Execution of Existing MPI Programs Aarthi Raveendran Graduate Student Department Of CSE 1.
Parallel Programming Overview Dr Andy Evans. A few terms from standard programming Process: a self-contained chunk of code running in its own allocated.
Chih-Ming Chen, Student Member, IEEE, Ying-ping Chen, Member, IEEE, Tzu-Ching Shen, and John K. Zao, Senior Member, IEEE Evolutionary Computation (CEC),
Spiral: an empirical search system for program generation and optimization David Padua Department of Computer Science University of Illinois at Urbana-
Stochastic optimization of energy systems Cosmin Petra Argonne National Laboratory.
Offloading to the GPU: An Objective Approach
Simulation is the process of studying the behavior of a real system by using a model that replicates the behavior of the system under different scenarios.
1CPSD Software Infrastructure for Application Development Laxmikant Kale David Padua Computer Science Department.
Carnegie Mellon High-Performance Code Generation for FIR Filters and the Discrete Wavelet Transform Using SPIRAL Aca Gačić Markus Püschel José M. F. Moura.
Sparse Matrix Vector Multiply Algorithms and Optimizations on Modern Architectures Ankit Jain, Vasily Volkov CS252 Final Presentation 5/9/2007
Nanco: a large HPC cluster for RBNI (Russell Berrie Nanotechnology Institute) Anne Weill – Zrahia Technion,Computer Center October 2008.
Manno, , © by Supercomputing Systems 1 1 COSMO - Dynamical Core Rewrite Approach, Rewrite and Status Tobias Gysi POMPA Workshop, Manno,
QCAdesigner – CUDA HPPS project
GPU Based Sound Simulation and Visualization Torbjorn Loken, Torbjorn Loken, Sergiu M. Dascalu, and Frederick C Harris, Jr. Department of Computer Science.
Linear Algebra Libraries: BLAS, LAPACK, ScaLAPACK, PLASMA, MAGMA
Scalable Terrain Rendering Data Management Infrastructure Ricardo Veguilla March 7, 2007.
Approximate Computing on FPGA using Neural Acceleration Presented By: Mikkel Nielsen, Nirvedh Meshram, Shashank Gupta, Kenneth Siu.
Performance Analysis of Divide and Conquer Algorithms for the WHT Jeremy Johnson Mihai Furis, Pawel Hitczenko, Hung-Jen Huang Dept. of Computer Science.
Monte Carlo Linear Algebra Techniques and Their Parallelization Ashok Srinivasan Computer Science Florida State University
Circuit Simulation using Matrix Exponential Method Shih-Hung Weng, Quan Chen and Chung-Kuan Cheng CSE Department, UC San Diego, CA Contact:
3/12/2013Computer Engg, IIT(BHU)1 CUDA-3. GPGPU ● General Purpose computation using GPU in applications other than 3D graphics – GPU accelerates critical.
My Coordinates Office EM G.27 contact time:
Background Computer System Architectures Computer System Software.
Hao Zhu Dept. of Electrical & Computer Engineering University of Illinois, Urbana-Champaign ECE 498HZ: Power Distribution System Analysis.
Learning A Better Compiler Predicting Unroll Factors using Supervised Classification And Integrating CPU and L2 Cache Voltage Scaling using Machine Learning.
Hao Jan (Max) Liu Dept. of Electrical & Computer Engineering University of Illinois, Urbana-Champaign ECE 498HZ: Power Distribution.
Introduction to Performance Tuning Chia-heng Tu PAS Lab Summer Workshop 2009 June 30,
TEMPLATE DESIGN © H. Che 2, E. D’Azevedo 1, M. Sekachev 3, K. Wong 3 1 Oak Ridge National Laboratory, 2 Chinese University.
Distribution System Analysis for Smart Grid
Auburn University COMP8330/7330/7336 Advanced Parallel and Distributed Computing Parallel Hardware Dr. Xiao Qin Auburn.
I. CVETKOVIC, D. BOROYEVICH, R. BURGOS, C. LI, P. MATTAVELLI
Parallel Objects: Virtualization & In-Process Components
Distribution Feeder Voltage Regulation and Control
A Framework for Automatic Resource and Accuracy Management in A Cloud Environment Smita Vijayakumar.
Department of Computer Science University of California, Santa Barbara
Jakov Chavez Vega Kalle Valtavirta
Presentation transcript:

Carnegie Mellon Optimized Parallel Distribution Load Flow Solver on Commodity Multi-core CPU Tao Cui (Presenter) Franz Franchetti Dept. of ECE. Carnegie Mellon University Pittsburgh PA This work is supported by NSF &

Carnegie Mellon Smart Grids 2 Image by Dr. M.Sanchez

Carnegie Mellon Smart Grids New players in the grid Challenges  Undispatchable, large variances, great impact on grid  Large population exhibits stochastic properties 3 Images from wikipedia Source: LBNL-3884eSource: ORNL/TM2004/291 Source: Pantos 2011

Carnegie Mellon 4 Conventional Distribution System  Passively receiving power  Few realtime monitoring or controls Challenges in Distribution System  Solar, wind, stochastic  Large variance and impact Smart Distribution System  New Sensors: Smart Meters  High Performance Deskside Supercomputer A Computational Tool for Probabilistic Grid Monitoring Motivation Image from: Wikipedia ~Tflop/s $1000 1kW power Image from: Dell

Carnegie Mellon Outline Motivation Distribution System Load Flow Analysis Code Optimization Real Time Implementation Conclusion 5

Carnegie Mellon 6 Core: Distribution Load Flow Distribution System:  Radial, high R/X ratio, varying Z, unbalanced  NOT suitable for transmission load flow  Forward / Backward Sweep (FBS)  Implicit Z-matrix, detail model, convergence Generalized Component Model [Kersting2006]  One Terminal Node Model: Constant PQ:  Two Terminal Link Model: Source: IEEE PES Distribution System Analysis Subcommittee IEEE 37 NodeTest Feeder: Based on an actual feeder in California Backward: Forward:

Carnegie Mellon 7 Core: Distribution Load Flow Forward / Backward Sweep [Kersting2006]  Branch current based  Input: substation voltage, load; output: all node voltages  Steps:  1: Initial current = 0, Initial voltage V = V 0 ;  2: Compute node current I n using Node model;  3: Backward: Compute branch current I b using Link model & KCL;  4: Forward: Update V k+1 = V k based on I b over Link model;  5: Check convergence (|dS|<Error Limit) stop or go to step 2. Forward Backward IEEE 4 Node Test Feeder Example

Carnegie Mellon 8 Core: Distribution Load Flow 3-Phase Voltage on IEEE 37 Nodes Test Feeder Phase APhase B Phase C ANSI C84.1: Nominal: 115, Range A:110~126V Range B:107~127V Nominal

Carnegie Mellon 9 Our Approach Random Number Generator  Basic Uniform RNG + Transformation for different PDFs  Parallel strategy for multi-thread implementation Optimized Parallel Distribution Load Flow Solver  Code optimizations  Highly parallel implementation for Monte Carlo applications Density Estimation & Visualization  Kernel density estimation Random Variable Sampling Parallel High Performance Power Flow Solver

Carnegie Mellon Outline Motivation Distribution System Load Flow Analysis Code Optimization Real Time Implementation Conclusion 10

Carnegie Mellon 11 Optimization: Data Structures Data Structure Optimization  Baseline: C++ object oriented, a tree object  Translate to array access, exploit spatial/temporal locality  Other techniques: unroll innermost loops, scalar replacement, pre- compute as much as possible (C++) (C Array) GridLab-D: the Smart Grid Simulator opensource since 2009

Carnegie Mellon Optimization: Pattern Based Syntehsis 12 Algorithm-level Optimization  Pattern based matrix-vector multiplication For A,B,c,d matrices:  Multi-grounded Cable: diagonal matrix  Ignore shunt & coupling: c = 0, d = I, A = I Reduce unnecessary operations Reduce unnecessary storage for better memory access Similar to [Belgin2009] case 1:case 2:case N: … code 1code 2code N (C Pattern) switch (mat_type){ case real_diag_equal_mat: output[0] = *constant * input[0];... output[5] = *constant * input[5]; break; case imag_diag_equal_mat: output[0] = -*constant * input[3]; output[1] = -*constant * input[4]; output[2] = -*constant * input[5]; output[3] = *constant * input[0]; output[4] = *constant * input[1]; output[5] = *constant * input[2]; break;... }

Carnegie Mellon 13 Data Parallelism (SIMD) SIMD parallelization  SIMD: Single Instruction Multiple Data SSE: Streaming SIMD Extensions  128bit, 4 floats in one register  eg. 4 “fadd” at cost of 1 “addps” AVX: Advanced Vector eXtensions (256bit, 8 floats), Larrabee (512bit, 16 floats)  Vectorized solver on SIMD level for MCS:  Assumptions & Limitations: converge at same step vector register xmm1 vector operation addps xmm0, xmm1 xmm0 4-way SSE example (SIMD)

Carnegie Mellon Variant Synthesis with SPIRAL 14 Symbolic process [Puschel2005] :  pattern based matrix vector product code case 1:case 2:case N: … SPL Compiler

Carnegie Mellon Multithreading, Run across All CPUs  Vectorized load flow solver in each thread  Each thread pinned to a physical core exclusively  Fully utilize computation power of Multi-core CPUs  Double buffer (automatic load balancing for MCS application) 15 (Multi-Core) Multithreading

Carnegie Mellon 16 Performance Results: Across Sizes Performance of Optimized Code, Mass Amount Load Flow Pseudo flop/s: >60 % peak Flop/s: 50% Peak

Carnegie Mellon Details: Performance Gains 17 >20x >50x

Carnegie Mellon Performance Results: Across Machines 18 Problem Size (IEEE Test Feeders) Approx. flops Approx. Time / Core2 Extreme Approx. Time / Core i7 Baseline. C++ ICC –o3 (~300x faster then pure Matlab scripts) Comments IEEE37: one iteration12 K~ 0.3 us IEEE37: one load flow (5 Iter)60 K~ 1.5 us 0.01 kVA error IEEE37: 1 million load flow60 G~ < 2 s~ < 1 s~ 60 s (>5 hrs Matlab)SCADA Interval: 4 seconds IEEE123: 1 million load flow200 G~ < 10 s~ < 3.5 s~ 200 s (>15 hrs Matlab)

Carnegie Mellon 19 Accuracy Convergence of Monte Carlo  Very crude. MCG59+ICDF, 50 trials with “time(NULL)” seeds Out: Voltage on Node 738 In: Active Power P~ u=0,std=100kw on Phase A of Node 738,711,741

Carnegie Mellon Outline Motivation Distribution System Load Flow Analysis Code Optimization Real Time Implementation Conclusion 20

Carnegie Mellon 21 System Implementation Distribution System Probabilistic Monitoring System (DSPMS)  System Structure:  MCS solver running on Multi-core Desktop Server (Code optimization)  Results published via ECE Web Server (TCP/IP socket)  Web based dynamic User Interface by client side scripts (JavaScript)  Smart meters in campus building (MODBUS/TCP)

Carnegie Mellon 22 System Implementation Distribution System Probabilistic Monitoring System (DSPMS)  Web Server and User Interface  Link:

Carnegie Mellon 23 Conclusion Smart Distribution Network: Impact of renewable and stochastic Commodity HPC & code optimization: Millions of cases /sec on $1K class machine Distribution System Probabilistic Monitor: A prove of concept real time application source: LBNL-3884e

Carnegie Mellon References [LBNL-3884E]. Mills, A. Implications of Wide-Area Geographic Diversity for Short-Term Variability of Solar Power, LBNL-3884E. Lawrence Berkeley National Laboratory, Berkeley, [ORNL/TM2004/291]. B. Kirby, "Frequency Regulation Basics and Trends," ORNL/TM 2004/291, Oak Ridge National Laboratory, December [Pantos2011]. Miloš Pantoš Stochastic optimal charging of electric-drive vehicles with renewable energy Energy, Volume 36, Issue 11, November 2011 [Ghosh97]. A.K. Ghosh, D. L. Lubkeman, M. J. Downey, R. H. Jones “Distribution Circuit State Estimation Using a Probabilistic Approach,” IEEE Transactions on Power Systems, vol. 12, no. 1, pp , 1997 [Belgin2009]. M. Belgin, G. Back, and C. J. Ribbens, “Pattern-based sparse matrix representation for memory-efficient smvm kernels,” in Proceedings of the 23rd international conference on Supercomputing, ser. ICS ’09. New York, NY, USA: ACM, 2009, pp. 100–109. [Puschel2005]. M. Puschel, J. M. F. Moura, J. Johnson, D. Padua, M. Veloso, B. Singer, J. Xiong, F. Franchetti, A. Gacic, Y. Voronenko, K. Chen, R. W. Johnson, and N. Rizzolo, “SPIRAL: Code generation for DSP transforms,” Proceedings of the IEEE, special issue on “Program Generation, Optimization, and Adaptation”, vol. 93, no. 2, pp. 232– 275, [Kersting2006]. W. Kersting, Distribution system modeling and analysis. CRC,

Carnegie Mellon The End Thank You! Q&A 25