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

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
主站蜘蛛池模板: 广宁县| 肥乡县| 高雄市| 呼图壁县| 大兴区| 威宁| 全州县| 濉溪县| 长治市| 东平县| 咸阳市| 利津县| 吴江市| 得荣县| 固阳县| 黄山市| 花垣县| 旬邑县| 安丘市| 宝兴县| 涿州市| 浦江县| 仙居县| 台前县| 贵定县| 昌宁县| 安化县| 沐川县| 阿拉尔市| 金山区| 泰来县| 建平县| 南阳市| 五家渠市| 乐都县| 马边| 肃北| 布尔津县| 临武县| 孙吴县| 普陀区|