W r i t i n g e l e g a n t h o s t - s i d e - - PowerPoint PPT Presentation

w r i t i n g e l e g a n t h o s t s i d e c o d e w i t
SMART_READER_LITE
LIVE PREVIEW

W r i t i n g e l e g a n t h o s t - s i d e - - PowerPoint PPT Presentation

W r i t i n g e l e g a n t h o s t - s i d e c o d e w i t h mo d e r n - C + + w r a p p e r s f o r t h e C U D A r u n t i me A P I E y a a l l R o o z z e n b e r


slide-1
SLIDE 1

W r i t i n g e l e g a n t h

  • s

t

  • s

i d e c

  • d

e w i t h mo d e r n

  • C

+ + w r a p p e r s f

  • r

t h e C U D A r u n t i me A P I

E y a l a l R

  • z
  • z

e n b e r g D B A r c h i t e c t u r e s G r

  • u

p C W I A m s t e r d a m

slide-2
SLIDE 2

2

A r e y

  • u

i n t h e r i g h t l a b ?

W e a r e g

  • i

n g t

  • :
  • W
  • r

k

  • n

r e w r i t i n g a v e r y s i m p l e C U D A p r

  • g

r a m :

  • g

r a d u a l l y t r a n s i t i

  • n

i n g t

  • a

n i c e r A P I

  • k

e e p i n g t h e

  • r

i g i n a l f u n c t i

  • n

a l i t y

  • W

r i t e s

  • m

e h

  • s

t

  • s

i d e c

  • d

e

. . . n

  • t

d e v i c e

  • s

i d e c

  • d

e ( = n

  • k

e r n e l s )

  • U

s e s

  • m

e C + + 1 1 a n d C + + 1 4

… b u t d

  • n

' t p a n i c i f y

  • u

' r e n

  • t

a n e x p e r t :

  • )
  • I

f w e m a k e g

  • d

t i m e , w e m i g h t d i v e i n t

  • t

h e i n n a r d s a t t h e e n d .

slide-3
SLIDE 3

3

A b

  • u

t me

  • M
  • v

i n g b a c k a n d f

  • r

t h b e t w e e n A c a d e m i a a n d I n d u s t r y

  • W

r a p p i n g u p a p

  • s

t

  • d
  • c

s t i n t w i t h t h e C W I D B M S a r c h i t e c t u r e g r

  • u

p

  • H
  • m

e

  • f

M

  • n

e t D B – a F O S S a n a l y t i c s

  • r

i e n t e d c

  • l

u m n s t

  • r

e D B M S

  • F
  • c

u s e d

  • n

A n a l y t i c D B M S A r c h i t e c t u r e , a n d h

  • w

G P U s s h

  • u

l d a fg e c t i t

  • H

a v e d

  • n

e s

  • m

e w

  • r

k

  • n

l i g h t w e i g h t c

  • m

p r e s s i

  • n

… l

  • k

f

  • r

l i b g i d d y

  • n

G i t H u b

  • M
  • d

e r n C + + e n t h u s i a s t

… t h e l a n g u a g e i s g e t t i n g m

  • r

e e x p r e s s i v e , a l

  • t

l e s s c

  • n

t

  • r

t i

  • n

n e c e s s a r y

slide-4
SLIDE 4

4

( M y ) mo t i v a t i

  • n
  • C

U D A k e r n e l c

  • d

e i s a d

  • p

t i n g C + + 1 1 , C + + 1 4 c

  • n

s t r u c t s

  • H
  • s

t

  • s

i d e c

  • d

e i s n ' t g

  • i

n g i n t h a t d i r e c t i

  • n

a t a l l ( ! )

  • I

n f a c t , w e a r e s t u c k w i t h a p u r e l y C

  • s

t y l e A P I :

  • E

x p l i c i t e r r

  • r

c h e c k i n g e v e r y w h e r e ( n

  • e

x c e p t i

  • n

s )

  • N

e e d t

  • p

a s s a d d r e s s e s f

  • r

p r e

  • a

l l

  • c

a t e d r e s u l t s

  • A

b a z i l l i

  • n

d i fg e r e n t f u n c t i

  • n

s w i t h l

  • n

g n a m e s

  • L
  • t

s

  • f

p

  • i

n t e r s a n d N

  • R

A I I ( R e s

  • u

r c e A c q u i s i t i

  • n

i s I n i t i a l i z a t i

  • n

)

  • I

f

  • u

n d m y s e l f " w r a p p i n g u p t h e m e s s " w i t h n i c e r

  • l
  • k

i n g c

  • d

e

… w h i c h e v e n t u a l l y c

  • v

e r e d m u c h

  • f

t h e R u n t i m e A P I

slide-5
SLIDE 5

5

L e t ' s g e t t

  • i

t …!

  • S

t a r t y

  • u

r v i r t u a l m a c h i n e s

  • Y
  • u

s h

  • u

l d h a v e a f i l e n a m e d

l a b . t a r . g z

( s

  • m

e w h e r e ) .

  • E

x e c u t e

t a r x v f l a b . t a r . g z & & c d l a b

.

  • E

x e c u t e

m a k e c l

  • n

e ; m a k e v 1

.

  • E

d i t t h e f i l e

v e c t

  • r

A d d . c u

  • Y
  • u

c a n u s e n s i g h t a s a v i s u a l e d i t

  • r

a n d t h e r e ' s a l s

  • v

i , e m a c s a n d p

  • s

s i b l y

  • t

h e r s

  • L

e t m e k n

  • w

y

  • u

' r e s e t u p a n d r e a d y b y t a k i n g y

  • u

r h a n d s

  • fg

t h e k e y b

  • a

r d .

slide-6
SLIDE 6

6

( H a n d s

  • n

s e g me n t )

slide-7
SLIDE 7

7

T h e A P I w r a p p e r l i b r a r y

  • I

t ' s a l r e a d y r e l e a s e d :

  • L

i c e n s i n g : P e r m i s s i v e – ( 3

  • c

l a u s e ) B S D l i c e n s e

  • U

s e r s : O c c a s i

  • n

a l i n d i v i d u a l f

  • r

k e r s a n d a c

  • u

p l e

  • f

p r

  • j

e c t s

… n

  • t

y e t i n p r

  • d

u c t i

  • n

s y s t e m s

  • D
  • c

u me n t a t i

  • n

: M

  • s

t l y

  • c
  • m

p l e t e , d

  • x

y g e n

  • b

a s e d

  • A

d

  • p

t i

  • n

b y n V I D I A ? : N

  • t

y e t , p e s t e r t h e m a b

  • u

t i t !

  • S

u p p

  • r

t : B y y

  • u

r s t r u l y ; u s e t h e G i t H u b i s s u e s p a g e .

h t t p s : / / g i t h u b . c

  • m

/ e y a l r

  • z

/ c u d a

  • a

p i

  • w

r a p p e r s

slide-8
SLIDE 8

8

( H a n d s

  • n

s e g me n t )

T h a n k y

  • u

a n d h a p p y ( e r ) c

  • d

i n g .