Description
1 Goals
You have to
1. Get your OS/IDE/editor configured and be ready to write CUDA code (How? Google is your friend).
2. Become familiar with CUDA syntax (You should have learnt some of it during the first lecture).
2 Requirements
In this assignment you have to write a simple text transformer in CUDA. We have provided a skeleton and some utilization functions (SyncedMem<T> and MemoryBuffer<T>). Here we provide a few possible examples:
1 ./a.out test.txt
2 LOREM IPSUM DOLOR SIT AMET, CONSECTETUR ADIPISCING ELIT. QU 3 …
Listing 1: Convert all characters to be captial.
1 ./a.out test.txt 2 Olerm piusm odolr ist mate, ocsnceetutr dapisiicgn leti. Uq
3 …
Listing 2: Swap all pairs in all words (Note: this is quite hard).
3 Submission
• You will be officially registered to this course only if you you complete and submit a working solution in time.
1 GPGPU Assignment #0
Please keep the directory structure of the repo we have provided. For this assignment, we will only judge lab0/main.cu and you should briefly describe what your code does by commenting the source code.
2 GPGPU Assignment #0




Reviews
There are no reviews yet.