HPC/Applications/atk: Difference between revisions

From CNM Wiki
Jump to navigation Jump to search
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Parallel jobs ==
== Parallel jobs ==
* See [http://quantumwise.com/documents/tutorials/latest/ParallelGuide QuantumWise's Parallel Guide]
* See [https://docs.quantumwise.com/tutorials/parallelization/parallelization.html QuantumWise's Parallel Guide]
* We use Intel-MPI instead of MPICH2, with the Hydra process manager instead of MPD. See the sample.job file for details:
* We use Intel-MPI instead of MPICH2, with the Hydra process manager instead of MPD. See the sample.job file for details:
  $ATK_HOME/sample.job
  $ATK_HOME/sample.job
Line 25: Line 25:


=== Preparation ===
=== Preparation ===
* Modify your configuration for SSH port forwarding on Mega. On Mac or Linux, make the changes to the file ~/.ssh/config . On Windows, consult the help pages of your ssh aplication.
* Log out from all Carbon nodes.
* Log out from Mega.
* Modify your configuration for SSH port forwarding to Mega. On Mac or Linux, make the changes to your file <code>~/.ssh/config</code>. On Windows, apply the changes as shown in the help pages of your SSH application.
<!--
: Add two entries for ''Remote Forwarding'':
: Add two entries for ''Remote Forwarding'':
  Local port: 6200,  Remote Port: 6200@cmgmt3
  Local port: 6200,  Remote Port: 6200@cmgmt3
  Local port: '''6201''',  Remote Port: 6200@cmgmt'''4'''
  Local port: '''6201''',  Remote Port: '''6200'''@cmgmt'''4'''.  ---- server died, redundancy lost
: Note that the local port is different but the remote port is the same between the two entries.
: Note that the ''local ports are different'' but the remote ports are the same between the two entries.
* Log out from all Carbon nodes.
-->
* Log out from Mega.
: Add an entry for ''Remote Forwarding'':
Local port: 6200,  Remote Port: 6200@cmgmt4
<!--
<!--
# [[HPC/Software/Modules/atk/License configuration on Windows | Configure ATK to use forwarded licenses]].
# [[HPC/Software/Modules/atk/License configuration on Windows | Configure ATK to use forwarded licenses]].
Line 38: Line 42:
## Advanced: [[HPC/Software/Modules/atk/Remote Access using Cygwin | Set up license forwarding using Cygwin]].
## Advanced: [[HPC/Software/Modules/atk/Remote Access using Cygwin | Set up license forwarding using Cygwin]].
-->
-->
* Log back in to Mega. This will activate the tunnel configuration that you added previously, to be used later by the ATK License Configuration wizard.


=== Configure ===
<!--
=== Download, Install, and Configure ===
=== Download, Install, and Configure ===
* Log back in to Mega. This will activate the tunnel configuration that you added previously, to be used later by the ATK License Configuration wizard.
* [http://quantumwise.com/products/download Download ATK from QuantumWise]
* [http://quantumwise.com/products/download Download ATK from QuantumWise]
* Follow the [http://docs.quantumwise.com/guides/InstallationGuides/installation.html installation instructions] until you reach the license configuration step.
* Follow the [http://docs.quantumwise.com/guides/InstallationGuides/installation.html installation instructions] until you reach the license configuration step.
* In the License Configuration helper, choose Configure license settings, Advanced setup. In the field for QUANTUM_LICENSE_PATH+= add:
-->
  localhost:6201@localhost
* In the License Configuration helper, choose <code>Configure license settings</code>, <code>Advanced setup</code>. In the field for QUANTUM_LICENSE_PATH+= add:
  localhost:6200@localhost
<!--
* Finish the helper.
* Finish the helper.
-->


=== Launching ATK/VNL ===
=== Launching ATK/VNL ===
* Make sure you are logged in to Mega.
* Log in to Mega if you are not alreay logged in.
*: You need to have ''exactly one'' Mega session active to access any kind of service on Carbon, be it for a single use or several ones concurrently.
* Start VNL or atkpython normally for your platform.
* Start VNL or atkpython normally for your platform.


=== Troubleshooting licensing ===
=== Troubleshooting licensing ===
==== Check license configuration ====
To check the basic license configuration for ATK,
without requiring X11 or VNC graphics,
run the ATK Python script interpreter <code>atkpython</code>.
It requires a license regardless of whether the script actually uses NanoLang constructs.
<source lang="bash">
atkpython -c 'print("Hello", 1+3/2)'
</source>
* The ''expected'' output will look like:
<source>
+------------------------------------------------------------------------------+
|                                                                              |
| Atomistix ToolKit 2017.2 [Build 997d195]                                    |
|                                                                              |
+------------------------------------------------------------------------------+
('Hello', 1)
Timing:                          Total    Per Step        %
Total                  :      2.24 s
</source>
* ''Failure'' to obtain a license, such as from an incorrect configuration or a server being down, looks like:
<source>
License Error: (Internal: 511 Feature: ATKPython)
[NETWORK] 6200@localhost - (Err: 15) Unable to connect to license server
License configuration (environment variables):
---------------------------------------------------------------------------
QUANTUM_LICENSE_PATH = …
---------------------------------------------------------------------------
*** Make sure to include the information above when contacting support ***
</source>
==== References ====
* http://docs.quantumwise.com/guides/InstallationGuides/licensing.html
* http://docs.quantumwise.com/guides/InstallationGuides/licensing.html
* On Mac and Linux, the configuration file is at <code>~/.quantumwise/licenses.licconf</code>.
* On Mac and Linux, the configuration file is stored on the client computer at <code>~/.quantumwise/licenses.licconf</code>.
* [[HPC/Software/Modules/atk/License troubleshooting on Windows]] (written for ATK-12).
* [[HPC/Software/Modules/atk/License troubleshooting on Windows]] (older page, written for ATK-12).

Latest revision as of 15:39, December 11, 2021

Parallel jobs

  • See QuantumWise's Parallel Guide
  • We use Intel-MPI instead of MPICH2, with the Hydra process manager instead of MPD. See the sample.job file for details:
$ATK_HOME/sample.job


Remote access

To run ATK/VNL directly on your computer (as opposed to running it remotely and sending graphics over the network), follow these steps, all on your computer, to prepare for and launch the application:

Preparation

  • Log out from all Carbon nodes.
  • Log out from Mega.
  • Modify your configuration for SSH port forwarding to Mega. On Mac or Linux, make the changes to your file ~/.ssh/config. On Windows, apply the changes as shown in the help pages of your SSH application.
Add an entry for Remote Forwarding:
Local port: 6200,   Remote Port: 6200@cmgmt4
  • Log back in to Mega. This will activate the tunnel configuration that you added previously, to be used later by the ATK License Configuration wizard.

Configure

  • In the License Configuration helper, choose Configure license settings, Advanced setup. In the field for QUANTUM_LICENSE_PATH+= add:
localhost:6200@localhost

Launching ATK/VNL

  • Log in to Mega if you are not alreay logged in.
    You need to have exactly one Mega session active to access any kind of service on Carbon, be it for a single use or several ones concurrently.
  • Start VNL or atkpython normally for your platform.

Troubleshooting licensing

Check license configuration

To check the basic license configuration for ATK, without requiring X11 or VNC graphics, run the ATK Python script interpreter atkpython. It requires a license regardless of whether the script actually uses NanoLang constructs.

atkpython -c 'print("Hello", 1+3/2)'
  • The expected output will look like:
+------------------------------------------------------------------------------+
|                                                                              |
| Atomistix ToolKit 2017.2 [Build 997d195]                                     |
|                                                                              |
+------------------------------------------------------------------------------+
('Hello', 1)

Timing:                          Total     Per Step        %
…
Total                   :       2.24 s
  • Failure to obtain a license, such as from an incorrect configuration or a server being down, looks like:
License Error: (Internal: 511 Feature: ATKPython)

[NETWORK] 6200@localhost - (Err: 15) Unable to connect to license server

License configuration (environment variables):
---------------------------------------------------------------------------
QUANTUM_LICENSE_PATH = …
---------------------------------------------------------------------------
*** Make sure to include the information above when contacting support ***
…

References