VSCODE ON GPU CLASTER

Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages and runtimes (such as C++, C#, Java, Python, PHP, Go, .NET)

Due to hardware limitation on login servers in GPU clusters ,forbidden to use VScode application on login servers (newton, lambda) so , for to develop and debug code you can  use a tunnel option of this application in follow way :

1) download  plugin to home directory :

curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64' --output vscode_cli.tar.gz

tar -xf vscode_cli.tar.gz

2) Open bash session with needed resources :

srun -A nlp -p nlp -c 10 --gres=gpu:2 --pty bash

3) Create secure tunnel :

./code tunnel

4)connect from yours PCs to received path (with browser)

 To grant access to the server, please log into https://github.com/login/device and use code CAC8-BF5E

5) you receive a uncial address to connect by browser or application :

[2023-05-28 14:56:27] info Creating tunnel with the name: lambda5 Open this link in your browser https://vscode.dev/tunnel/lambda5

It’s all !!

Can I run VS Code Server on older Linux distributions?

Starting with VS Code release 1.86, the minimum requirements for the build toolchain of the remote server were raised. The prebuilt servers distributed by VS Code are compatible with Linux distributions based on glibc 2.28 or later, for example, Debian 10, RHEL 8, Ubuntu 20.04.

If your setup does not meet these requirements and you are unable to upgrade the Linux distribution, you can downgrade the VS Code client to version 1.85 to continue using Remote Development. You can downgrade the VS Code client on both desktop and web:

  • On desktop, you can download the VS Code release 1.85 from here. Depending on your platform, make sure to disable updates to stay on that version. A good recommendation is to have release 1.85 as a separate installation, set up with Portable Mode. That way, you won’t affect your main desktop VS Code version.
  • On web, you can add the following query argument ?vscode-version=0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 to use VS Code release 1.85.
Skip to content