Skip to content

Add Nsight Compute Profiling to the SGEMM Lab #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions labs/sgemm-regtiled-coarsened/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ Your last RAI submission will be used for grading. Be sure that it
passes all tests for full points (you may still lose points for bugs
not exposed during testing).

## Use Nsight Compute to Profile Your Code

Remove the `#` character in the last command in -rai_build.yml to enable profiling. Note that you have to submit to the rai_amd64_exclusive queue by adding `--queue=rai_amd64_exclusive` to your RAI invocation.
3 changes: 2 additions & 1 deletion labs/sgemm-regtiled-coarsened/rai_build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# lab: Sgemm
rai:
version: 0.2
image: raiproject/pumps2018:amd64-cuda100
image: tonywukun/pumps2018:amd64-cuda100-nsighttest
resources:
cpu:
architecture: amd64
Expand All @@ -14,4 +14,5 @@ commands:
- cmake /src
- make
- ./sgemm -a
# - /usr/local/NVIDIA-Nsight-Compute/ncu --export "sgemm" --force-overwrite --target-processes all --kernel-name-base function --kernel-name regex:mysgemm --launch-skip-before-match 0 --section ComputeWorkloadAnalysis --section InstructionStats --section LaunchStats --section MemoryWorkloadAnalysis --section MemoryWorkloadAnalysis_Chart --section MemoryWorkloadAnalysis_Tables --section Occupancy --section SchedulerStats --section SourceCounters --section SpeedOfLight --section SpeedOfLight_HierarchicalSingleRooflineChart --section WarpStateStats --sampling-interval auto --sampling-max-passes 5 --sampling-buffer-size 33554432 --profile-from-start 1 --cache-control all --clock-control base ./sgemm -a