Linaro Forge¶
Linaro Forge is a suite of profiling and debugging tools, that includes the DDT debugger and the MAP profiler.
Note
We have separate user guides for the tools provided by the linaro-forge
uenv.
The documentation here shows how to download the uenv, and how to set up your environment.
Once you are set up, follow the specific guides:
- the DDT debugger
- the MAP profiler.
Quickstart guide¶
The Linaro uenv is named linaro-forge
, and the available versions can be determined using the uenv image find
command:
finding available linaro-forge versions
This uenv is configured to be mounted in the /user-tools
path so that they can be used alongside application and development uenv mounted at /user-environment
.
When using alongside another uenv, start a uenv session with both uenv.
In the following example, the prgenv-gnu
and linaro-forge
uenv will be mounted at /user-environment
and /user-tools
respectively:
> uenv start prgenv-gnu/24.11,linaro-forge/24.1.1 \
--view=prgenv-gnu:default,forge
# test that everything has been mounted correctly
# (will give warnings if there are problems)
> uenv status
# check that ddt is in the path
> ddt --version
Linaro DDT Part of Linaro Forge.
Copyright (c) 2023-2024 Linaro Limited. All rights reserved.
Version: 24.1.1
Note
The linaro-forge
uenv is always mounted at the /user-tools
mount point, and a script /user-tools/activate
is provided to load both ddt and map into your environment, without needing to use a view.
Install and configure the Linaro client on your local machine¶
We recommend installing the desktop client on your local workstation/laptop. It can be downloaded for a selection of operating systems. The client can be configured to connect with the debug jobs running on Alps, offering a better user experience compared to running with X11 forwarding. Once installed, the client needs to be configured to connect to the vCluster on which you are working.
First, start the client on your laptop:
The path will change if you have installed a different version, or if it has been installed in a non-standard installation location.
Next, configure a connection to the target system. Open the Remote Launch menu and click on configure then Add. Examples of the settings are below.
Field | Value |
---|---|
Connection | daint |
Host Name | cscsusername@ela.cscs.ch cscsusername@daint.cscs.ch |
Remote Installation Directory | uenv run linaro-forge/24.1.1:/user-tools -- /user-tools/env/forge/ |
Field | Value |
---|---|
Connection | santis |
Host Name | cscsusername@ela.cscs.ch cscsusername@santis.cscs.ch |
Remote Installation Directory | uenv run linaro-forge/24.1.1:/user-tools -- /user-tools/env/forge/ |
Field | Value |
---|---|
Connection | clariden |
Host Name | cscsusername@ela.cscs.ch cscsusername@clariden.cscs.ch |
Remote Installation Directory | uenv run linaro-forge/24.1.1:/user-tools -- /user-tools/env/forge/ |
Field | Value |
---|---|
Connection | eiger |
Host Name | cscsusername@ela.cscs.ch cscsusername@eiger.cscs.ch |
Remote Installation Directory | uenv run linaro-forge/24.1.1:/user-tools -- /user-tools/env/forge/ |
Tip
It is recommended to log into Alps using ela.cscs.ch
as a ssh Jump host, as explained here.
In that case, you can remove cscsusername@ela.cscs.ch
from the Linaro client configuration above.
Some notes on the examples above:
- SSH forwarding via
ela.cscs.ch
is used to access the cluster; - replace the username
cscsusername
with your CSCS user name that you would normally use to open an SSH connection to CSCS; Remote Installation Path
is pointing to the install directory of ddt inside the image;- private keys should be the ones generated for CSCS MFA, and this field does not need to be set if you have added the key to your SSH agent.
Once configured, test and save the configuration:
- check whether the configuration is correct, click
Test Remote Launch
. - Click on
ok
andclose
to save the configuration. - You can now connect by going to
Remote Launch
and choose theAlps
entry. If the client fails to connect, look at the error message, check your SSH configuration and make sure you can ssh without the client.
Troubleshooting¶
Notes about known issues.
The proxy type is invalid for this operation
If the tool fails to launch with the following error message:
Error communicating with Licence Server velan.cscs.ch:
The proxy type is invalid for this operation
Attempting again while ignoring proxies.
Proxy environment variables need to be set to let the tool connect to the license server, as explained in Compute node proxy configuration.
AMD GPU support
CSCS does not currently have a Linaro license for AMD gpus.