File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 1414 " --privileged" ,
1515 " --volume=/tmp/.X11-unix:/tmp/.X11-unix" ,
1616 " --volume=/mnt/wslg:/mnt/wslg" ,
17+ " --runtime=nvidia" ,
1718 " --gpus=all"
1819 ],
1920 "containerEnv" : {
2223 "XDG_RUNTIME_DIR" : " ${localEnv:XDG_RUNTIME_DIR}" ,
2324 "PULSE_SERVER" : " ${localEnv:PULSE_SERVER}" ,
2425 "LIBGL_ALWAYS_SOFTWARE" : " 1" ,
25- "QT_X11_NO_MITSHM" : " 1"
26+ "QT_X11_NO_MITSHM" : " 1" ,
27+ "NVIDIA_VISIBLE_DEVICES" : " all" ,
28+ "NVIDIA_DRIVER_CAPABILITIES" : " all" ,
29+ "__GLX_VENDOR_LIBRARY_NAME" : " nvidia" ,
30+ "__NV_PRIME_RENDER_OFFLOAD" : " 1" ,
31+ "__VK_LAYER_NV_optimus" : " NVIDIA_only"
2632 },
2733 "customizations" : {
2834 "vscode" : {
2935 "settings" : {
3036 "python.defaultInterpreterPath" : " /home/ubuntu/.venv/blue/bin/python" ,
31- "python.autoComplete.extraPaths" : [" ${workspaceFolder}/install/" ],
32- "python.analysis.extraPaths" : [" ${workspaceFolder}/install/" ]
37+ "python.autoComplete.extraPaths" : [
38+ " ${workspaceFolder}/install/"
39+ ],
40+ "python.analysis.extraPaths" : [
41+ " ${workspaceFolder}/install/"
42+ ]
3343 },
3444 "extensions" : [
3545 " ms-azuretools.vscode-docker" ,
You can’t perform that action at this time.
0 commit comments