Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Metal Demo
Search
alienxp03
September 14, 2015
Programming
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Metal Demo
alienxp03
September 14, 2015
Transcript
18 slides
GPU Programming in Metal • Twitter: @alienxp03 • Not a
GPU programmer
Metal • Introduced in iOS 8 • Only for iOS
devices • Usage - Graphic rendering - Parallel data computation
Basic guide • Initialise Metal
Basic guide • Call the compiled shader function
Basic guide • Set parameters
Basic guide • Threadgroups
Basic guide • Run the computation • Get the result
Shader language • Using C++11 with some extension and limitation
pow(x, y) • 12,228 integers - CPU : 0.028833416668931 secs
- GPU : 0.0302730000112206 secs
pow(x, y) • 33,554,432 integers (2 ^ 25 ) -
CPU : 73.7681545416708 secs - GPU : 38.1098593333445 secs
Implementation • Didn’t compare precise::pow vs fast::pow • Initialise the
array on CPU, then pass it to GPU for computation • Using CPU cache memory
None
iOS 9 • Metal is now available on OS X
too • MTLResourceOptions
iOS 9 • Instrument, Metal System Trace
None
Lesson learned • We have GPU too, and it’s pretty
powerful • And it’s idle almost the whole time
Real world application • For data simulation or visualisation •
Though the truth is, I have no idea • Just did it for fun
GPU Programming in Metal • Twitter: @alienxp03 • Not a
GPU programmer
More Decks by alienxp03
See All by alienxp03
Rails, Capistrano & AWS
alienxp03
0
110
iOS Tools
alienxp03
1
210
RxSwift+MVVM
alienxp03
1
520
From a student to a developer
alienxp03
1
120
Other Decks in Programming
See All in Programming
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
380
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
590
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
250
Claude Codeのおかげでやりたいことがやれるようになったんだよォー!
sms_tech
0
150
エラーチャンネルのボールを拾い続けて鍛えるエンジニアの地力 / phpcon-niigata2026
meihei3
1
440
複数ドメインを一つのアプリに統合するFlutterの設計と運用_FlutterKaigi2026登壇資料(須永高弘)
takahirosunaga
0
200
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
15
12k
オーケストレーション記述言語 Katari
yukikurage
0
270
TanStack Vue Query と Pinia Colada から学ぶ非同期状態の型設計
aoshi
0
690
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
210
Vapor Mode でアクセシビリティは 壊れないか検証した話
fuqda
1
350
はじめてのPLATEAU
nokonoko1203
1
660
Featured
See All Featured
Practical Orchestrator
shlominoach
192
12k
Visualization
eitanlees
153
17k
4 Signs Your Business is Dying
shpigford
187
23k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
690
Mind Mapping
helmedeiros
1
440
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k
Paper Plane (Part 1)
katiecoart
PRO
3
12k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
680
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
980
The SEO identity crisis: Don't let AI make you average
varn
0
630
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k