
上QQ阅读APP看书,第一时间看更新
Questions
- Write a CUDA program to subtract two numbers. Pass parameters by value in the kernel function.
- Write a CUDA program to multiply two numbers. Pass parameters by reference in the kernel function.
- Suppose you want to launch 5,000 threads in parallel. Configure kernel parameters in three different ways to accomplish this. Maximum 512 threads are possible per block.
- True or false: The programmer can decide in which order blocks will execute on the device, and blocks will be assigned to which streaming multiprocessor?
- Write a CUDA program to find out that your system contains a GPU device that has a major-minor version of 5.0 or greater.
- Write a CUDA program to find a cube of a vector that contains numbers from 0 to 49.
- For the following applications, which communication pattern is useful?
- Image processing
- Moving average
- Sorting array in ascending order
- Finding cube of numbers in array