What is GPU?
What is CUDA?
CUDA runtime API
http://docs.nvidia.com/cuda/cuda-runtime-api/#axzz4OkE2XbJj
What is new in CUDA 9 compared to CUDA 8?
Your task 1:
Consider an example of c++11 folder.
Write a program using thurst library.
http://docs.nvidia.com/cuda/thrust/
http://developer.download.nvidia.com/CUDA/training/introductiontothrust.pdf
Given a text file as linked:
http://www.cpe.ku.ac.th/~cnc/01.nt
http://www.cpe.ku.ac.th/~cnc/01-03.nt
You are required to use thrust library.
Steps:
1. Read triples into a vector.
2. sort according to the subjects using thrust.
3. print the sorted triples to files in the format
<subject1> <pred1> <obj> <pred2> <obj1> ...
<subject2> <pred1> <obj> <pred2> <obj1> ...
Measure the time in two cases.
1. use thrust library
2. do not use thrust library but use C++ std::sort.
Submit a code and report the time in a table format for each case.
- You are to count these words that are subjects in the text file.
Given a set of words, as a file:
one line per word.
For 01.nt:
http://www.cpe.ku.ac.th/~cnc/line1
http://www.cpe.ku.ac.th/~cnc/line1-1
For 01-03.nt
http://www.cpe.ku.ac.th/~cnc/line2
http://www.cpe.ku.ac.th/~cnc/line2-1
Find the number of occurrences of these words in data 01.nt and 01-03.nt using thrust library.
Measure the time in two cases.
1. use thrust library
2. do not use thrust library. Use sequential search and count.