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

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
主站蜘蛛池模板: 永州市| 苗栗市| 永丰县| 海安县| 漳平市| 池州市| 安溪县| 克东县| 万全县| 武清区| 富民县| 紫云| 浙江省| 扎鲁特旗| 武平县| 武冈市| 濮阳市| 安溪县| 曲靖市| 阿克| 台山市| 鹿泉市| 绥棱县| 札达县| 黑山县| 松溪县| 遂平县| 五家渠市| 五大连池市| 长顺县| 社旗县| 仲巴县| 大理市| 绥德县| 攀枝花市| 南华县| 日土县| 雷州市| 石台县| 铁力市| 岢岚县|