Skip to content
Open
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
10 changes: 8 additions & 2 deletions tutorials/pyhpc/brev/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,14 @@ RUN set -eux; \
rm -rf /var/lib/apt/lists/*

# Install profiler-backed kernels for in-place notebook cell profiling.
RUN nsightful-ncu install --sys-prefix '--profiler-args=--set full --clock-control none' \
&& nsightful-nsys install --sys-prefix '--profiler-args=--trace=cuda,nvtx,osrt'
RUN nsightful-ncu install --prefix /usr/local '--profiler-args=--set full --clock-control none' \
&& nsightful-nsys install --prefix /usr/local '--profiler-args=--trace=cuda,nvtx,osrt' \
&& chmod -R a+rX /usr/local/share/jupyter/kernels/nsightful-ncu \
/usr/local/share/jupyter/kernels/nsightful-nsys \
&& su -s /bin/sh nobody -c 'HOME=/tmp python -m jupyter kernelspec list --json' \
| grep -q 'nsightful-ncu' \
&& su -s /bin/sh nobody -c 'HOME=/tmp python -m jupyter kernelspec list --json' \
| grep -q 'nsightful-nsys'

# Disable unnecessary default Jupyter extensions.
RUN python -m jupyter labextension disable "@jupyterlab/apputils-extension:announcements" \
Expand Down