SlideShare a Scribd company logo
1 of 10
Download to read offline
Database Driven
OpenCL Programming
HPC & GPU
Supercomputing Group
of Silicon Valley
by
Tim Child
OpenCL Data I/O Problem
• Write a OpenCL Applications that :-
– Read data from DBMS or File
– Publishes Results as Web Pages
• Possible Solutions
– C/C++ Binding using Web CGI
– Java/Perl/Python Bindings in App Server
– ???
or
Database Driven
OpenCL
PostgeSQL
Swiss Army Knife of Databases
Extensible
Types
Extensible
Indices
Extensible
Procedural
Languages
(Java, Perl, …)
Rules
System
SQL
(Declarative Language,
Set Operations)
Remote
Open
Source
Native
API’s
Vibrant
Community
OpenCLPostGIS
Database Driven OpenCL
PostgreSQL
Shared
Memory
Cache
O/S
I/O Buffers
Disk
Storage
IO
OpenCL
Kernels
Web
Page
SQL Query
Results Set
Two Levels of Data Caching
Web Client
Application
HTTP Request ►
HTTP Response ◄
Log
Parameterized
Queries ►
Results Sets ◄
PostgreSQL
Sever
Process
PostgreSQL
Sever
Process
IO
Memory Access
Row
Row
Row
Row
Row
Row
Row
Row
Row
Row
Row
Row
Row
Row
Row
Row
OpenCL SQL Binding
CREATE or REPLACE FUNCTION VectorAdd(IN Id int[], IN a real[], IN B real[], OUT C
real[] )
AS $BODY$
$BODY$
Language PgOpenCL;
__kernel void VectorAdd( __global int * id,
__global float *a,
__global float *b,
__global float *c)
{
int i = get_global_id(0); /* Query OpenCL for the Array Subscript **/
c[i] = a[i] + b[i];
}
Database Driven OpenCL
A
B
A B C
Select Table
to Array
Unnest Array
To Table
Copy
Copy
100’s - 1000’s of
Threads (Kernels)
Table
Table
VectorAdd(A, B)
Returns C+ =
xPU
C C C C C C CC C C C C C
Challenges
• Type Mapping
– Extend SQL Types with
• OpenCL Vectors Types
• OpenCL Image Types
• Setup –> Runtime
• Caching kernel info
• Data Transfer
– CPU ↔ GPU
• Still present
– SQL Queries
• + ∆ Overhead
• Map – Increase
– Bulk Data Loaders
• New Task
• Problem Size
– DBMS Table Size >> GPU RAM
– # Work Groups / # Work Items
• Runtime Partitioning
• Device Management
– CPU vs. GPU
• Runtime Selection
• Concurrency
– No Pre-emptive Multi-Tasking
• Time-out Long Queries
• Partitioning / Scheduling
X
√
√
X
√
X
X
X
√
X
√
Some Example Uses Cases
• 3D Content Management / GIS
– Spatial Selections
– Coordinate Transformations
– Image Processing
• Bioinformatics
– DNA & Protein Sequence Matching
• Database Internal Operations
– Joins
– Sorting
– Query Planning
Benefits of the Approach
Database
Internal
Operations
Open
Source
Release
OpenCL
PostgreSQL
Questions?
More Information
• PgOpenCL
• Twitter @3DMashUp
• Blog www.scribd.com/3dmashup
• OpenCL
• www.khronos.org/opencl/
• www.amd.com/us/products/technologies/stream-technology/opencl/
• http://software.intel.com/en-us/articles/intel-opencl-sdk
• http://www.nvidia.com/object/cuda_opencl_new.html

More Related Content

What's hot

Asp #2
Asp #2Asp #2
Asp #2Joni
 
Presto - Analytical Database. Overview and use cases.
Presto - Analytical Database. Overview and use cases.Presto - Analytical Database. Overview and use cases.
Presto - Analytical Database. Overview and use cases.Wojciech Biela
 
HBaseConEast2016: Splice machine open source rdbms
HBaseConEast2016: Splice machine open source rdbmsHBaseConEast2016: Splice machine open source rdbms
HBaseConEast2016: Splice machine open source rdbmsMichael Stack
 
Object- Relational Persistence in Smalltalk
Object- Relational Persistence in SmalltalkObject- Relational Persistence in Smalltalk
Object- Relational Persistence in SmalltalkESUG
 
Inside SQL Server In-Memory OLTP
Inside SQL Server In-Memory OLTPInside SQL Server In-Memory OLTP
Inside SQL Server In-Memory OLTPBob Ward
 
ApacheCon 2020 - Flink SQL in 2020: Time to show off!
ApacheCon 2020 - Flink SQL in 2020: Time to show off!ApacheCon 2020 - Flink SQL in 2020: Time to show off!
ApacheCon 2020 - Flink SQL in 2020: Time to show off!Timo Walther
 
Spark SQL Beyond Official Documentation
Spark SQL Beyond Official DocumentationSpark SQL Beyond Official Documentation
Spark SQL Beyond Official DocumentationDatabricks
 
Acid ORC, Iceberg and Delta Lake
Acid ORC, Iceberg and Delta LakeAcid ORC, Iceberg and Delta Lake
Acid ORC, Iceberg and Delta LakeMichal Gancarski
 
Gobblin meetup-whats new in 0.7
Gobblin meetup-whats new in 0.7Gobblin meetup-whats new in 0.7
Gobblin meetup-whats new in 0.7Vasanth Rajamani
 
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)Gabriele Bartolini
 
POLARDB for MySQL - Parallel Query
POLARDB for MySQL - Parallel QueryPOLARDB for MySQL - Parallel Query
POLARDB for MySQL - Parallel Queryoysteing
 
Spark + Parquet In Depth: Spark Summit East Talk by Emily Curtin and Robbie S...
Spark + Parquet In Depth: Spark Summit East Talk by Emily Curtin and Robbie S...Spark + Parquet In Depth: Spark Summit East Talk by Emily Curtin and Robbie S...
Spark + Parquet In Depth: Spark Summit East Talk by Emily Curtin and Robbie S...Spark Summit
 
Hello, Enterprise! Meet Presto. (Presto Boston Meetup 10062015)
Hello, Enterprise! Meet Presto. (Presto Boston Meetup 10062015)Hello, Enterprise! Meet Presto. (Presto Boston Meetup 10062015)
Hello, Enterprise! Meet Presto. (Presto Boston Meetup 10062015)Matt Fuller
 
POLARDB: A database architecture for the cloud
POLARDB: A database architecture for the cloudPOLARDB: A database architecture for the cloud
POLARDB: A database architecture for the cloudoysteing
 
Presto Strata Hadoop SJ 2016 short talk
Presto Strata Hadoop SJ 2016 short talkPresto Strata Hadoop SJ 2016 short talk
Presto Strata Hadoop SJ 2016 short talkkbajda
 
Microservice-based software architecture
Microservice-based software architectureMicroservice-based software architecture
Microservice-based software architectureArangoDB Database
 
An E-commerce App in action built on top of a Multi-model Database
An E-commerce App in action built on top of a Multi-model DatabaseAn E-commerce App in action built on top of a Multi-model Database
An E-commerce App in action built on top of a Multi-model DatabaseArangoDB Database
 

What's hot (20)

Asp #2
Asp #2Asp #2
Asp #2
 
Presto - Analytical Database. Overview and use cases.
Presto - Analytical Database. Overview and use cases.Presto - Analytical Database. Overview and use cases.
Presto - Analytical Database. Overview and use cases.
 
HBaseConEast2016: Splice machine open source rdbms
HBaseConEast2016: Splice machine open source rdbmsHBaseConEast2016: Splice machine open source rdbms
HBaseConEast2016: Splice machine open source rdbms
 
Object- Relational Persistence in Smalltalk
Object- Relational Persistence in SmalltalkObject- Relational Persistence in Smalltalk
Object- Relational Persistence in Smalltalk
 
Inside SQL Server In-Memory OLTP
Inside SQL Server In-Memory OLTPInside SQL Server In-Memory OLTP
Inside SQL Server In-Memory OLTP
 
ApacheCon 2020 - Flink SQL in 2020: Time to show off!
ApacheCon 2020 - Flink SQL in 2020: Time to show off!ApacheCon 2020 - Flink SQL in 2020: Time to show off!
ApacheCon 2020 - Flink SQL in 2020: Time to show off!
 
Spark SQL Beyond Official Documentation
Spark SQL Beyond Official DocumentationSpark SQL Beyond Official Documentation
Spark SQL Beyond Official Documentation
 
Acid ORC, Iceberg and Delta Lake
Acid ORC, Iceberg and Delta LakeAcid ORC, Iceberg and Delta Lake
Acid ORC, Iceberg and Delta Lake
 
Gobblin meetup-whats new in 0.7
Gobblin meetup-whats new in 0.7Gobblin meetup-whats new in 0.7
Gobblin meetup-whats new in 0.7
 
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
 
POLARDB for MySQL - Parallel Query
POLARDB for MySQL - Parallel QueryPOLARDB for MySQL - Parallel Query
POLARDB for MySQL - Parallel Query
 
Spark + Parquet In Depth: Spark Summit East Talk by Emily Curtin and Robbie S...
Spark + Parquet In Depth: Spark Summit East Talk by Emily Curtin and Robbie S...Spark + Parquet In Depth: Spark Summit East Talk by Emily Curtin and Robbie S...
Spark + Parquet In Depth: Spark Summit East Talk by Emily Curtin and Robbie S...
 
Presto
PrestoPresto
Presto
 
Hello, Enterprise! Meet Presto. (Presto Boston Meetup 10062015)
Hello, Enterprise! Meet Presto. (Presto Boston Meetup 10062015)Hello, Enterprise! Meet Presto. (Presto Boston Meetup 10062015)
Hello, Enterprise! Meet Presto. (Presto Boston Meetup 10062015)
 
Introduction To Pentaho Kettle
Introduction To Pentaho KettleIntroduction To Pentaho Kettle
Introduction To Pentaho Kettle
 
POLARDB: A database architecture for the cloud
POLARDB: A database architecture for the cloudPOLARDB: A database architecture for the cloud
POLARDB: A database architecture for the cloud
 
Presto Strata Hadoop SJ 2016 short talk
Presto Strata Hadoop SJ 2016 short talkPresto Strata Hadoop SJ 2016 short talk
Presto Strata Hadoop SJ 2016 short talk
 
Javantura v3 - Develop the right way with S-CASE – Marin Orlić
Javantura v3 - Develop the right way with S-CASE – Marin OrlićJavantura v3 - Develop the right way with S-CASE – Marin Orlić
Javantura v3 - Develop the right way with S-CASE – Marin Orlić
 
Microservice-based software architecture
Microservice-based software architectureMicroservice-based software architecture
Microservice-based software architecture
 
An E-commerce App in action built on top of a Multi-model Database
An E-commerce App in action built on top of a Multi-model DatabaseAn E-commerce App in action built on top of a Multi-model Database
An E-commerce App in action built on top of a Multi-model Database
 

Similar to Database Driven OpenCL Programming by Tim Child

Ibi Open Visualizations
Ibi Open VisualizationsIbi Open Visualizations
Ibi Open VisualizationsClif Kranish
 
DEVNET-2005 Using the Cisco Open SDN Controller RESTCONF APIs
DEVNET-2005	Using the Cisco Open SDN Controller RESTCONF APIsDEVNET-2005	Using the Cisco Open SDN Controller RESTCONF APIs
DEVNET-2005 Using the Cisco Open SDN Controller RESTCONF APIsCisco DevNet
 
Mainframe Technology Overview
Mainframe Technology OverviewMainframe Technology Overview
Mainframe Technology OverviewHaim Ben Zagmi
 
Easing ASP.NET Web and SQL Server Database Deployment with VS 2010 and MsDeploy
Easing ASP.NET Web and  SQL Server Database Deployment withVS 2010 and MsDeployEasing ASP.NET Web and  SQL Server Database Deployment withVS 2010 and MsDeploy
Easing ASP.NET Web and SQL Server Database Deployment with VS 2010 and MsDeployEduardo Castro
 
HPCC Systems JDBC Driver
HPCC Systems JDBC DriverHPCC Systems JDBC Driver
HPCC Systems JDBC DriverHPCC Systems
 
Experience sql server on l inux and docker
Experience sql server on l inux and dockerExperience sql server on l inux and docker
Experience sql server on l inux and dockerBob Ward
 
Perfsystems- Consulting Services
Perfsystems- Consulting ServicesPerfsystems- Consulting Services
Perfsystems- Consulting ServicesPerfsys Tems
 
Dsdt meetup 2017 11-21
Dsdt meetup 2017 11-21Dsdt meetup 2017 11-21
Dsdt meetup 2017 11-21JDA Labs MTL
 
DSDT Meetup Nov 2017
DSDT Meetup Nov 2017DSDT Meetup Nov 2017
DSDT Meetup Nov 2017DSDT_MTL
 
High Performance Jdbc
High Performance JdbcHigh Performance Jdbc
High Performance JdbcSam Pattsin
 
Experiences with Evangelizing Java Within the Database
Experiences with Evangelizing Java Within the DatabaseExperiences with Evangelizing Java Within the Database
Experiences with Evangelizing Java Within the DatabaseMarcelo Ochoa
 
Cost Effectively Run Multiple Oracle Database Copies at Scale
Cost Effectively Run Multiple Oracle Database Copies at Scale Cost Effectively Run Multiple Oracle Database Copies at Scale
Cost Effectively Run Multiple Oracle Database Copies at Scale NetApp
 
Belgrade R - Intro to H2O and Deep Water
Belgrade R - Intro to H2O and Deep WaterBelgrade R - Intro to H2O and Deep Water
Belgrade R - Intro to H2O and Deep WaterSri Ambati
 
H2O at BelgradeR Meetup
H2O at BelgradeR MeetupH2O at BelgradeR Meetup
H2O at BelgradeR MeetupJo-fai Chow
 
DEVNET-1140 InterCloud Mapreduce and Spark Workload Migration and Sharing: Fi...
DEVNET-1140	InterCloud Mapreduce and Spark Workload Migration and Sharing: Fi...DEVNET-1140	InterCloud Mapreduce and Spark Workload Migration and Sharing: Fi...
DEVNET-1140 InterCloud Mapreduce and Spark Workload Migration and Sharing: Fi...Cisco DevNet
 
Overview SQL Server 2019
Overview SQL Server 2019Overview SQL Server 2019
Overview SQL Server 2019Juan Fabian
 
Serverless Data Platform
Serverless Data PlatformServerless Data Platform
Serverless Data PlatformShu-Jeng Hsieh
 

Similar to Database Driven OpenCL Programming by Tim Child (20)

Ibi Open Visualizations
Ibi Open VisualizationsIbi Open Visualizations
Ibi Open Visualizations
 
DEVNET-2005 Using the Cisco Open SDN Controller RESTCONF APIs
DEVNET-2005	Using the Cisco Open SDN Controller RESTCONF APIsDEVNET-2005	Using the Cisco Open SDN Controller RESTCONF APIs
DEVNET-2005 Using the Cisco Open SDN Controller RESTCONF APIs
 
Google cloud Dataflow & Apache Flink
Google cloud Dataflow & Apache FlinkGoogle cloud Dataflow & Apache Flink
Google cloud Dataflow & Apache Flink
 
Mainframe Technology Overview
Mainframe Technology OverviewMainframe Technology Overview
Mainframe Technology Overview
 
WilliamDillenberger2017
WilliamDillenberger2017WilliamDillenberger2017
WilliamDillenberger2017
 
Easing ASP.NET Web and SQL Server Database Deployment with VS 2010 and MsDeploy
Easing ASP.NET Web and  SQL Server Database Deployment withVS 2010 and MsDeployEasing ASP.NET Web and  SQL Server Database Deployment withVS 2010 and MsDeploy
Easing ASP.NET Web and SQL Server Database Deployment with VS 2010 and MsDeploy
 
HPCC Systems JDBC Driver
HPCC Systems JDBC DriverHPCC Systems JDBC Driver
HPCC Systems JDBC Driver
 
Experience sql server on l inux and docker
Experience sql server on l inux and dockerExperience sql server on l inux and docker
Experience sql server on l inux and docker
 
Perfsystems- Consulting Services
Perfsystems- Consulting ServicesPerfsystems- Consulting Services
Perfsystems- Consulting Services
 
Dsdt meetup 2017 11-21
Dsdt meetup 2017 11-21Dsdt meetup 2017 11-21
Dsdt meetup 2017 11-21
 
DSDT Meetup Nov 2017
DSDT Meetup Nov 2017DSDT Meetup Nov 2017
DSDT Meetup Nov 2017
 
High Performance Jdbc
High Performance JdbcHigh Performance Jdbc
High Performance Jdbc
 
Ipc mysql php
Ipc mysql php Ipc mysql php
Ipc mysql php
 
Experiences with Evangelizing Java Within the Database
Experiences with Evangelizing Java Within the DatabaseExperiences with Evangelizing Java Within the Database
Experiences with Evangelizing Java Within the Database
 
Cost Effectively Run Multiple Oracle Database Copies at Scale
Cost Effectively Run Multiple Oracle Database Copies at Scale Cost Effectively Run Multiple Oracle Database Copies at Scale
Cost Effectively Run Multiple Oracle Database Copies at Scale
 
Belgrade R - Intro to H2O and Deep Water
Belgrade R - Intro to H2O and Deep WaterBelgrade R - Intro to H2O and Deep Water
Belgrade R - Intro to H2O and Deep Water
 
H2O at BelgradeR Meetup
H2O at BelgradeR MeetupH2O at BelgradeR Meetup
H2O at BelgradeR Meetup
 
DEVNET-1140 InterCloud Mapreduce and Spark Workload Migration and Sharing: Fi...
DEVNET-1140	InterCloud Mapreduce and Spark Workload Migration and Sharing: Fi...DEVNET-1140	InterCloud Mapreduce and Spark Workload Migration and Sharing: Fi...
DEVNET-1140 InterCloud Mapreduce and Spark Workload Migration and Sharing: Fi...
 
Overview SQL Server 2019
Overview SQL Server 2019Overview SQL Server 2019
Overview SQL Server 2019
 
Serverless Data Platform
Serverless Data PlatformServerless Data Platform
Serverless Data Platform
 

More from Mert Akın

İlk İşim Girişim 2018 Sunum Mert Akın
İlk İşim Girişim 2018 Sunum Mert Akınİlk İşim Girişim 2018 Sunum Mert Akın
İlk İşim Girişim 2018 Sunum Mert AkınMert Akın
 
İlk İşim Girişim 2018 Presentation Mert Akın Thai
İlk İşim Girişim 2018 Presentation Mert Akın Thaiİlk İşim Girişim 2018 Presentation Mert Akın Thai
İlk İşim Girişim 2018 Presentation Mert Akın ThaiMert Akın
 
İlk İşim Girişim 2018 Presentation Mert Akın English
İlk İşim Girişim 2018 Presentation Mert Akın Englishİlk İşim Girişim 2018 Presentation Mert Akın English
İlk İşim Girişim 2018 Presentation Mert Akın EnglishMert Akın
 
İlk İşim Girişim 2018 Präsentation Mert Akın Deutsch
İlk İşim Girişim 2018 Präsentation Mert Akın Deutschİlk İşim Girişim 2018 Präsentation Mert Akın Deutsch
İlk İşim Girişim 2018 Präsentation Mert Akın DeutschMert Akın
 
Big Data Trends 2016 by HPC Asia
Big Data Trends 2016 by HPC AsiaBig Data Trends 2016 by HPC Asia
Big Data Trends 2016 by HPC AsiaMert Akın
 
Going to the Cloud by Online Colleges
Going to the Cloud by Online CollegesGoing to the Cloud by Online Colleges
Going to the Cloud by Online CollegesMert Akın
 
How Many Players in Big Data by Umbel
How Many Players in Big Data by UmbelHow Many Players in Big Data by Umbel
How Many Players in Big Data by UmbelMert Akın
 
The Four V's of Big Data By IBM
The Four V's of Big Data By IBMThe Four V's of Big Data By IBM
The Four V's of Big Data By IBMMert Akın
 
The Global State of Data Security in the Cloud by Gemalto
The Global State of Data Security in the Cloud by GemaltoThe Global State of Data Security in the Cloud by Gemalto
The Global State of Data Security in the Cloud by GemaltoMert Akın
 
HPC, Big Data & Data Center Explanation by Mert Akın
HPC, Big Data & Data  Center Explanation by Mert AkınHPC, Big Data & Data  Center Explanation by Mert Akın
HPC, Big Data & Data Center Explanation by Mert AkınMert Akın
 
Comparison of Battery Types According Number of Cycles
Comparison of Battery Types According Number of CyclesComparison of Battery Types According Number of Cycles
Comparison of Battery Types According Number of CyclesMert Akın
 
Understanding Big Data by IKANOW
Understanding Big Data by IKANOWUnderstanding Big Data by IKANOW
Understanding Big Data by IKANOWMert Akın
 
How the Internet of Things Will Rule Your Workday in 2020 by Forbes and Cent...
How the Internet of Things Will Rule Your Workday in 2020  by Forbes and Cent...How the Internet of Things Will Rule Your Workday in 2020  by Forbes and Cent...
How the Internet of Things Will Rule Your Workday in 2020 by Forbes and Cent...Mert Akın
 
Kepler vs Xeon Phi
Kepler vs Xeon Phi Kepler vs Xeon Phi
Kepler vs Xeon Phi Mert Akın
 
Future of Big Data
Future of Big DataFuture of Big Data
Future of Big DataMert Akın
 
Future of Database
Future of DatabaseFuture of Database
Future of DatabaseMert Akın
 
Comparison of Battery Types According Voltage
Comparison of Battery Types According VoltageComparison of Battery Types According Voltage
Comparison of Battery Types According VoltageMert Akın
 
Comparison of Battery Types According Energy Density
Comparison of Battery Types According Energy DensityComparison of Battery Types According Energy Density
Comparison of Battery Types According Energy DensityMert Akın
 
Comparison of Battery Types According Self Discharge Rate Monthly
Comparison of Battery Types According Self Discharge Rate MonthlyComparison of Battery Types According Self Discharge Rate Monthly
Comparison of Battery Types According Self Discharge Rate MonthlyMert Akın
 
As telcos go digital, cybersecurity risks intensify by pwc
As telcos go digital, cybersecurity risks intensify by pwcAs telcos go digital, cybersecurity risks intensify by pwc
As telcos go digital, cybersecurity risks intensify by pwcMert Akın
 

More from Mert Akın (20)

İlk İşim Girişim 2018 Sunum Mert Akın
İlk İşim Girişim 2018 Sunum Mert Akınİlk İşim Girişim 2018 Sunum Mert Akın
İlk İşim Girişim 2018 Sunum Mert Akın
 
İlk İşim Girişim 2018 Presentation Mert Akın Thai
İlk İşim Girişim 2018 Presentation Mert Akın Thaiİlk İşim Girişim 2018 Presentation Mert Akın Thai
İlk İşim Girişim 2018 Presentation Mert Akın Thai
 
İlk İşim Girişim 2018 Presentation Mert Akın English
İlk İşim Girişim 2018 Presentation Mert Akın Englishİlk İşim Girişim 2018 Presentation Mert Akın English
İlk İşim Girişim 2018 Presentation Mert Akın English
 
İlk İşim Girişim 2018 Präsentation Mert Akın Deutsch
İlk İşim Girişim 2018 Präsentation Mert Akın Deutschİlk İşim Girişim 2018 Präsentation Mert Akın Deutsch
İlk İşim Girişim 2018 Präsentation Mert Akın Deutsch
 
Big Data Trends 2016 by HPC Asia
Big Data Trends 2016 by HPC AsiaBig Data Trends 2016 by HPC Asia
Big Data Trends 2016 by HPC Asia
 
Going to the Cloud by Online Colleges
Going to the Cloud by Online CollegesGoing to the Cloud by Online Colleges
Going to the Cloud by Online Colleges
 
How Many Players in Big Data by Umbel
How Many Players in Big Data by UmbelHow Many Players in Big Data by Umbel
How Many Players in Big Data by Umbel
 
The Four V's of Big Data By IBM
The Four V's of Big Data By IBMThe Four V's of Big Data By IBM
The Four V's of Big Data By IBM
 
The Global State of Data Security in the Cloud by Gemalto
The Global State of Data Security in the Cloud by GemaltoThe Global State of Data Security in the Cloud by Gemalto
The Global State of Data Security in the Cloud by Gemalto
 
HPC, Big Data & Data Center Explanation by Mert Akın
HPC, Big Data & Data  Center Explanation by Mert AkınHPC, Big Data & Data  Center Explanation by Mert Akın
HPC, Big Data & Data Center Explanation by Mert Akın
 
Comparison of Battery Types According Number of Cycles
Comparison of Battery Types According Number of CyclesComparison of Battery Types According Number of Cycles
Comparison of Battery Types According Number of Cycles
 
Understanding Big Data by IKANOW
Understanding Big Data by IKANOWUnderstanding Big Data by IKANOW
Understanding Big Data by IKANOW
 
How the Internet of Things Will Rule Your Workday in 2020 by Forbes and Cent...
How the Internet of Things Will Rule Your Workday in 2020  by Forbes and Cent...How the Internet of Things Will Rule Your Workday in 2020  by Forbes and Cent...
How the Internet of Things Will Rule Your Workday in 2020 by Forbes and Cent...
 
Kepler vs Xeon Phi
Kepler vs Xeon Phi Kepler vs Xeon Phi
Kepler vs Xeon Phi
 
Future of Big Data
Future of Big DataFuture of Big Data
Future of Big Data
 
Future of Database
Future of DatabaseFuture of Database
Future of Database
 
Comparison of Battery Types According Voltage
Comparison of Battery Types According VoltageComparison of Battery Types According Voltage
Comparison of Battery Types According Voltage
 
Comparison of Battery Types According Energy Density
Comparison of Battery Types According Energy DensityComparison of Battery Types According Energy Density
Comparison of Battery Types According Energy Density
 
Comparison of Battery Types According Self Discharge Rate Monthly
Comparison of Battery Types According Self Discharge Rate MonthlyComparison of Battery Types According Self Discharge Rate Monthly
Comparison of Battery Types According Self Discharge Rate Monthly
 
As telcos go digital, cybersecurity risks intensify by pwc
As telcos go digital, cybersecurity risks intensify by pwcAs telcos go digital, cybersecurity risks intensify by pwc
As telcos go digital, cybersecurity risks intensify by pwc
 

Recently uploaded

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 

Recently uploaded (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

Database Driven OpenCL Programming by Tim Child

  • 1. Database Driven OpenCL Programming HPC & GPU Supercomputing Group of Silicon Valley by Tim Child
  • 2. OpenCL Data I/O Problem • Write a OpenCL Applications that :- – Read data from DBMS or File – Publishes Results as Web Pages • Possible Solutions – C/C++ Binding using Web CGI – Java/Perl/Python Bindings in App Server – ??? or Database Driven OpenCL
  • 3. PostgeSQL Swiss Army Knife of Databases Extensible Types Extensible Indices Extensible Procedural Languages (Java, Perl, …) Rules System SQL (Declarative Language, Set Operations) Remote Open Source Native API’s Vibrant Community OpenCLPostGIS
  • 4. Database Driven OpenCL PostgreSQL Shared Memory Cache O/S I/O Buffers Disk Storage IO OpenCL Kernels Web Page SQL Query Results Set Two Levels of Data Caching Web Client Application HTTP Request ► HTTP Response ◄ Log Parameterized Queries ► Results Sets ◄ PostgreSQL Sever Process PostgreSQL Sever Process IO Memory Access Row Row Row Row Row Row Row Row Row Row Row Row Row Row Row Row
  • 5. OpenCL SQL Binding CREATE or REPLACE FUNCTION VectorAdd(IN Id int[], IN a real[], IN B real[], OUT C real[] ) AS $BODY$ $BODY$ Language PgOpenCL; __kernel void VectorAdd( __global int * id, __global float *a, __global float *b, __global float *c) { int i = get_global_id(0); /* Query OpenCL for the Array Subscript **/ c[i] = a[i] + b[i]; }
  • 6. Database Driven OpenCL A B A B C Select Table to Array Unnest Array To Table Copy Copy 100’s - 1000’s of Threads (Kernels) Table Table VectorAdd(A, B) Returns C+ = xPU C C C C C C CC C C C C C
  • 7. Challenges • Type Mapping – Extend SQL Types with • OpenCL Vectors Types • OpenCL Image Types • Setup –> Runtime • Caching kernel info • Data Transfer – CPU ↔ GPU • Still present – SQL Queries • + ∆ Overhead • Map – Increase – Bulk Data Loaders • New Task • Problem Size – DBMS Table Size >> GPU RAM – # Work Groups / # Work Items • Runtime Partitioning • Device Management – CPU vs. GPU • Runtime Selection • Concurrency – No Pre-emptive Multi-Tasking • Time-out Long Queries • Partitioning / Scheduling X √ √ X √ X X X √ X √
  • 8. Some Example Uses Cases • 3D Content Management / GIS – Spatial Selections – Coordinate Transformations – Image Processing • Bioinformatics – DNA & Protein Sequence Matching • Database Internal Operations – Joins – Sorting – Query Planning
  • 9. Benefits of the Approach Database Internal Operations Open Source Release OpenCL PostgreSQL
  • 10. Questions? More Information • PgOpenCL • Twitter @3DMashUp • Blog www.scribd.com/3dmashup • OpenCL • www.khronos.org/opencl/ • www.amd.com/us/products/technologies/stream-technology/opencl/ • http://software.intel.com/en-us/articles/intel-opencl-sdk • http://www.nvidia.com/object/cuda_opencl_new.html