Site Search

Intel: When compiling with an SSH login to a remote server, is it possible to continue compiling after disconnecting?

Category: Quartus®
Tools: Quartus® Prime
device:-


When working with SSH, if the communication is interrupted, the process being executed will be terminated. Therefore, when performing relatively long-running work such as compiling an FPGA, using screen allows the session to continue even after the connection is disconnected. It is convenient for

The procedure is as follows.
* Assuming a scene where SSH connection is made from a Windows machine to a Linux server using teraterm.

1. SSH connection by teleterm etc.

2. Run screen on Linux server

$ screen

3. pid verification. I get output like

$screen -ls
There are screens on:
19451.pts-3.tscomp (Attached)
2 Sockets in /var/run/screen/S-tscomp03.

4.FPGA compilation

$ aoc -v --report device/vector_add.cl -o vector_add.aocx --board a10_ref

5. SSH disconnection
exit teleterm

6. SSH reconnection by teleterm etc.

7. Confirm session

$screen -ls
There is a screen on:
19451.pts-3.tscomp (Detached)
1 Socket in /var/run/screen/S-tscomp03.

You can see that no one has attached to the previous session

8. Attach to session and resume work

$screen -r 19451


Customers may also inquire about log acquisition.

There are several ways to do this, and one of the methods we use relatively often is to execute the following when executing a command and display the command execution results to the standard input/output and drop them into a file at the same time.

[cmd] 2>&1 | tee result.txt
* [cmd] is an image of the command (FPGA compilation)

The reason for using this method is that although it is necessary to change the name of the retained file each time it is executed, it is easy to manage as a log.

               

Experienced FAE
Free consultation is available.

From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.