Skip to content

Commit ae5bfec

Browse files
committed
Change the Nsight Jupyter configuration file into a script that generates one, because we need to programmatically determine our external facing IP address.
1 parent 9a0f83f commit ae5bfec

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
EXTERNAL_IP=$(curl https://ipecho.net/plain)
4+
5+
cat << EOF
6+
{
7+
"ui": {
8+
"enabled": true,
9+
"suppressServerAddressWarning": true,
10+
"host": "${EXTERNAL_IP}",
11+
"dockerHost": "${EXTERNAL_IP}",
12+
"defaultStreamerAddress": "${EXTERNAL_IP}"
13+
},
14+
"nsys": {
15+
"installationPath": "/usr/local/cuda",
16+
"args": "--trace=cuda,nvtx,osrt --python-sampling=true --python-backtrace=cuda --cudabacktrace=all"
17+
},
18+
"ncu": {
19+
"installationPath": "/usr/local/cuda"
20+
}
21+
}
22+
EOF
23+

build/jupyter_nsight_plugin_settings.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)