• Keine Ergebnisse gefunden

Exercise1(CUDAbasics:Memory, Credits ) DueDate AssignmentonMassivelyParallelAlgorithms-Sheet1

N/A
N/A
Protected

Academic year: 2021

Aktie "Exercise1(CUDAbasics:Memory, Credits ) DueDate AssignmentonMassivelyParallelAlgorithms-Sheet1"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Prof. G. Zachmann

Christoph Schr¨oder (schroeder.c@cs.uni-bremen.de)

University of Bremen School of Computer Science

CGVR Group September 14, 2020

Summer Semester 2020

Assignment on Massively Parallel Algorithms - Sheet 1

Due Date

Hint: You can use one of the examples on the lecture homepage or from the Cuda SDK ( included in the Cuda installation package ) to test if Cuda works at all on your computer. For example, you can run the example1_Utilities/deviceQuery.

Exercise 1 (CUDA basics: Memory, Credits)

In the frameworkcudaMallocAndMemcpy

a) Allocate two arraysd_aandd_bon the device of the same size as the arrayh_aon the host. You can usesizeof(datatype) to get the number of bytes fordatatype.

b) Copyh_aon the host tod_aon the device.

c) Do a device to device copy fromd_atod_b.

d) Copyd_bon the device back toh_aon the host.

e) Freed_aandd_bon the device.

1

Referenzen

ÄHNLICHE DOKUMENTE

Können einzelne Teile eines Algorithmus nicht direkt mit Funktionen einer Bibliothek realisiert werden, wird häufig ein monolithischer Kernel implementiert, der weder auf ein

Dazu wird der Kernel zur Berechnung eines Eulerschritts einige Male auf jeder GPU gestartet und die durchschnittlichen Zeiten gemessen, welche f¨ ur die Verteilung der Komponenten

The Critical Links Detection (CLD) Problem consists of finding for the smallest set of edges in a graph to be protected so that if a given number of unprotected edges are removed

By comparing program execution times for simulations of the Ising model and the Ising spin glass by means of the Metropolis algorithm on Nvidia Tesla C1060 graphics cards and an

In diesem Fall sind zwei Teilbeweise zu f¨ uhren, denn zum einen muss gezeigt werden, dass aus der ersten Aussage die zweite folgt und umgekehrt muss gezeigt werden, dass aus

• GooFit ist ein ToolKit für parallelisierte Maximum Likelihood Fits mit CUDA (OpenMP) in einem rooFit-artigen

Its sole purpose is to (re-)allocate n elements of type T and to provide access to the raw memory location in a controllable way through the val function. The memory management

• Click the button in the Control Window to open Job Setting List window to modify settings for each scan job (see “The Jobs List window” on page 59).. • Click the button in