User Tools

Site Tools


doc:clava:features

Warning: Undefined array key -1 in /home/feupptspecs/public_html/wiki/inc/html.php on line 1458

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:clava:features [2022/01/15 20:32]
jbispo [Server Mode]
doc:clava:features [2022/01/15 20:37] (current)
jbispo [Server Mode]
Line 4: Line 4:
  
 TODO TODO
 +
 +===== CMake Integration =====
 +
 +TODO
 +
  
 ===== Pragma Data ===== ===== Pragma Data =====
Line 21: Line 26:
 ''clava -server'' ''clava -server''
  
-The [[doc:clava:features#installation_script_linux||Linux instalation script]] provides the ''clavaw'' program, which sends a request to a Clava server:+The [[doc:clava:features#installation_script_linux|Linux instalation script]] provides the ''clavaw'' program, which sends a request to a Clava server:
  
 ''clavaw <Clava flags>'' ''clavaw <Clava flags>''
 +
 +Execution time without server vs with server:
 +
 +{{:doc:clava:clava_server.png?direct|}}
 +
 +==== Limitations ====
 +
 +   * Only absolute paths are supported in this mode, since the server will use its own folder as the working folder. However, files defined in config files should be handled automatically, they are converted to absolute paths, using the folder of the config file as the base folder. Additionally, if inside a Lara script you need to use files, you can use ''Clava.getData().getContextFolder()'' (''import clava.Clava;'') to return the folder of the config file.
 +   * The output of the program will appear on the terminal of the server, not where ''clavaw'' runs.
  
  
 /* To improve execution time, Clava can be launched in server mode, using the flag ''-server'' (e.g., ''clava -server''). When running in server mode, Clava will keep running and accept local requests. Requests can be sent by using the command ''clavaw'', as if it where the command ''clava'' (both available if the [[Linux instalati]] */ /* To improve execution time, Clava can be launched in server mode, using the flag ''-server'' (e.g., ''clava -server''). When running in server mode, Clava will keep running and accept local requests. Requests can be sent by using the command ''clavaw'', as if it where the command ''clava'' (both available if the [[Linux instalati]] */
doc/clava/features.1642278731.txt.gz ยท Last modified: 2022/01/15 20:32 by jbispo