程序代写 cuda GPU algorithm ppt/slideLayouts/slideLayout1.xml – cscodehelp代写

ppt/slideLayouts/slideLayout1.xml

ppt/slideLayouts/slideLayout2.xml

ppt/slideLayouts/slideLayout3.xml

ppt/slideLayouts/slideLayout4.xml

ppt/slideLayouts/slideLayout5.xml

ppt/slideLayouts/slideLayout6.xml

ppt/slideLayouts/slideLayout7.xml

ppt/slideLayouts/slideLayout8.xml

ppt/slideLayouts/slideLayout9.xml

ppt/slideLayouts/slideLayout10.xml

ppt/slideLayouts/slideLayout11.xml

ppt/slideLayouts/slideLayout12.xml

ppt/slideLayouts/slideLayout13.xml

ppt/slideLayouts/slideLayout14.xml

ppt/slideLayouts/slideLayout15.xml

ppt/slideLayouts/slideLayout16.xml

ppt/slideLayouts/slideLayout17.xml

ppt/slideLayouts/slideLayout18.xml

ppt/slideLayouts/slideLayout19.xml

ppt/slideLayouts/slideLayout20.xml

ppt/slideLayouts/slideLayout21.xml

ppt/slideLayouts/slideLayout22.xml

ppt/slideLayouts/slideLayout23.xml

ppt/slideLayouts/slideLayout24.xml

ppt/slideLayouts/slideLayout25.xml

ppt/slideLayouts/slideLayout26.xml

ppt/slideMasters/slideMaster1.xml

ppt/theme/theme1.xml

ppt/slideLayouts/slideLayout27.xml

ppt/slideLayouts/slideLayout28.xml

ppt/slideLayouts/slideLayout29.xml

ppt/slideLayouts/slideLayout30.xml

ppt/slideLayouts/slideLayout31.xml

ppt/slideLayouts/slideLayout32.xml

ppt/slideLayouts/slideLayout33.xml

ppt/slideLayouts/slideLayout34.xml

ppt/slideLayouts/slideLayout35.xml

ppt/slideLayouts/slideLayout36.xml

ppt/slideLayouts/slideLayout37.xml

ppt/slideLayouts/slideLayout38.xml

ppt/slideLayouts/slideLayout39.xml

ppt/slideLayouts/slideLayout40.xml

ppt/slideLayouts/slideLayout41.xml

ppt/slideLayouts/slideLayout42.xml

ppt/slideLayouts/slideLayout43.xml

ppt/slideLayouts/slideLayout44.xml

ppt/slideLayouts/slideLayout45.xml

ppt/slideLayouts/slideLayout46.xml

ppt/slideLayouts/slideLayout47.xml

ppt/slideLayouts/slideLayout48.xml

ppt/slideLayouts/slideLayout49.xml

ppt/slideLayouts/slideLayout50.xml

ppt/slideMasters/slideMaster2.xml

ppt/theme/theme2.xml

ppt/slides/slide1.xml

ppt/slides/slide2.xml

ppt/notesSlides/notesSlide1.xml

ppt/slides/slide3.xml

ppt/slides/slide4.xml

ppt/slides/slide5.xml

ppt/slides/slide6.xml

ppt/slides/slide7.xml

ppt/slides/slide8.xml

ppt/slides/slide9.xml

ppt/slides/slide10.xml

ppt/slides/slide11.xml

ppt/slides/slide12.xml

ppt/slides/slide13.xml

ppt/slides/slide14.xml

ppt/slides/slide15.xml

ppt/slides/slide16.xml

ppt/slides/slide17.xml

ppt/slides/slide18.xml

ppt/slides/slide19.xml

ppt/slides/slide20.xml

ppt/slides/slide21.xml

ppt/slides/slide22.xml

ppt/slides/slide23.xml

ppt/slides/slide24.xml

ppt/slides/slide25.xml

ppt/slides/slide26.xml

ppt/slides/slide27.xml

ppt/slides/slide28.xml

ppt/slides/slide29.xml

ppt/slides/slide30.xml

ppt/slides/slide31.xml

ppt/slides/slide32.xml

ppt/notesMasters/notesMaster1.xml

ppt/theme/theme3.xml

ppt/handoutMasters/handoutMaster1.xml

ppt/theme/theme4.xml

ppt/presProps.xml

ppt/viewProps.xml

ppt/tableStyles.xml

docProps/app.xml

docProps/core.xml

docProps/thumbnail.jpeg

docProps/custom.xml

ppt/media/image1.jpeg

ppt/media/image10.jpeg

ppt/media/image11.jpeg

ppt/media/image12.jpeg

ppt/media/image13.jpeg

ppt/media/image14.jpeg

ppt/media/image15.jpeg

ppt/media/image16.jpeg

ppt/media/image17.jpeg

ppt/media/image18.jpeg

ppt/media/image19.jpeg

ppt/media/image2.png

ppt/media/image20.png

ppt/media/image21.png

ppt/media/image22.png

ppt/media/image23.png

ppt/media/image24.png

ppt/media/image25.png

ppt/media/image26.png

ppt/media/image27.jpeg

ppt/media/image28.png

ppt/media/image29.jpeg

ppt/media/image3.jpeg

ppt/media/image30.png

ppt/media/image31.png

ppt/media/image32.png

ppt/media/image33.png

ppt/media/image4.jpeg

ppt/media/image5.png

ppt/media/image6.jpeg

ppt/media/image7.jpeg

ppt/media/image8.png

ppt/media/image9.jpeg

ppt/media/media1.mov

ppt/media/media2.m4a

ppt/presentation.xml

_rels/.rels

ppt/handoutMasters/_rels/handoutMaster1.xml.rels

ppt/notesMasters/_rels/notesMaster1.xml.rels

ppt/notesSlides/_rels/notesSlide1.xml.rels

ppt/_rels/presentation.xml.rels

ppt/slideLayouts/_rels/slideLayout1.xml.rels

ppt/slideLayouts/_rels/slideLayout10.xml.rels

ppt/slideLayouts/_rels/slideLayout11.xml.rels

ppt/slideLayouts/_rels/slideLayout12.xml.rels

ppt/slideLayouts/_rels/slideLayout13.xml.rels

ppt/slideLayouts/_rels/slideLayout14.xml.rels

ppt/slideLayouts/_rels/slideLayout15.xml.rels

ppt/slideLayouts/_rels/slideLayout16.xml.rels

ppt/slideLayouts/_rels/slideLayout17.xml.rels

ppt/slideLayouts/_rels/slideLayout18.xml.rels

ppt/slideLayouts/_rels/slideLayout19.xml.rels

ppt/slideLayouts/_rels/slideLayout2.xml.rels

ppt/slideLayouts/_rels/slideLayout20.xml.rels

ppt/slideLayouts/_rels/slideLayout21.xml.rels

ppt/slideLayouts/_rels/slideLayout22.xml.rels

ppt/slideLayouts/_rels/slideLayout23.xml.rels

ppt/slideLayouts/_rels/slideLayout24.xml.rels

ppt/slideLayouts/_rels/slideLayout25.xml.rels

ppt/slideLayouts/_rels/slideLayout26.xml.rels

ppt/slideLayouts/_rels/slideLayout27.xml.rels

ppt/slideLayouts/_rels/slideLayout28.xml.rels

ppt/slideLayouts/_rels/slideLayout29.xml.rels

ppt/slideLayouts/_rels/slideLayout3.xml.rels

ppt/slideLayouts/_rels/slideLayout30.xml.rels

ppt/slideLayouts/_rels/slideLayout31.xml.rels

ppt/slideLayouts/_rels/slideLayout32.xml.rels

ppt/slideLayouts/_rels/slideLayout33.xml.rels

ppt/slideLayouts/_rels/slideLayout34.xml.rels

ppt/slideLayouts/_rels/slideLayout35.xml.rels

ppt/slideLayouts/_rels/slideLayout36.xml.rels

ppt/slideLayouts/_rels/slideLayout37.xml.rels

ppt/slideLayouts/_rels/slideLayout38.xml.rels

ppt/slideLayouts/_rels/slideLayout39.xml.rels

ppt/slideLayouts/_rels/slideLayout4.xml.rels

ppt/slideLayouts/_rels/slideLayout40.xml.rels

ppt/slideLayouts/_rels/slideLayout41.xml.rels

ppt/slideLayouts/_rels/slideLayout42.xml.rels

ppt/slideLayouts/_rels/slideLayout43.xml.rels

ppt/slideLayouts/_rels/slideLayout44.xml.rels

ppt/slideLayouts/_rels/slideLayout45.xml.rels

ppt/slideLayouts/_rels/slideLayout46.xml.rels

ppt/slideLayouts/_rels/slideLayout47.xml.rels

ppt/slideLayouts/_rels/slideLayout48.xml.rels

ppt/slideLayouts/_rels/slideLayout49.xml.rels

ppt/slideLayouts/_rels/slideLayout5.xml.rels

ppt/slideLayouts/_rels/slideLayout50.xml.rels

ppt/slideLayouts/_rels/slideLayout6.xml.rels

ppt/slideLayouts/_rels/slideLayout7.xml.rels

ppt/slideLayouts/_rels/slideLayout8.xml.rels

ppt/slideLayouts/_rels/slideLayout9.xml.rels

ppt/slideMasters/_rels/slideMaster1.xml.rels

ppt/slideMasters/_rels/slideMaster2.xml.rels

ppt/slides/_rels/slide1.xml.rels

ppt/slides/_rels/slide10.xml.rels

ppt/slides/_rels/slide11.xml.rels

ppt/slides/_rels/slide12.xml.rels

ppt/slides/_rels/slide13.xml.rels

ppt/slides/_rels/slide14.xml.rels

ppt/slides/_rels/slide15.xml.rels

ppt/slides/_rels/slide16.xml.rels

ppt/slides/_rels/slide17.xml.rels

ppt/slides/_rels/slide18.xml.rels

ppt/slides/_rels/slide19.xml.rels

ppt/slides/_rels/slide2.xml.rels

ppt/slides/_rels/slide20.xml.rels

ppt/slides/_rels/slide21.xml.rels

ppt/slides/_rels/slide22.xml.rels

ppt/slides/_rels/slide23.xml.rels

ppt/slides/_rels/slide24.xml.rels

ppt/slides/_rels/slide25.xml.rels

ppt/slides/_rels/slide26.xml.rels

ppt/slides/_rels/slide27.xml.rels

ppt/slides/_rels/slide28.xml.rels

ppt/slides/_rels/slide29.xml.rels

ppt/slides/_rels/slide3.xml.rels

ppt/slides/_rels/slide30.xml.rels

ppt/slides/_rels/slide31.xml.rels

ppt/slides/_rels/slide32.xml.rels

ppt/slides/_rels/slide4.xml.rels

ppt/slides/_rels/slide5.xml.rels

ppt/slides/_rels/slide6.xml.rels

ppt/slides/_rels/slide7.xml.rels

ppt/slides/_rels/slide8.xml.rels

ppt/slides/_rels/slide9.xml.rels

[Content_Types].xml

Add presentation title – Arial 32pt Add presenter name or subtitle – Arial 24pt

Add presentation title – Arial 32pt Add presenter name or subtitle – Arial 24pt

Add presentation title – Arial 32pt Add presenter name or subtitle – Arial 24pt

Add presentation title – Arial 32pt Add presenter name or subtitle – Arial 24pt

Divider slide title – Arial Bold 36pt Subtitle – Arial 28pt

Divider slide title – Arial Bold 36pt Subtitle – Arial 28pt

Divider slide title – Arial Bold 36pt Subtitle – Arial 28pt

Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Title and visual content – add slide title here Subtitle Name, Department

Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Title and visual content – add slide title here Name, Department

Title and visual content – add slide title here Name, Department

Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Title and visual content – add slide title here Subtitle Subtitle Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Name, Department

Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Title and visual content – add slide title here Subtitle Please see slides at the end of this template for chart and table style guides. Copy and paste these items onto this page for ease. Name, Department

Title and visual content – add slide title here Quote text goes here – Georgia 40pt Please see slides at the end of this template for chart and table style guides. Copy and paste these items onto this page for ease. Name, Department

Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Title and visual content – add slide title here Subtitle Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Subtitle Please see slides at the end of this template for chart and table style guides. Copy and paste these items onto this page for ease. Name, Department

Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Title and visual content – add slide title here Subtitle Use this slide to showcase key facts and figures by editing the text in these boxes. Options with less boxes are also available in under the ’Layouts’ button. 1 in 5 Lorem ipsum dolor sit amet 75% Lorem ipsum dolor sit amet £2m Lorem ipsum Dolor sit amet Name, Department

Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Title and visual content – add slide title here Subtitle Use this slide to showcase key facts and figures by editing the text in these boxes. Options with more boxes are also available in under the ’Layouts’ button. 1 in 5 Lorem ipsum dolor sit amet £2m Lorem ipsum dolor sit amet Name, Department

Click to edit Master text styles Title and visual content – add slide title here Click to edit Master text styles Click to edit Master text styles Click to edit Master text styles Click to edit Master text styles Name, Department

Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Title and visual content – add slide title here Subtitle Drag and drop an image onto this slide or click the picture icon to select an image. You can find our imagebank here: www.nottingham.ac.uk / imagebank Name, Department

Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Title and visual content – add slide title here Subtitle Drag and drop an image onto this slide or click the picture icon to select an image. You can find our imagebank here: www.nottingham.ac.uk / imagebank Name, Department

Title and visual content – add slide title here Drag and drop an image onto this slide or click the picture icon to select an image. You can find our imagebank here: www.nottingham.ac.uk / imagebank Name, Department

End slide questions?

End slide questions?

Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Title and visual content – add slide title here Subtitle Name, Department All items on these slides are editable. You can change the colour , outline and size easily as you do with other PowerPoint shapes.

Title and visual content – add slide title here Subtitle Name, Department All items on these slides are editable. You can change the colour , outline and size easily as you do with other PowerPoint shapes.

Name, Department

Add presentation title – Arial 32pt Add partner logo here if required Add presenter name or subtitle – Arial 24pt Use the ‘ ’ or ‘Layout’ buttons for different cover slide options.

Add presentation title – Arial 32pt Add presenter name or subtitle – Arial 24pt

Add presentation title – Arial 32pt Add presenter name or subtitle – Arial 24pt

Add partner logo here if required Add presentation title – Arial 32pt Add presenter name or subtitle – Arial 24pt

Divider slide title – Arial Bold 36pt Subtitle – Arial 28pt Use the ‘ ’ or ‘Layout’ buttons for different divider slide options.

Divider slide title – Arial Bold 36pt Subtitle – Arial 28pt

Divider slide title – Arial Bold 36pt Subtitle – Arial 28pt

Use the ‘ ’ or ‘Layout’ buttons for different slide content options. Name, Department Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Title and visual content – add slide title here Subtitle Please see slides at the end of this template for chart and table style guides. Copy and paste these items onto this page for ease. To change the information in the footer throughout the presentation go to ‘Insert’ > ‘Header and Footers’ and add in your Name an Department.

Name, Department Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Title and visual content – add slide title here Please see slides at the end of this template for chart and table examples as well as different elements. Copy and paste these items onto this page.

Name, Department Title and visual content – add slide title here

Name, Department Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Title and visual content – add slide title here Subtitle Subtitle Please see slides at the end of this template for chart and table style guides. Copy and paste these items onto this page for ease. Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt

Name, Department Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Title and visual content – add slide title here Subtitle Please see slides at the end of this template for chart and table style guides. Copy and paste these items onto this page for ease.

Name, Department Title and visual content – add slide title here Quote text goes here – Georgia 40pt Please see slides at the end of this template for chart and table style guides. Copy and paste these items onto this page for ease.

Name, Department Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Title and visual content – add slide title here Subtitle Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Subtitle Please see slides at the end of this template for chart and table style guides. Copy and paste these items onto this page for ease.

Name, Department Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Title and visual content – add slide title here Subtitle Use this slide to showcase key facts and figures by editing the text in these boxes. Options with less boxes are also available in under the ’Layouts’ button. 1 in 5 Lorem ipsum dolor sit amet 75% Lorem ipsum dolor sit amet £2m Lorem ipsum Dolor sit amet

Name, Department Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Title and visual content – add slide title here Subtitle Use this slide to showcase key facts and figures by editing the text in these boxes. Options with more boxes are also available in under the ’Layouts’ button. 1 in 5 Lorem ipsum dolor sit amet £2m Lorem ipsum dolor sit amet

Click to edit Master text styles Name, Department Title and visual content – add slide title here Click to edit Master text styles Click to edit Master text styles Click to edit Master text styles Click to edit Master text styles

Name, Department Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Title and visual content – add slide title here Subtitle Drag and drop an image onto this slide or click the picture icon to select an image. You can find our imagebank here: www.nottingham.ac.uk / imagebank

Name, Department Title and visual content – add slide title here Drag and drop an image onto this slide or click the picture icon to select an image. You can find our imagebank here: www.nottingham.ac.uk / imagebank

Name, Department

Name, Department

End slide Questions?

End slide Questions?

Name, Department Body text – Arial 28pt Second text – Arial 28pt Third text – Arial 28pt Title and visual content – add slide title here Subtitle

Name, Department Top Presentation Tips Keep it simple Always think about your audience Limit transitions and animations Respect the University of Nottingham brand and identity Use visuals and high-quality images Use video or audio Use colour Think about Prepare and practice

EEEE4115 Advanced Computational Engineering Introduction to GPU Programming with CUDA ®

The University of Nottingham Your Department Name etc

The GPU is seen as a ‘compute device’ to execute all or part of an application that: Can be isolated as a function Has to be executed many times Is highly data parallel Is lightweight The function when compiled to run on the ‘device’ is called a ‘Kernel’ NVIDIA’s CUDA: A Recap CUDA Programming Model

Allocate memory on device Allocated by cudaMalloc () Copy input arrays from host to device memory cudaMemcpy () Execute kernel(s) on the device kernel <<< block size, number of blocks, shared memory size >>>(parameters); Copy output arrays from device to host cudaMemcpy () NVIDIA’s CUDA: A Recap CUDA Programming Model

Each thread has a unique local index. Each block has a unique local index. These indices can be used to index data in arrays NVIDIA’s CUDA: A Recap Thread/Block Model

NVIDIA’s CUDA: A Recap Thread/Block Model int data [10] = { 2, 4, 6, 8, 10, 12, 14, 16, 18, 20} creates: 4 2 6 8 10 12 14 16 18 20 data 0 1 2 3 4 5 6 7 8 9 to select i th element: kernel <<<1,10>>>: int i = threadIdx.x ; do something with data[ i ]; kernel <<<10,1>>>: int i = blockIdx.x ; do something with data[ i ]; kernel <<<2,5>>>: int i = blockDim.x * blockIdx.x + threadIdx.x ; do something with data[ i ]; (kernel <<>>(…); )

NVIDIA’s CUDA: A Recap a[] = {1,2,3,4,5,6,7,8,9,…} (number of elements = int length ) 1 2 3 4 5 6 7 8 9 a: CPU code to access elements of a[] : void foo ( int *a, int *b) { for ( int i =0; i < length ;i ++){ b[ i ] = a[ i ]; } } NVIDIA’s CUDA: A Recap a[] = {1,2,3,4,5,6,7,8,9,…} (number of elements = int length ) GPU code to access elements of a[] using block of threads: __global__ void foo( int *a, int *b) { int index = threadIdx.x ; //unique thread ID if (index < length ) b[index] = a[index]; } Remember, max. number of threads = 512 or 1024 (hardware dependant) 1 2 3 4 5 6 7 8 9 a: thread no. 1 2 3 4 5 6 7 8 9 block no 1 1 2 3 4 5 6 7 8 9 a: a[] = {1,2,3,4,5,6,7,8,9,…} (number of elements = int length ) 1 2 3 4 5 6 7 8 9 a: GPU code to access elements of a[] using blocks of single threads: __global__ void foo( int *a, int *b) { int index = blockIdx.x ; //unique block ID if (index < length ) b[index] = a[index]; } Remember, max. number of blocks = 65535 1 2 3 4 5 6 7 8 9 a: block no. 1 2 3 4 5 6 7 8 9 thread no. 1 1 1 1 1 1 1 1 1 a[] = {1,2,3,4,5,6,7,8,9,…} (number of elements = int length ) 1 2 3 4 5 6 7 8 9 a: GPU code to access elements of a[] using blocks of n threads: e.g. n = 3: __global__ void foo( int *a, int *b) { int index = threadIdx.x+blockIdx.x * blockDim.x ; if (index < length ) b[index] = a[index]; } 1 2 3 4 5 6 7 8 9 block no 1 block no 2 block no 3 ….. a: thread no. 1 2 3 1 2 3 1 2 3 Example: Computing  Illustrating memory types 3 tier reduction: Every thread adds a number of terms The first thread in each block adds all results from the block The CPU does the remaining reductions 3 types of memory Each thread uses private memory to store their partial results The first thread of a block needs access to all results in the block using shared memory The block totals need to by copied to CPU global memory Computing  Approach Computing  - Device Code allocate work to each thread each thread calculates their contribution to overall approximation wait for all threads to finish calculate sum of contributions from threads in each block Computing  - Host Code CUDA error type assign total amount of work per thread/block allocate memory on device, copy arrays and check for errors call kernel copy sums from each block sum all Example: Computational Electromagnetics Porting the 1D TLM Algorithm to CUDA Transmission Line Method Founded and developed within the University for over 40 years Time domain method for the computation of electromagnetic fields Problems are discretised in time and space The computational domain being broken down into a mesh of transmission line segments connected at ‘nodes’ Extremely powerful and underpins the simulation strategies employed commercial software TLM Example: Aircraft Radome TLM Example: Aircraft Radome 1D TLM Algorithm The Algorithm - Consider a line in free space i.e. a wire. Problem space subdivided into N equal sections (nodes) . Simulation is then run for a total time T, over a number of time steps of ∆t.

Leave a Reply

Your email address will not be published. Required fields are marked *