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

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
主站蜘蛛池模板: 天水市| 宜兰市| 洞口县| 威宁| 中超| 兴海县| 南通市| 通江县| 德江县| 田林县| 大新县| 南木林县| 库伦旗| 万安县| 施甸县| 察哈| 濮阳市| 西昌市| 崇州市| 藁城市| 望奎县| 丹棱县| 平武县| 泉州市| 青阳县| 五常市| 宁河县| 中西区| 明光市| 阿拉善左旗| 淮南市| 东阳市| 昔阳县| 香河县| 晋宁县| 宜兴市| 麦盖提县| 葵青区| 张家港市| 化德县| 随州市|