官术网_书友最值得收藏!

Questions

  1. Write a CUDA program to subtract two numbers. Pass parameters by value in the kernel function.
  2. Write a CUDA program to multiply two numbers. Pass parameters by reference in the kernel function.
  3. 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.
  4. 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?
  5. 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.
  1. Write a CUDA program to find a cube of a vector that contains numbers from 0 to 49.
  2. For the following applications, which communication pattern is useful?
    1. Image processing
    2. Moving average
    3. Sorting array in ascending order
    4. Finding cube of numbers in array
主站蜘蛛池模板: 靖江市| 哈尔滨市| 弥渡县| 甘泉县| 东阿县| 嘉峪关市| 肇源县| 大冶市| 丰原市| 苏尼特左旗| 南皮县| 锦州市| 高淳县| 汤原县| 淮北市| 内乡县| 农安县| 乐山市| 银川市| 青神县| 玉山县| 饶河县| 涟水县| 饶阳县| 岳普湖县| 兴隆县| 邳州市| 石嘴山市| 澄城县| 天峨县| 霍林郭勒市| 临武县| 怀远县| 宜良县| 垦利县| 康保县| 蓬溪县| 阿尔山市| 景泰县| 凤阳县| 登封市|