SlideShare a Scribd company logo
Putting a Heart into a Box GPGPU simulation of a Cardiac Model  on the Xbox 360  Dr Simon Scarle Serious Games Institute Coventry University
Outline Me : Where I’m from and what I do/did Serious Games: Tito Beco Games with a Purpose & GPGPU Particles  Cardiac Modelling Previous work XBox 360 GPU In the News Public Understanding of Science Exchange between research and Games
Who am I? BSc Mathematical Physics UMIST PhD Theoretical Physics KCL Substitutional defects in semiconductors PDRA Extended linear Defects Thin film delamination Ion motion in a polymer Electro-cardio dynamics Rare STG Serious Games Project Senior Programmer
Serious Games Project
Basic Ideas ,[object Object]
NHS fundedTo inform children about ideas related to good nutrition and exercise  Key stage 2 8-11 years No overt teaching Information as much as possible presented via Gameplay not “lecturing” (Everand) Physically Enhanced puzzles Simple and well known puzzle game formats presented in a motion controlled manner As much as possible all interaction via motion Not as good a “real” exercise but better than a controller
Game Demo
Games Hardware: Serious Use University of Illinois 70 PS2 supercomputer Folding/SETI at Home Folding Game – Games with a Purpose New Scientist Article  Games Consoles Reveal their Hidden Power 16 linked PS3’s calculating gravity waves from black hole collisions Other researchers using high-end graphics cards on PC’s to simulate the repulsion between two electrons in an atom
But it’s only a Games Console? Almost by definition the current Generation of games consoles and PCs are the most powerful bangs per buck computing hardware you can buy The cell chip at the heart of the PS3 is the CPU now used in IBM’s high-end systems XBox 360 Xenon – triple core 3.2 GHz PowerPC processor Custom ATI 500 MHz GPU
What is GPGPU? General-Purpose computation on the GPU General-Programming on the GPU Modern Graphical Processing Units are highly optimised parallel computing devices But highly optimised for graphics But if your problem can be put in a form usable by the GPU you can still exploit this GPU becoming more programmable HLSL (cut down C ) Compute Unified Device Architecture (Nvidia) GPGPU increasingly being used for HPC
Why am I here?
GPU Coding vertex shader pixel shader Transform object’s vertex coordinates from its own space to that of viewpoint given by the “camera” pass this information on to pixel shader also further info normal, (bi-)tangent, UV coordinates Rasterisation Three vertices of  a triangle extrapolate given values of the vertices across this triangle  calculate the required colour of the final pixel using data from vertex shader
GPGPU example Particles ancillary or secondary animation Basic physics simulation of a large number of non interacting point particles used for various special effects ,[object Object]
fire
smoke
clouds
dust
mud
fairy sparkles
explosions
rain
fog
snow
blood splatter,[object Object]
Particle GPGPU simulation vertex struct VS_INPUT { 		float4 pos : 				POSITION; 	float4 vel : 				TANGENT; }; pos x, y, z Life Time vel x’, y’, z’ Life Left
A More Realer World Problem Abnormal propagation of electrical excitation in the heart Cardiac arrhythmias Ventricular tachycardia & fibrillation Leads to sudden cardiac death Largest categorical cause of death in the industrialized world My previous work used a genetic algorithm to evolve diseased tissue structures that were increasingly arrhythmic
Product of the GA
The Mathematical model Mono-domain equation Fenton-Karma 4 variable FK4v Vm, v, w & d DIFFUSIVE PART INTERNAL PART Cm membrane capacitance Vm voltage across cell membrane  D Diffusion tensor Iion membrane current flow
Fenton Karma 4 Variable Well used basic model Jfi fast inward Na+ Jsi slow inward Ca+ Jso slow outward K+ Cardiac cell behaviour excitable refractory recovery
XBox 360 CPU Simulation As part of the acclimatization process asked to produce a demo using the R1SDK to reimplement a previous project I did a “gameified” cardiac tissue simulation arena is excitable using the FHN model Reimplemented research code on the XBox NB just changed enough to get it to work, no optimization
CPU v GPU XBox 360 CPU has three cores 1 vector/scalar op per clock tick i.e. 3 * ( 5 + 1 ) * 2 = 36 flops per clock tic At 3.2 Ghz gives 115.2 Gflops per second  XBox 360 GPU has 3 execution units (ALUs) 16 vector/scalar ops per clock tick i.e. 3 * 16 * ( 4 + 1 ) * 2  = 480 flops per clock tic At 500 Mhz gives 240 Gflops per second  CPU peak impossible to obtain in the real world ( below ~50% ) GPU can get far closer due to its more optimized nature (~80%)
XBox 360 GPU Simulation simulation vertex struct vertex{          	float4 Position		: POSITION; 	float4 FK4v			: NORMAL; 	float4 Neigh			: TEXCOORD0;      	float4 DVm			: TEXCOORD1; }; Position x, y, z, Vm FK4v v, w, d, cell type Neigh indices of the four neighbours of this cell DVm calculation space for diffusion
XBox 360 GPU Simulation GPGPU are good for embarrassingly parallel problems  and SIMD e.g. rendering 3D graphics Due to diffusion cardiac tissue simulation isn’t embarrassingly parallel  require some form of synchronisation  multiple vertex shaders pass the vertex buffer through each in turn   Zapp applies stimulation Diffusion calculates diffusion terms Simulation carries out FK4v model
GPGPU Demo
CPU/GPU Comparison
CPU/GPU Comparison Optimisation CPU code wasn’t optimised for running on the XBox However, neither was the GPU code Optimisation could make both faster but unlikely CPU could ever beat GPU
“Free” Visualization If you wish to do 3D visualisation for a simulation Convert simulation data to a GPU useable form Vertices Textures Already done this when using GPGPU Also created a series of different render shaders to highlight different aspects of the simulation
visualization Demo
In The News
BBC News Technology
Daily Mail website
Daily Telegraph Website
CNN
E-mails Hi sir Sir my name is zarshad khan from Pakistan sir  I am an SVT patient plz let me know how  I should get this machine for my own treatment  Zarshad khan
E-mails Hello Dr Scarle, 	My name is Keith and I am a student at Avon Middle School in Connecticut.  I am in Mr. Rand's eighth grade science class. I read the article about how you used an Xbox  GPU to do research modelling for cardiac arrhythmias.  I have 2 questions for you for my school current events.  1.  Did you actually use an Xbox to do your testing or did you take it apart for the chip and put it in another machine? And did you do all the reworking for the code?  2. What made you switch from a software engineer on games to doing medical research on cardiac arrhythmias?     Thank you for your time.    Keith
PUS Publicity from my paper shows the use of games technology could be a very powerful tool in the PUS field. Public Understanding of Science Putting real science into games A fundamental element of a game being based on research simulation code Demo released to public as well as a website detailing the research which has inspired the game XNA / Indie Games on XBox 360
Cardiac MODEL : the VIDEOGame
Borrowing from Games The games industry is at the fore front of computer technology Possibly IS the fore front GPU CPU
Multi-variable display Use advanced rendering techniques to acquire more understanding from multi-variable data FK4v RGB Height Filament calculation in real time Use XBox 360 as a simulation scratchpad Direct use of Game Consoles best computational fit Cheaply grab that extra bit of computing power
Conclusions GPGPU is a highly effective way of carrying out quite high end parallel computing on “domestic” hardware Although major reworking of code framework is required but this can easily be outweighed by the benefits in gained computational power and speed Games are COOOL! Games consoles are POWERFUL! Let’s borrow some of that fame and technological in more serious work.
Many thanks to everyone previously involved in all the work outlined here.

More Related Content

Viewers also liked

Thoracic Trauma
Thoracic TraumaThoracic Trauma
Thoracic Trauma
Michail Papoulas
 
Google glass.
Google glass.Google glass.
Google glass.
Tafzeel Mohammad
 
Xbox system ppt
Xbox system pptXbox system ppt
Xbox system ppt
VIKASH MEWAL
 
GOOGLE BALLOON
GOOGLE BALLOONGOOGLE BALLOON
GOOGLE BALLOON
Himani Gupta
 
Google project loon
Google project loonGoogle project loon
Google project loon
Suraj Kumar
 
Project glass ppt
Project glass  pptProject glass  ppt
Project glass ppt
Bopanna P M
 
Project loon
Project loonProject loon
Project loon
Sneh Raval
 
Seminar on the Project loon
Seminar on the Project loonSeminar on the Project loon
Seminar on the Project loon
Ajinkya Shelke
 
Project loon
Project loonProject loon
Project loon
shivli0769
 
Google glass ppt
Google glass pptGoogle glass ppt
Google glass ppt
Nidhin P Koshy
 
Google loon ppt
Google loon pptGoogle loon ppt
Google loon ppt
BRIJESH SINGH
 
Google glass glasses presentation ppt
Google glass glasses presentation pptGoogle glass glasses presentation ppt
Google glass glasses presentation ppt
Parth Godhani
 

Viewers also liked (12)

Thoracic Trauma
Thoracic TraumaThoracic Trauma
Thoracic Trauma
 
Google glass.
Google glass.Google glass.
Google glass.
 
Xbox system ppt
Xbox system pptXbox system ppt
Xbox system ppt
 
GOOGLE BALLOON
GOOGLE BALLOONGOOGLE BALLOON
GOOGLE BALLOON
 
Google project loon
Google project loonGoogle project loon
Google project loon
 
Project glass ppt
Project glass  pptProject glass  ppt
Project glass ppt
 
Project loon
Project loonProject loon
Project loon
 
Seminar on the Project loon
Seminar on the Project loonSeminar on the Project loon
Seminar on the Project loon
 
Project loon
Project loonProject loon
Project loon
 
Google glass ppt
Google glass pptGoogle glass ppt
Google glass ppt
 
Google loon ppt
Google loon pptGoogle loon ppt
Google loon ppt
 
Google glass glasses presentation ppt
Google glass glasses presentation pptGoogle glass glasses presentation ppt
Google glass glasses presentation ppt
 

Similar to Putting a Heart into a Box:GPGPU simulation of a Cardiac Model on the Xbox 360

Architectural Analysis of Game Machines
Architectural Analysis of Game MachinesArchitectural Analysis of Game Machines
Architectural Analysis of Game Machines
Praveen AP
 
The Intersection of Game Engines & GPUs: Current & Future (Graphics Hardware ...
The Intersection of Game Engines & GPUs: Current & Future (Graphics Hardware ...The Intersection of Game Engines & GPUs: Current & Future (Graphics Hardware ...
The Intersection of Game Engines & GPUs: Current & Future (Graphics Hardware ...
Johan Andersson
 
Intro to Machine Learning for GPUs
Intro to Machine Learning for GPUsIntro to Machine Learning for GPUs
Intro to Machine Learning for GPUs
Sri Ambati
 
PhD defense talk (portfolio of my expertise)
PhD defense talk (portfolio of my expertise)PhD defense talk (portfolio of my expertise)
PhD defense talk (portfolio of my expertise)
Gernot Ziegler
 
FGS 2011: Making A Game With Molehill: Zombie Tycoon
FGS 2011: Making A Game With Molehill: Zombie TycoonFGS 2011: Making A Game With Molehill: Zombie Tycoon
FGS 2011: Making A Game With Molehill: Zombie Tycoon
mochimedia
 
Optimizing the graphics pipeline with compute
Optimizing the graphics pipeline with computeOptimizing the graphics pipeline with compute
Optimizing the graphics pipeline with compute
WuBinbo
 
GPUs in Big Data - StampedeCon 2014
GPUs in Big Data - StampedeCon 2014GPUs in Big Data - StampedeCon 2014
GPUs in Big Data - StampedeCon 2014
StampedeCon
 
Report on GPGPU at FCA (Lyon, France, 11-15 October, 2010)
Report on GPGPU at FCA  (Lyon, France, 11-15 October, 2010)Report on GPGPU at FCA  (Lyon, France, 11-15 October, 2010)
Report on GPGPU at FCA (Lyon, France, 11-15 October, 2010)
PhtRaveller
 
Heshan Lin: Accelerating Short Read Mapping, Local Realignment, and a Discove...
Heshan Lin: Accelerating Short Read Mapping, Local Realignment, and a Discove...Heshan Lin: Accelerating Short Read Mapping, Local Realignment, and a Discove...
Heshan Lin: Accelerating Short Read Mapping, Local Realignment, and a Discove...
GigaScience, BGI Hong Kong
 
Threading Successes 01 Intro
Threading Successes 01   IntroThreading Successes 01   Intro
Threading Successes 01 Intro
guest40fc7cd
 
Professional Project - C++ OpenCL - Platform agnostic hardware acceleration ...
Professional Project - C++ OpenCL - Platform agnostic hardware acceleration  ...Professional Project - C++ OpenCL - Platform agnostic hardware acceleration  ...
Professional Project - C++ OpenCL - Platform agnostic hardware acceleration ...
Callum McMahon
 
GPU HistoPyramid Based Fluid Simulation and Rendering
GPU HistoPyramid Based Fluid Simulation and RenderingGPU HistoPyramid Based Fluid Simulation and Rendering
GPU HistoPyramid Based Fluid Simulation and Rendering
João Vicente P. Reis Fo.
 
Getting The Most Out of VR | Sinjin Bain
Getting The Most Out of VR | Sinjin BainGetting The Most Out of VR | Sinjin Bain
Getting The Most Out of VR | Sinjin Bain
Jessica Tams
 
Monte Carlo on GPUs
Monte Carlo on GPUsMonte Carlo on GPUs
Monte Carlo on GPUs
fcassier
 
Distributed deep learning optimizations for Finance
Distributed deep learning optimizations for FinanceDistributed deep learning optimizations for Finance
Distributed deep learning optimizations for Finance
geetachauhan
 
Deep Learning on the SaturnV Cluster
Deep Learning on the SaturnV ClusterDeep Learning on the SaturnV Cluster
Deep Learning on the SaturnV Cluster
inside-BigData.com
 
Presentation
PresentationPresentation
Presentation
butest
 
Parallel Graphics in Frostbite - Current & Future (Siggraph 2009)
Parallel Graphics in Frostbite - Current & Future (Siggraph 2009)Parallel Graphics in Frostbite - Current & Future (Siggraph 2009)
Parallel Graphics in Frostbite - Current & Future (Siggraph 2009)
Johan Andersson
 
Introduction to the Graphics Pipeline of the PS3
Introduction to the Graphics Pipeline of the PS3Introduction to the Graphics Pipeline of the PS3
Introduction to the Graphics Pipeline of the PS3
Slide_N
 
A SURVEY ON GPU SYSTEM CONSIDERING ITS PERFORMANCE ON DIFFERENT APPLICATIONS
A SURVEY ON GPU SYSTEM CONSIDERING ITS PERFORMANCE ON DIFFERENT APPLICATIONSA SURVEY ON GPU SYSTEM CONSIDERING ITS PERFORMANCE ON DIFFERENT APPLICATIONS
A SURVEY ON GPU SYSTEM CONSIDERING ITS PERFORMANCE ON DIFFERENT APPLICATIONS
cseij
 

Similar to Putting a Heart into a Box:GPGPU simulation of a Cardiac Model on the Xbox 360 (20)

Architectural Analysis of Game Machines
Architectural Analysis of Game MachinesArchitectural Analysis of Game Machines
Architectural Analysis of Game Machines
 
The Intersection of Game Engines & GPUs: Current & Future (Graphics Hardware ...
The Intersection of Game Engines & GPUs: Current & Future (Graphics Hardware ...The Intersection of Game Engines & GPUs: Current & Future (Graphics Hardware ...
The Intersection of Game Engines & GPUs: Current & Future (Graphics Hardware ...
 
Intro to Machine Learning for GPUs
Intro to Machine Learning for GPUsIntro to Machine Learning for GPUs
Intro to Machine Learning for GPUs
 
PhD defense talk (portfolio of my expertise)
PhD defense talk (portfolio of my expertise)PhD defense talk (portfolio of my expertise)
PhD defense talk (portfolio of my expertise)
 
FGS 2011: Making A Game With Molehill: Zombie Tycoon
FGS 2011: Making A Game With Molehill: Zombie TycoonFGS 2011: Making A Game With Molehill: Zombie Tycoon
FGS 2011: Making A Game With Molehill: Zombie Tycoon
 
Optimizing the graphics pipeline with compute
Optimizing the graphics pipeline with computeOptimizing the graphics pipeline with compute
Optimizing the graphics pipeline with compute
 
GPUs in Big Data - StampedeCon 2014
GPUs in Big Data - StampedeCon 2014GPUs in Big Data - StampedeCon 2014
GPUs in Big Data - StampedeCon 2014
 
Report on GPGPU at FCA (Lyon, France, 11-15 October, 2010)
Report on GPGPU at FCA  (Lyon, France, 11-15 October, 2010)Report on GPGPU at FCA  (Lyon, France, 11-15 October, 2010)
Report on GPGPU at FCA (Lyon, France, 11-15 October, 2010)
 
Heshan Lin: Accelerating Short Read Mapping, Local Realignment, and a Discove...
Heshan Lin: Accelerating Short Read Mapping, Local Realignment, and a Discove...Heshan Lin: Accelerating Short Read Mapping, Local Realignment, and a Discove...
Heshan Lin: Accelerating Short Read Mapping, Local Realignment, and a Discove...
 
Threading Successes 01 Intro
Threading Successes 01   IntroThreading Successes 01   Intro
Threading Successes 01 Intro
 
Professional Project - C++ OpenCL - Platform agnostic hardware acceleration ...
Professional Project - C++ OpenCL - Platform agnostic hardware acceleration  ...Professional Project - C++ OpenCL - Platform agnostic hardware acceleration  ...
Professional Project - C++ OpenCL - Platform agnostic hardware acceleration ...
 
GPU HistoPyramid Based Fluid Simulation and Rendering
GPU HistoPyramid Based Fluid Simulation and RenderingGPU HistoPyramid Based Fluid Simulation and Rendering
GPU HistoPyramid Based Fluid Simulation and Rendering
 
Getting The Most Out of VR | Sinjin Bain
Getting The Most Out of VR | Sinjin BainGetting The Most Out of VR | Sinjin Bain
Getting The Most Out of VR | Sinjin Bain
 
Monte Carlo on GPUs
Monte Carlo on GPUsMonte Carlo on GPUs
Monte Carlo on GPUs
 
Distributed deep learning optimizations for Finance
Distributed deep learning optimizations for FinanceDistributed deep learning optimizations for Finance
Distributed deep learning optimizations for Finance
 
Deep Learning on the SaturnV Cluster
Deep Learning on the SaturnV ClusterDeep Learning on the SaturnV Cluster
Deep Learning on the SaturnV Cluster
 
Presentation
PresentationPresentation
Presentation
 
Parallel Graphics in Frostbite - Current & Future (Siggraph 2009)
Parallel Graphics in Frostbite - Current & Future (Siggraph 2009)Parallel Graphics in Frostbite - Current & Future (Siggraph 2009)
Parallel Graphics in Frostbite - Current & Future (Siggraph 2009)
 
Introduction to the Graphics Pipeline of the PS3
Introduction to the Graphics Pipeline of the PS3Introduction to the Graphics Pipeline of the PS3
Introduction to the Graphics Pipeline of the PS3
 
A SURVEY ON GPU SYSTEM CONSIDERING ITS PERFORMANCE ON DIFFERENT APPLICATIONS
A SURVEY ON GPU SYSTEM CONSIDERING ITS PERFORMANCE ON DIFFERENT APPLICATIONSA SURVEY ON GPU SYSTEM CONSIDERING ITS PERFORMANCE ON DIFFERENT APPLICATIONS
A SURVEY ON GPU SYSTEM CONSIDERING ITS PERFORMANCE ON DIFFERENT APPLICATIONS
 

Recently uploaded

9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
saastr
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Pitangent Analytics & Technology Solutions Pvt. Ltd
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
Fwdays
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their MainframeDigital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Precisely
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
DianaGray10
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
c5vrf27qcz
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid ResearchHarnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Neo4j
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
Miro Wengner
 
AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
Ajin Abraham
 

Recently uploaded (20)

9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
 
Artificial Intelligence and Electronic Warfare
Artificial Intelligence and Electronic WarfareArtificial Intelligence and Electronic Warfare
Artificial Intelligence and Electronic Warfare
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their MainframeDigital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid ResearchHarnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
 
AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
 

Putting a Heart into a Box:GPGPU simulation of a Cardiac Model on the Xbox 360

  • 1. Putting a Heart into a Box GPGPU simulation of a Cardiac Model on the Xbox 360 Dr Simon Scarle Serious Games Institute Coventry University
  • 2. Outline Me : Where I’m from and what I do/did Serious Games: Tito Beco Games with a Purpose & GPGPU Particles Cardiac Modelling Previous work XBox 360 GPU In the News Public Understanding of Science Exchange between research and Games
  • 3. Who am I? BSc Mathematical Physics UMIST PhD Theoretical Physics KCL Substitutional defects in semiconductors PDRA Extended linear Defects Thin film delamination Ion motion in a polymer Electro-cardio dynamics Rare STG Serious Games Project Senior Programmer
  • 5.
  • 6. NHS fundedTo inform children about ideas related to good nutrition and exercise Key stage 2 8-11 years No overt teaching Information as much as possible presented via Gameplay not “lecturing” (Everand) Physically Enhanced puzzles Simple and well known puzzle game formats presented in a motion controlled manner As much as possible all interaction via motion Not as good a “real” exercise but better than a controller
  • 8. Games Hardware: Serious Use University of Illinois 70 PS2 supercomputer Folding/SETI at Home Folding Game – Games with a Purpose New Scientist Article Games Consoles Reveal their Hidden Power 16 linked PS3’s calculating gravity waves from black hole collisions Other researchers using high-end graphics cards on PC’s to simulate the repulsion between two electrons in an atom
  • 9. But it’s only a Games Console? Almost by definition the current Generation of games consoles and PCs are the most powerful bangs per buck computing hardware you can buy The cell chip at the heart of the PS3 is the CPU now used in IBM’s high-end systems XBox 360 Xenon – triple core 3.2 GHz PowerPC processor Custom ATI 500 MHz GPU
  • 10. What is GPGPU? General-Purpose computation on the GPU General-Programming on the GPU Modern Graphical Processing Units are highly optimised parallel computing devices But highly optimised for graphics But if your problem can be put in a form usable by the GPU you can still exploit this GPU becoming more programmable HLSL (cut down C ) Compute Unified Device Architecture (Nvidia) GPGPU increasingly being used for HPC
  • 11. Why am I here?
  • 12. GPU Coding vertex shader pixel shader Transform object’s vertex coordinates from its own space to that of viewpoint given by the “camera” pass this information on to pixel shader also further info normal, (bi-)tangent, UV coordinates Rasterisation Three vertices of a triangle extrapolate given values of the vertices across this triangle calculate the required colour of the final pixel using data from vertex shader
  • 13.
  • 14. fire
  • 15. smoke
  • 17. dust
  • 18. mud
  • 21. rain
  • 22. fog
  • 23. snow
  • 24.
  • 25. Particle GPGPU simulation vertex struct VS_INPUT { float4 pos : POSITION; float4 vel : TANGENT; }; pos x, y, z Life Time vel x’, y’, z’ Life Left
  • 26. A More Realer World Problem Abnormal propagation of electrical excitation in the heart Cardiac arrhythmias Ventricular tachycardia & fibrillation Leads to sudden cardiac death Largest categorical cause of death in the industrialized world My previous work used a genetic algorithm to evolve diseased tissue structures that were increasingly arrhythmic
  • 28. The Mathematical model Mono-domain equation Fenton-Karma 4 variable FK4v Vm, v, w & d DIFFUSIVE PART INTERNAL PART Cm membrane capacitance Vm voltage across cell membrane D Diffusion tensor Iion membrane current flow
  • 29. Fenton Karma 4 Variable Well used basic model Jfi fast inward Na+ Jsi slow inward Ca+ Jso slow outward K+ Cardiac cell behaviour excitable refractory recovery
  • 30. XBox 360 CPU Simulation As part of the acclimatization process asked to produce a demo using the R1SDK to reimplement a previous project I did a “gameified” cardiac tissue simulation arena is excitable using the FHN model Reimplemented research code on the XBox NB just changed enough to get it to work, no optimization
  • 31. CPU v GPU XBox 360 CPU has three cores 1 vector/scalar op per clock tick i.e. 3 * ( 5 + 1 ) * 2 = 36 flops per clock tic At 3.2 Ghz gives 115.2 Gflops per second XBox 360 GPU has 3 execution units (ALUs) 16 vector/scalar ops per clock tick i.e. 3 * 16 * ( 4 + 1 ) * 2 = 480 flops per clock tic At 500 Mhz gives 240 Gflops per second CPU peak impossible to obtain in the real world ( below ~50% ) GPU can get far closer due to its more optimized nature (~80%)
  • 32. XBox 360 GPU Simulation simulation vertex struct vertex{ float4 Position : POSITION; float4 FK4v : NORMAL; float4 Neigh : TEXCOORD0; float4 DVm : TEXCOORD1; }; Position x, y, z, Vm FK4v v, w, d, cell type Neigh indices of the four neighbours of this cell DVm calculation space for diffusion
  • 33. XBox 360 GPU Simulation GPGPU are good for embarrassingly parallel problems and SIMD e.g. rendering 3D graphics Due to diffusion cardiac tissue simulation isn’t embarrassingly parallel require some form of synchronisation multiple vertex shaders pass the vertex buffer through each in turn Zapp applies stimulation Diffusion calculates diffusion terms Simulation carries out FK4v model
  • 36. CPU/GPU Comparison Optimisation CPU code wasn’t optimised for running on the XBox However, neither was the GPU code Optimisation could make both faster but unlikely CPU could ever beat GPU
  • 37. “Free” Visualization If you wish to do 3D visualisation for a simulation Convert simulation data to a GPU useable form Vertices Textures Already done this when using GPGPU Also created a series of different render shaders to highlight different aspects of the simulation
  • 43. CNN
  • 44. E-mails Hi sir Sir my name is zarshad khan from Pakistan sir  I am an SVT patient plz let me know how  I should get this machine for my own treatment Zarshad khan
  • 45. E-mails Hello Dr Scarle, My name is Keith and I am a student at Avon Middle School in Connecticut.  I am in Mr. Rand's eighth grade science class. I read the article about how you used an Xbox  GPU to do research modelling for cardiac arrhythmias.  I have 2 questions for you for my school current events.  1.  Did you actually use an Xbox to do your testing or did you take it apart for the chip and put it in another machine? And did you do all the reworking for the code? 2. What made you switch from a software engineer on games to doing medical research on cardiac arrhythmias?    Thank you for your time.    Keith
  • 46. PUS Publicity from my paper shows the use of games technology could be a very powerful tool in the PUS field. Public Understanding of Science Putting real science into games A fundamental element of a game being based on research simulation code Demo released to public as well as a website detailing the research which has inspired the game XNA / Indie Games on XBox 360
  • 47. Cardiac MODEL : the VIDEOGame
  • 48. Borrowing from Games The games industry is at the fore front of computer technology Possibly IS the fore front GPU CPU
  • 49. Multi-variable display Use advanced rendering techniques to acquire more understanding from multi-variable data FK4v RGB Height Filament calculation in real time Use XBox 360 as a simulation scratchpad Direct use of Game Consoles best computational fit Cheaply grab that extra bit of computing power
  • 50. Conclusions GPGPU is a highly effective way of carrying out quite high end parallel computing on “domestic” hardware Although major reworking of code framework is required but this can easily be outweighed by the benefits in gained computational power and speed Games are COOOL! Games consoles are POWERFUL! Let’s borrow some of that fame and technological in more serious work.
  • 51. Many thanks to everyone previously involved in all the work outlined here.
  • 52. THANKS Any Questions? If you’d like your simulation to be game-ified, please speak to me afterwards or contact me at the e-mail address below. Simon Scarle Sscarle@cad.coventry.ac.uk
  • 53. The Science Bit Asked by old research group to do seminar talk Made it part of Rare’s Academic Liaison programme Old Boss suggested I write this up Wanted one better than a widget paper Cardiac model GPGPU Actual do some kind of science with Cardiac Tissue Logic Circuits
  • 55. Diode
  • 56. Diode
  • 57. Cardiac Side Something of a Holy grail in cardiac research would be a technique to analyse a structure of diseased/damaged cardiac cells and the in coming excitation and state whether or not you have a re-entrant circuit
  • 58. Computational Side Used a train of excitations on the beat to send 1 Train on the half beats to send 0 NOT gate is just a detour NOR gate is a universal gate Turing Complete system Halting Problem Impossible to predict whether an arbitrary programme will terminate or run for ever Thus making the “is their a re-entrant circuit” question the reverse of the halting problem and hence impossible
  • 59. Game Controller Keyboards aren’t very good In fact deliberately bad Better layouts and designs just keep failing Game Controller is almost as bad But gamers are damn good at using them
  • 60. Game Developers Interested in simulations of Animal Behaviour AI Physics Movement Fracture & deformation Fluid dynamics Perception Vision Optics & Lighting Gesture recognition They also want to develop these simulations to work in real time on the current generation of consoles Game code is some of the most fault tolerant and tested code produced Requires exceptionally skilled coders to produce
  • 61. “Water” GPGPU Simple dynamic water effect Pixel shader Water Texture R: Water Height G: Previous Water Height B: Normal X component A: Normal Y component

Editor's Notes

  1. STUNT WITH PS2
  2. Inspire kids to learn about science, when they release its knowledge that you need to become part of the games industry.Example: Cardiac shooter demo, cardiac puzzle gameMention Public Service Media/GamesSet up for excellent unilateral KTP between the games industry and research
  3. Links to HCI
  4. The Centre for Digital Entertainment (CDE) is a new collaboration between the University of Bath, Bournemouth University and a host of industry partners across the computer animation, games and visual effects industries. The CDE has been awarded £6.3 Million initial funding from the Engineering and Physical Sciences Research Council (EPSRC).50 Doctoral Studentships on offer in Digital Entertainment.Would you like to do leading-edge research while working in world-class computer games, computer animation, visual effects or film post-production companies?