Using the template SDK sample as a starting point, write a CUDA program to perform the following

Question:

Using the “template” SDK sample as a starting point, write a CUDA program to perform the following vector operations:1) a b (vector-vector subtraction) 2) a b (vector dot product) The dot product of two vectors a= [a,, a, ...,

Submit code for each program that demonstrates each operation and verifies the correctness of the results.


Download the CUDA Toolkit and SDK from http://www.nvidia.com/object/cuda_ get.html. Make sure to use the "emurelease" (Emulation Mode) version of the code (you will not need actual NVIDIA hardware for this assignment). Build the example programs provided in the SDK, and confirm that they run on the emulator.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Computer Organization And Design The Hardware Software Interface

ISBN: 9780123747501

4th Revised Edition

Authors: David A. Patterson, John L. Hennessy

Question Posted: