CUDA Operations in PyTorch QUIZ (MCQ QUESTIONS AND ANSWERS)

Total Correct: 0

Time:20:00

Question: 1

Which CUDA command is used to synchronize the device and host and check for errors in GPU operations?

Question: 2

What does the CUDA function cudaThreadSynchronize() do?

Question: 3

What is the purpose of the CUDA function cudaDeviceSetLimit()?

Question: 4

Which CUDA command is used to allocate managed memory that can be accessed by both the host and the GPU?

Question: 5

What is the primary purpose of the CUDA function cudaGetDeviceCount()?

Question: 6

Which CUDA API function is used to set the shared memory configuration for a GPU device?

Question: 7

In CUDA programming, what is the purpose of the term "warp"?

Question: 8

Which CUDA API function is used to query the maximum grid size for a GPU device?

Question: 9

What is the purpose of the CUDA function cudaStreamCreate()?

Question: 10

In CUDA, what is the purpose of the cudaMemcpyKind enumeration?

Question: 11

Which CUDA API function is used to query the maximum number of threads per block for a GPU device?

Question: 12

What is the purpose of the CUDA function cudaDeviceEnablePeerAccess()?

Question: 13

Which CUDA command is used to set the preferred cache configuration for a GPU device?

Question: 14

In CUDA, what does the term "kernel" refer to?

Question: 15

Which CUDA command is used to allocate pinned (page-locked) memory on the host?

Question: 16

Which tool is commonly used for benchmarking GPU operations?

Question: 17

Which CUDA API function is used to obtain the number of available GPU devices on the system?

Question: 18

What is the purpose of the CUDA function cudaSetDeviceFlags()?

Question: 19

Which CUDA command is used to copy data from the host to the GPU device?

Question: 20

In CUDA, what is the purpose of cudaDeviceSynchronize()?

Question: 21

Which CUDA API function is used to query the total global memory size of a GPU device?

Question: 22

What does the CUDA function cudaDeviceReset() do?

Question: 23

What is the purpose of the CUDA function cudaMemset()?

Question: 24

Which CUDA command is used to set the current device for GPU operations?

Question: 25

In CUDA, what does GPU availability check typically involve?

Question: 26

Which CUDA API function is used to allocate memory on the GPU?

Question: 27

What does GPU compatibility refer to in the context of CUDA?

Question: 28

Which CUDA command is used for synchronizing the device and host in order to check for errors?

Question: 29

What CUDA function is used to verify GPU availability and compatibility?

Question: 30

How can you clear GPU memory using CUDA?