{{Draft}} If you need to use graphics while testing your code, e.g. when using a debugger such as DDT or DDD, you have the following options: = Use the debugjob command =
debugjob
command which automatically provides X-forwarding support.
debugjob
is not suitable for your case due to the limitations either on time or resources (see above [[#Testing]]), then you have to follow these steps:
You will need two terminals in order to achieve this:
niagara.scinet.utoronto.ca
and issue your salloc
command
niaWXYZ
niagara.scinet.utoronto.ca
now using the -X
flag in the ssh command
ssh -X niaWXYZ
, ie. you will ssh carrying on the '-X' flag into the head node of the job
niaWXYZ
you should be able to use graphics and should be redirected by x-forwarding to your local terminal
screen
to request the resources and then detach the session and ssh into the head node directly.