1 / 6

Quiz Questions CUDA

Quiz Questions CUDA. In CUDA, what does the qualifier _global_ indicate when used with the declaration of a routine?. Indicates routine can only be called from host and only executed on the device . Indicates routine can only be called and executed on the device

Télécharger la présentation

Quiz Questions CUDA

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Quiz QuestionsCUDA ITCS 4/5145 Parallel Programming, UNC-Charlotte, B. Wilkinson, 2013, QuizCUDA.ppt Nov 12, 2014

  2. In CUDA, what does the qualifier _global_ indicate when used with the declaration of a routine? • Indicates routine can only be called from host and only executed on the device. • Indicates routine can only be called and executed on the device • Indicates routine can be called by the host and the device and executed on either • The routine is globally accessible • None of the other answers

  3. In CUDA, what does the qualifier __device__ indicate when used with the declaration of a routine? • Indicates routine can only be called from host and only executed on the device. • Indicates routine can only be called and executed on the device • Indicates routine can be called by the host and the device and executed on either • The routine is for input/output devices • None of the other answers

  4. In CUDA, what does the qualifier __host__ indicate when used with the declaration of a routine? • Indicates routine can only be called from host and only executed on the device. • Indicates routine can only be called and executed on the device • Indicates routine can be called by the host and the device and executed on either • Indicates routine can only be called by the host and executed on the host • None of the other answers

  5. In CUDA, what is dim3? • The dimensions of the grid and block. • A CUDA data type, equivalent to a structure with three elements, x, y, and z. • The third dimension of the grid or block • None of the other answers

  6. Suppose a kernel is called with a 1-D grid and 1-D blocks. What is the equation to compute a unique global index for each thread? • blockIdx.x * blockDim.x + threadIdx.x • blockIdx.x + blockDim.x * threadIdx.x • blockIdx.x * blockDim.x * threadIdx.x • blockIdx.x * threadIdx.x + blockDim.x • None of the other answers

More Related