-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSingularity
More file actions
81 lines (63 loc) · 2.09 KB
/
Singularity
File metadata and controls
81 lines (63 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Bootstrap: docker
From: nvcr.io/nvidia/nvhpc:25.11-devel-cuda_multi-ubuntu22.04
%environment
export XDG_RUNTIME_DIR=
export DEBIAN_FRONTEND=noninteractive
export UV_SYSTEM_PYTHON=1
export PATH="$PATH:/root/.cargo/bin:/root/.local/bin"
# Set NVIDIA HPC SDK environment variables
export NVHPC_ROOT=/opt/nvidia/hpc_sdk/Linux_x86_64/25.11
export CUDA_HOME=${NVHPC_ROOT}/cuda/12.9
export CUDA_PATH=${CUDA_HOME}/targets/x86_64-linux
# Update PATH with compiler and CUDA binaries
export PATH=${NVHPC_ROOT}/compilers/bin:${CUDA_PATH}/bin:${PATH}
# Update library paths
export LD_LIBRARY_PATH=${CUDA_PATH}/lib:${CUDA_PATH}/lib64:${NVHPC_ROOT}/compilers/lib:${LD_LIBRARY_PATH}
# Update C/C++ include paths
export CPATH=${CUDA_PATH}/include:${CPATH}
%post
build_tmp=$(mktemp -d) && cd ${build_tmp}
export DEBIAN_FRONTEND=noninteractive
export UV_SYSTEM_PYTHON=1
apt-get -y update
apt-get -y dist-upgrade
# Install system dependencies
apt-get install -y --no-install-recommends \
python3 \
python3-pip \
python3-dev \
git \
vim \
curl \
wget \
zip \
unzip \
build-essential \
nvidia-modprobe \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install UV package manager
curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="/root/.cargo/bin:${PATH}"
# Install JupyterLab
/root/.cargo/bin/uv pip install jupyterlab
# Create workspace directory
mkdir -p /workspace/_profiler
cd /
rm -rf ${build_tmp}
%files
_profiler/ /labs
%runscript
"$@"
%labels
Author NVIDIA
Version 2025.11
Description HPC Profiler Bootcamp with NVIDIA HPC SDK and Nsight Tools
%help
This container provides the HPC Profiler Bootcamp environment with:
- NVIDIA HPC SDK 25.11
- CUDA 12.9
- Nsight Systems and Compute profiling capabilities
- JupyterLab interface
To run:
singularity run --nv _profiler.simg jupyter-lab --notebook-dir=~/labs