Profiling OpenMP Offloading Quiz¶
Question 1¶
Which NVHPC tool provides a system-wide performance overview, including both CPU and GPU activity?
- A) Nsight Compute
- B) Nsight Systems
- C) rocprof
- D) AMD uProf
Answer: B) Nsight Systems
Question 2¶
True or False: Nsight Compute is used to analyze system-wide performance, including CPU-GPU interactions.
Answer: False Explanation: Nsight Compute is a kernel profiler focused on GPU performance analysis, while Nsight Systems provides system-wide profiling.
Question 3¶
What command is used to collect performance traces for OpenMP Offloading applications using rocprof?
- A)
$ rocminfo --trace --target example - B)
$ rocprof --hsa-trace --hip-trace ./example - C)
$ rocprof --metrics gpu,hip ./example - D)
$ rocprof --cuda-trace --hsa ./example
Answer: B) $ rocprof --hsa-trace --hip-trace ./example
Question 4¶
True or False: The rocminfo command provides trace information about OpenMP kernel execution.
Answer: False Explanation: rocminfo provides system-level details about ROCm-enabled devices and configurations but does not collect trace information.
Question 5¶
Which modules are required to compile and run OpenMP Offloading applications with GUI profiling tools on NVHPC?
- A)
NVHPC,CUDA,Mesa,Qt5 - B)
ROCm,hipcc,AMDuProf,LLVM - C)
NVHPC,OpenACC,Mesa,Qt6 - D)
Mesa,ROCm,LLVM,NVHPC
Answer: A) NVHPC, CUDA, Mesa, Qt5