<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.nbi.ku.dk/w/tycho/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jredondo</id>
	<title>Tycho - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nbi.ku.dk/w/tycho/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jredondo"/>
	<link rel="alternate" type="text/html" href="https://wiki.nbi.ku.dk/tycho/Special:Contributions/Jredondo"/>
	<updated>2026-04-07T09:25:52Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.nbi.ku.dk/w/tycho/index.php?title=First_steps&amp;diff=169</id>
		<title>First steps</title>
		<link rel="alternate" type="text/html" href="https://wiki.nbi.ku.dk/w/tycho/index.php?title=First_steps&amp;diff=169"/>
		<updated>2023-11-15T14:22:57Z</updated>

		<summary type="html">&lt;p&gt;Jredondo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To start using Tycho, please follow these steps&lt;br /&gt;
&lt;br /&gt;
* Get a user account by contacting a sponsor and signing up at &lt;br /&gt;
&lt;br /&gt;
https://hpc.ku.dk/account.html&lt;br /&gt;
&lt;br /&gt;
You have to select &amp;quot;Astro&amp;quot; as your group. &#039;&#039;&#039;Remember to sign the rules-of-conduct-form&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;BE AWARE THAT THE WELCOME E-MAIL IS NOT CORRECT&#039;&#039;&#039;. You should never login to fend0X.hpc.ku.dk, but instead use the Tycho-specific frontends called astro0X.hpc.ku.dk (see [[Hardware]] for an up to date list of available frontends / Analysis hardware).&lt;br /&gt;
&lt;br /&gt;
* Set up an SSH key pair for secure passwordless login (see [[Accessing Tycho]])&lt;br /&gt;
&lt;br /&gt;
* Add &amp;lt;code&amp;gt;module load astro&amp;lt;/code&amp;gt; to you &amp;lt;code&amp;gt;$HOME/.bashrc&amp;lt;/code&amp;gt; file to have access to all the custom installed software.&lt;br /&gt;
* Consider changing &amp;lt;code&amp;gt;umask 077&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;umask 027&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;$HOME/.bashrc&amp;lt;/code&amp;gt; to allow collaborators and/or your supervisor read access to your files when logged in to the cluster.&lt;br /&gt;
&lt;br /&gt;
* If you are going to travel, but want to continue working on Tycho while you are travelling, you need to set up a Dynamic Firewall &#039;&#039;&#039;before&#039;&#039;&#039; travelling. You can do so by following the detailed instructions [https://hpc.ku.dk/documentation/otp.html: here]&lt;br /&gt;
&lt;br /&gt;
* Consider setting up Visual Studio Code for remote development for transparent editing of files on the cluster. See [[Visual Studio Remote Development]]&lt;br /&gt;
&lt;br /&gt;
* Whenever you are going to be working with large amounts of data, considering using the &amp;lt;code&amp;gt;/lustre/astro/yourusername&amp;lt;/code&amp;gt; directory. The scratch directory is a ZFS based high performance Lustre filesystem with dedicated hardware for our group. No quotas are enforced and the total space (disregarding the transparent compression) is 1300 TB.&lt;/div&gt;</summary>
		<author><name>Jredondo</name></author>
	</entry>
	<entry>
		<id>https://wiki.nbi.ku.dk/w/tycho/index.php?title=Module_system&amp;diff=156</id>
		<title>Module system</title>
		<link rel="alternate" type="text/html" href="https://wiki.nbi.ku.dk/w/tycho/index.php?title=Module_system&amp;diff=156"/>
		<updated>2023-11-15T14:10:27Z</updated>

		<summary type="html">&lt;p&gt;Jredondo: Created page with &amp;quot;Tycho makes use of the Module system to manage dependencies and load common compilers and software.   Environment modules modify the users environment via modulefiles. They are typically used to manage different versions of applications, by e.g. modifying the PATH system variable, using one module file per application version.   To ensure consistency, we recommend that you put relevant module commands in a file (e.g. ~/.modules), and source it from relevant startup files...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Tycho makes use of the Module system to manage dependencies and load common compilers and software. &lt;br /&gt;
&lt;br /&gt;
Environment modules modify the users environment via modulefiles. They are typically used to manage different versions of applications, by e.g. modifying the PATH system variable, using one module file per application version. &lt;br /&gt;
&lt;br /&gt;
To ensure consistency, we recommend that you put relevant module commands in a file (e.g. ~/.modules), and source it from relevant startup files.  Note that, even if you use tcsh as login shell, your batch jobs may use bash, so be sure to add &amp;quot;source ~/.modules&amp;quot; to ~/.bashrc in all cases.   If you do this there is no need to put source statements in your job scripts.&lt;br /&gt;
&lt;br /&gt;
== Useful Commands ==&lt;br /&gt;
&lt;br /&gt;
When you first log in, it is encouraged to write &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load astro&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to your &amp;lt;code&amp;gt;source $HOME/.bashrc&amp;lt;/code&amp;gt;. This will let you have access to all the available software. &lt;br /&gt;
&lt;br /&gt;
If you want to see what software can you load, you can run &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module avail&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check what software have you currently loaded, check&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module list&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To load a particular module, for example, the &amp;lt;code&amp;gt;intel&amp;lt;/code&amp;gt; compilers, you can run &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load intel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or if you want a specific version&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load intel/20.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To unload a loaded module do&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module unload &amp;quot;modulename&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To switch to a different version, for example, from &amp;lt;code&amp;gt;intel/20.1&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;intel/18.0.3&amp;lt;/code&amp;gt;, do&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module switch intel/20.1 intel/18.0.3 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can find more documentation by checking the manual pages&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
man module&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
in [http://en.wikipedia.org/wiki/Environment_Modules_(software): this link], or in [https://modules.sourceforge.net/: this other link]&lt;/div&gt;</summary>
		<author><name>Jredondo</name></author>
	</entry>
	<entry>
		<id>https://wiki.nbi.ku.dk/w/tycho/index.php?title=Tycho_Technical_Documentation&amp;diff=143</id>
		<title>Tycho Technical Documentation</title>
		<link rel="alternate" type="text/html" href="https://wiki.nbi.ku.dk/w/tycho/index.php?title=Tycho_Technical_Documentation&amp;diff=143"/>
		<updated>2023-11-15T14:01:52Z</updated>

		<summary type="html">&lt;p&gt;Jredondo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the technical documentation for the Tycho high performance computing resources. See [https://nbi.ku.dk/english/research_infrastructure/tycho-supercomputer/ the Infrastructure page] at NBI for a non-technical overview of the cluster.&lt;br /&gt;
&lt;br /&gt;
Tycho contain in total more 10,000 CPU cores and 13 data center class GPUs. The cluster is complemented by a 1,300 TB data storage archive and a number of powerful analysis machines used as frontends for the cluster and for pre- and post-prcessing. Current peak performance is 443 TFlops from the CPUs and 93 TFlops from the GPUs.&lt;br /&gt;
&lt;br /&gt;
Tycho is hosted at the [http://www.dcsc.ku.dk/: High Performance Computing center] at the faculty of SCIENCE, University of Copenhagen.&lt;br /&gt;
&lt;br /&gt;
===First steps===&lt;br /&gt;
Please visit the [[first steps]] page to get started&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
* [[Acknowledging the use of Tycho in articles and presentations]] &lt;br /&gt;
* [[Getting Help]]&lt;br /&gt;
* [[Mattermost discussion forum]]&lt;br /&gt;
* [[Being a good HPC user]]&lt;br /&gt;
* [[Accessing Tycho]]&lt;br /&gt;
* [[Using Jupyter notebooks on the frontends]]&lt;br /&gt;
* [[Visual Studio Remote Development]]&lt;br /&gt;
* [[Virtual Desktop]]&lt;br /&gt;
* [[Hardware]]&lt;br /&gt;
* [[Erda]]&lt;br /&gt;
* [[Using GPUs]]&lt;br /&gt;
* [[Compilers]]&lt;br /&gt;
* [[Debugging and Profiling]]&lt;br /&gt;
* [[MPI Libraries]]&lt;br /&gt;
* [[Examples of SLURM scripts]]&lt;br /&gt;
* [[Codes]]&lt;br /&gt;
* [[Adding a second IP Address]]&lt;br /&gt;
* [[Setting up One-Time-Password Access before travelling]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Scientific Software===&lt;br /&gt;
&lt;br /&gt;
* [[Module system]]&lt;br /&gt;
* [[Running Mathematica on compute nodes]]&lt;br /&gt;
* [[GRChombo]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*************************&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;/div&gt;</summary>
		<author><name>Jredondo</name></author>
	</entry>
	<entry>
		<id>https://wiki.nbi.ku.dk/w/tycho/index.php?title=First_steps&amp;diff=133</id>
		<title>First steps</title>
		<link rel="alternate" type="text/html" href="https://wiki.nbi.ku.dk/w/tycho/index.php?title=First_steps&amp;diff=133"/>
		<updated>2023-11-15T13:56:57Z</updated>

		<summary type="html">&lt;p&gt;Jredondo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To start using Tycho, please follow these steps&lt;br /&gt;
&lt;br /&gt;
* Get a user account by contacting a sponsor and signing up at &lt;br /&gt;
&lt;br /&gt;
https://hpc.ku.dk/account.html&lt;br /&gt;
&lt;br /&gt;
You have to select &amp;quot;Astro&amp;quot; as your group. &#039;&#039;&#039;Remember to sign the rules-of-conduct-form&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;BE AWARE THAT THE WELCOME E-MAIL IS NOT CORRECT&#039;&#039;&#039;. You should never login to fend0X.hpc.ku.dk, but instead use the Tycho-specific frontends called astro0X.hpc.ku.dk (see [[Hardware]] for an up to date list of available frontends / Analysis hardware).&lt;br /&gt;
&lt;br /&gt;
* Set up an SSH key pair for secure passwordless login (see [[Accessing Tycho]])&lt;br /&gt;
&lt;br /&gt;
* Add &amp;lt;code&amp;gt;module load astro&amp;lt;/code&amp;gt; to you &amp;lt;code&amp;gt;$HOME/.bashrc&amp;lt;/code&amp;gt; file to have access to all the custom installed software.&lt;br /&gt;
* Consider changing &amp;lt;code&amp;gt;umask 077&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;umask 027&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;$HOME/.bashrc&amp;lt;/code&amp;gt; to allow collaborators and/or your supervisor read access to your files when logged in to the cluster.&lt;br /&gt;
&lt;br /&gt;
* If you are going to travel, but want to continue working on Tycho while you are travelling, you need to set up a Dynamic Firewall &#039;&#039;&#039;before&#039;&#039;&#039; travelling. You can do so by following the detailed instructions [https://hpc.ku.dk/documentation/otp.html: here]&lt;/div&gt;</summary>
		<author><name>Jredondo</name></author>
	</entry>
	<entry>
		<id>https://wiki.nbi.ku.dk/w/tycho/index.php?title=Adding_a_second_IP_Address&amp;diff=131</id>
		<title>Adding a second IP Address</title>
		<link rel="alternate" type="text/html" href="https://wiki.nbi.ku.dk/w/tycho/index.php?title=Adding_a_second_IP_Address&amp;diff=131"/>
		<updated>2023-11-15T13:56:06Z</updated>

		<summary type="html">&lt;p&gt;Jredondo: Created page with &amp;quot;Once you are logged in to the front-end, write:  &amp;lt;pre&amp;gt; hpc-setup-firewall.sh &amp;lt;/pre&amp;gt;  There, you can add up to 3 total IP addresses.   One useful tip is to add the ERDA IP address, so that you can always log in to the cluster even if you are travelling.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Once you are logged in to the front-end, write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hpc-setup-firewall.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There, you can add up to 3 total IP addresses. &lt;br /&gt;
&lt;br /&gt;
One useful tip is to add the ERDA IP address, so that you can always log in to the cluster even if you are travelling.&lt;/div&gt;</summary>
		<author><name>Jredondo</name></author>
	</entry>
	<entry>
		<id>https://wiki.nbi.ku.dk/w/tycho/index.php?title=GRChombo&amp;diff=124</id>
		<title>GRChombo</title>
		<link rel="alternate" type="text/html" href="https://wiki.nbi.ku.dk/w/tycho/index.php?title=GRChombo&amp;diff=124"/>
		<updated>2023-11-15T13:51:58Z</updated>

		<summary type="html">&lt;p&gt;Jredondo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://www.grchombo.org/: GRChombo] is an open-source, AMR-based code for Numerical Relativity. Here are some instructions on how to set up GRChombo in Tycho.&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Compile Chombo ===&lt;br /&gt;
&lt;br /&gt;
Go to [https://github.com/GRTLCollaboration/Chombo: Chombo] and clone the repository in the cluster:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;git clone https://github.com/GRTLCollaboration/Chombo.git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then we need to make a new file that will set up the compilation details, specifically tweaked for our cluster. Run these commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;cd Chombo/lib&lt;br /&gt;
&amp;gt;&amp;gt;touch mk/Make.defs.local&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using your favourite editor (vim or nano) copy this into Make.defs.local:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DIM             = 3&lt;br /&gt;
DEBUG            = FALSE&lt;br /&gt;
CXX = g++ -I${MKLROOT}/include&lt;br /&gt;
FC = gfortran -I${MKLROOT}/include&lt;br /&gt;
OPT             = TRUE&lt;br /&gt;
MPI             = TRUE&lt;br /&gt;
OPENMPCC        = TRUE&lt;br /&gt;
OPT             = TRUE&lt;br /&gt;
USE_64          = TRUE&lt;br /&gt;
USE_HDF         = TRUE&lt;br /&gt;
MPICXX           = mpicxx -I${MKLROOT}/include&lt;br /&gt;
HDFINCFLAGS	= -I/software/astro/hdf5/hdf5-1.8.14-intel/include&lt;br /&gt;
HDFLIBFLAGS	= -L/software/astro/hdf5/hdf5-1.8.14-intel/lib -lhdf5 -lz&lt;br /&gt;
HDFMPIINCFLAGS	= -I/software/astro/hdf5/hdf5-1.8.14-intel/include&lt;br /&gt;
HDFMPILIBFLAGS  = -L/software/astro/hdf5/hdf5-1.8.14-intel/lib -lhdf5 -lz&lt;br /&gt;
cxxdbgflags     = -g -Wl,--eh-frame-hdr&lt;br /&gt;
cxxoptflags     = -O3&lt;br /&gt;
fdbgflags       = -g -Wl,--eh-frame-hdr&lt;br /&gt;
foptflags       = -O3&lt;br /&gt;
syslibflags      = -L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm -ldl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that we are NOT compiling the Apparent Horizon finder. That requires some additional work.&lt;br /&gt;
&lt;br /&gt;
Now, load the appropriate modules.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;module purge&lt;br /&gt;
&amp;gt;&amp;gt;module load astro&lt;br /&gt;
&amp;gt;&amp;gt;module load hdf5/inte/1.10.4&lt;br /&gt;
&amp;gt;&amp;gt;module load gcc/12.2-offload&lt;br /&gt;
&amp;gt;&amp;gt;module load intelmpi/18.0.3&lt;br /&gt;
&amp;gt;&amp;gt;module load intel/20.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is recommended to add these to your &amp;lt;code&amp;gt;~/.bashrc&amp;lt;/code&amp;gt; profile. &lt;br /&gt;
&lt;br /&gt;
Now, do&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make all -j 8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And it all should compile in a matter of minutes. &lt;br /&gt;
&lt;br /&gt;
=== Step 2. Run a Binary BH ===&lt;br /&gt;
&lt;br /&gt;
Go back to your home directory, and clone the GRChombo repository:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt; cd ~&lt;br /&gt;
&amp;gt;&amp;gt; git clone https://github.com/GRTLCollaboration/GRChombo.git]&lt;br /&gt;
&amp;gt;&amp;gt; cd GRChombo&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Export the variable containing where is the Chombo library &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;export CHOMBO_HOME=~/Chombo/lib/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let us go to the example of the Binary BH and compile the code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;cd GRChombo/Examples/BinaryBH/&lt;br /&gt;
&amp;gt;&amp;gt;make all -j 8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can start the run with the following BASH script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh                                                  &lt;br /&gt;
#SBATCH -J BBH           		# job name                  &lt;br /&gt;
#SBATCH -t 6:00:00        		# walltime (dd:hh:mm:ss)    &lt;br /&gt;
#SBATCH -p astro2_short&lt;br /&gt;
&lt;br /&gt;
#SBATCH --nodes 8&lt;br /&gt;
#SBATCH --ntasks-per-node=24&lt;br /&gt;
#SBATCH --cpus-per-task=2&lt;br /&gt;
# Output files&lt;br /&gt;
#SBATCH -o std_output.txt&lt;br /&gt;
#SBATCH -e std_error.txt&lt;br /&gt;
#SBATCH -D ./&lt;br /&gt;
module load intelmpi/18.0.3&lt;br /&gt;
&lt;br /&gt;
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK&lt;br /&gt;
# Run the program&lt;br /&gt;
srun ./Main_BinaryBH3d.Linux.64.mpicxx.gfortran.OPT.MPI.OPENMPCC.ex params.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can check [https://github.com/GRTLCollaboration/GRChombo/wiki/Running-the-BinaryBH-example: the Wiki] for more information on the parameter file &amp;lt;code&amp;gt;params.txt&amp;lt;/code&amp;gt;, and how to visualize the output data. Visit is a good option for this.&lt;/div&gt;</summary>
		<author><name>Jredondo</name></author>
	</entry>
	<entry>
		<id>https://wiki.nbi.ku.dk/w/tycho/index.php?title=Accessing_Tycho&amp;diff=121</id>
		<title>Accessing Tycho</title>
		<link rel="alternate" type="text/html" href="https://wiki.nbi.ku.dk/w/tycho/index.php?title=Accessing_Tycho&amp;diff=121"/>
		<updated>2023-11-15T13:50:36Z</updated>

		<summary type="html">&lt;p&gt;Jredondo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;After getting an account (following the instructions [https://hpc.ku.dk/account.html: here]), you can now log into Tycho using [https://en.wikipedia.org/wiki/Secure_Shell: ssh]. &lt;br /&gt;
&lt;br /&gt;
== SSH into the frontends ==&lt;br /&gt;
&lt;br /&gt;
Open your terminal, and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;ssh username@astro06.hpc.ku.dk&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In &amp;quot;username&amp;quot;, replace it with your username. You will be prompted to type your password. Do so, press enter, and then you will be in the frontend. You should see something like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Last login: Mon Nov  6 09:33:04 2023 from 130.225.188.XX&lt;br /&gt;
[username@astro06 ~]$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This way you logged into the astro06 frontend. You can also log in to the other frontends (astro01 and astro02).&lt;br /&gt;
&lt;br /&gt;
== Quality of Life Improvements ==&lt;br /&gt;
&lt;br /&gt;
=== Shortening the access prompt ===&lt;br /&gt;
&lt;br /&gt;
You can shorten the command that you need to write to log into the cluster by adding this line to the &amp;lt;code&amp;gt; ~/.ssh/config &amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Host astro06        User username        HostName astro06.hpc.ku.dk&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you have that, you can log in writing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;ssh astro06&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Aliasing the access prompt === &lt;br /&gt;
&lt;br /&gt;
If you will be using a bash command very often, it is sometimes useful to make an alias. You can do this by adding this line to your &amp;lt;code&amp;gt;~/.bashrc&amp;lt;/code&amp;gt; file (using vim or nano):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
alias tycho=&#039;ssh astro06&#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you do this, write &amp;lt;code&amp;gt; source ~/.bashrc &amp;lt;/code&amp;gt; in the Terminal, and then you can log in to the astro06 frontend by just typing &amp;lt;code&amp;gt; tycho &amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Do not use the ssh option -Y, which &amp;quot;enables trusted X11 forwarding&amp;quot;.  This means, basically, that you turn off some essential X security features and say &amp;quot;I trust the remote host completely&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
=== Passwordless access ===&lt;br /&gt;
&lt;br /&gt;
There is one more quality of life improvement to log into the cluster, which will let you log in without having to write your password every time. &lt;br /&gt;
&lt;br /&gt;
First, we generate a key writing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh-keygen -t ed25519&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With the option t we specify the encryption type. You will be asked for the filename, you can just press enter and use the default. Then, you will be asked for a passphrase to protect your personal key.&lt;br /&gt;
&lt;br /&gt;
You should NOT under any circumstances use an empty pass phrase; it is not necessary for convenience reasons (see below), and could endanger your access to remote supercomputers.  Use instead really a &amp;quot;pass phrase&amp;quot;; a relatively long expression, which need not have the character of a password (such as &amp;quot;Carlsberg is probably the best beer in the world&amp;quot;). &lt;br /&gt;
&lt;br /&gt;
There will be stored two keys (id_rsa and id_rsa.pub) in the hidden folder &amp;lt;code&amp;gt;~/.ssh/&amp;lt;/code&amp;gt; on your client. Note that if you specified a particular name for the key when generating it, the keys will appear with the file name you specified.&lt;br /&gt;
&lt;br /&gt;
You need to copy your public key to the accepted key list of on your host machine (authorized_keys). We do this by writing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat ~/.ssh/id_rsa.pub | ssh username@astro06.hpc.ku.dk &#039;cat &amp;gt;&amp;gt; .ssh/authorized_keys&#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now if you try to log in, you will be prompted to write the passphrase. Instead of writing the passphrase, do&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh-add&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to add the passphrase once and for all. Once you do this, you will be able to log in without having to write your password. &lt;br /&gt;
&lt;br /&gt;
If for some reason no ssh-agent is running on an intermediate host, then as an alternative you can forward your ssh-credentials from your laptop, by using &amp;lt;code&amp;gt;ssh -A&amp;lt;/code&amp;gt; to login to astro0X, and continuing an ssh from there (having stored the id_rsa.pub from your laptop on the remote supercomputer).&lt;br /&gt;
Finally, if for some reason you start out from a place (such a just a command window) where no ssh-agent is running, you can just start one, by doing &amp;lt;code&amp;gt;ssh-agent bash&amp;lt;/code&amp;gt;, this starts an ssh-agent, which starts bash (or tcsh) as a descendant.   Then execute &amp;quot;ssh-add&amp;quot;, and you&#039;re free from typing the pass phrase, for as long as you keep the ssh-agent running.&lt;/div&gt;</summary>
		<author><name>Jredondo</name></author>
	</entry>
	<entry>
		<id>https://wiki.nbi.ku.dk/w/tycho/index.php?title=Setting_up_One-Time-Password_Access_before_travelling&amp;diff=118</id>
		<title>Setting up One-Time-Password Access before travelling</title>
		<link rel="alternate" type="text/html" href="https://wiki.nbi.ku.dk/w/tycho/index.php?title=Setting_up_One-Time-Password_Access_before_travelling&amp;diff=118"/>
		<updated>2023-11-15T13:49:44Z</updated>

		<summary type="html">&lt;p&gt;Jredondo: Created page with &amp;quot;If you are going to travel, but want to continue working on Tycho while you are travelling, you need to set up a One Time Password access &amp;#039;&amp;#039;&amp;#039;before&amp;#039;&amp;#039;&amp;#039; travelling.   You can do so by following the detailed instructions [https://hpc.ku.dk/documentation/otp.html: here]&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you are going to travel, but want to continue working on Tycho while you are travelling, you need to set up a One Time Password access &#039;&#039;&#039;before&#039;&#039;&#039; travelling. &lt;br /&gt;
&lt;br /&gt;
You can do so by following the detailed instructions [https://hpc.ku.dk/documentation/otp.html: here]&lt;/div&gt;</summary>
		<author><name>Jredondo</name></author>
	</entry>
	<entry>
		<id>https://wiki.nbi.ku.dk/w/tycho/index.php?title=Tycho_Technical_Documentation&amp;diff=108</id>
		<title>Tycho Technical Documentation</title>
		<link rel="alternate" type="text/html" href="https://wiki.nbi.ku.dk/w/tycho/index.php?title=Tycho_Technical_Documentation&amp;diff=108"/>
		<updated>2023-11-15T13:46:35Z</updated>

		<summary type="html">&lt;p&gt;Jredondo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the technical documentation for the Tycho high performance computing resources. See [https://nbi.ku.dk/english/research_infrastructure/tycho-supercomputer/ the Infrastructure page] at NBI for a non-technical overview of the cluster.&lt;br /&gt;
&lt;br /&gt;
Tycho contain in total more 10,000 CPU cores and 13 data center class GPUs. The cluster is complemented by a 1,300 TB data storage archive and a number of powerful analysis machines used as frontends for the cluster and for pre- and post-prcessing. Current peak performance is 443 TFlops from the CPUs and 93 TFlops from the GPUs.&lt;br /&gt;
&lt;br /&gt;
Tycho is hosted at the [http://www.dcsc.ku.dk/: High Performance Computing center] at the faculty of SCIENCE, University of Copenhagen.&lt;br /&gt;
&lt;br /&gt;
Please visit the [[first steps]] page to get started&lt;br /&gt;
&lt;br /&gt;
Overview:&lt;br /&gt;
* [[Getting Help]]&lt;br /&gt;
* [[Mattermost discussion forum]]&lt;br /&gt;
* [[Being a good HPC user]]&lt;br /&gt;
* [[Accessing Tycho]]&lt;br /&gt;
* [[Using Jupyter notebooks on the frontends]]&lt;br /&gt;
* [[Visual Studio Remote Development]]&lt;br /&gt;
* [[Virtual Desktop]]&lt;br /&gt;
* [[Hardware]]&lt;br /&gt;
* [[Erda]]&lt;br /&gt;
* [[Using GPUs]]&lt;br /&gt;
* [[Compilers]]&lt;br /&gt;
* [[Debugging and Profiling]]&lt;br /&gt;
* [[MPI Libraries]]&lt;br /&gt;
* [[Examples of SLURM scripts]]&lt;br /&gt;
* [[Codes]]&lt;br /&gt;
* [[Adding a second IP Address]]&lt;br /&gt;
* [[Setting up One-Time-Password Access before travelling]]&lt;br /&gt;
* Software:&lt;br /&gt;
&lt;br /&gt;
* [[Running Mathematica on compute nodes]]&lt;br /&gt;
* [[GRChombo]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*************************&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;/div&gt;</summary>
		<author><name>Jredondo</name></author>
	</entry>
	<entry>
		<id>https://wiki.nbi.ku.dk/w/tycho/index.php?title=GRChombo&amp;diff=103</id>
		<title>GRChombo</title>
		<link rel="alternate" type="text/html" href="https://wiki.nbi.ku.dk/w/tycho/index.php?title=GRChombo&amp;diff=103"/>
		<updated>2023-11-15T13:42:39Z</updated>

		<summary type="html">&lt;p&gt;Jredondo: Created page with &amp;quot;[GRChombo](https://www.grchombo.org/) is an open-source, AMR-based code for Numerical Relativity. Here are some instructions on how to set up GRChombo in Tycho.  === Step 1. Compile Chombo ===  Go to [Chombo](https://github.com/GRTLCollaboration/Chombo) and clone the repository in the cluster:  &amp;lt;pre&amp;gt; &amp;gt;&amp;gt;git clone https://github.com/GRTLCollaboration/Chombo.git &amp;lt;/pre&amp;gt;  Then we need to make a new file that will set up the compilation details, specifically tweaked for our cl...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[GRChombo](https://www.grchombo.org/) is an open-source, AMR-based code for Numerical Relativity. Here are some instructions on how to set up GRChombo in Tycho.&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Compile Chombo ===&lt;br /&gt;
&lt;br /&gt;
Go to [Chombo](https://github.com/GRTLCollaboration/Chombo) and clone the repository in the cluster:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;git clone https://github.com/GRTLCollaboration/Chombo.git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then we need to make a new file that will set up the compilation details, specifically tweaked for our cluster. Run these commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;cd Chombo/lib&lt;br /&gt;
&amp;gt;&amp;gt;touch mk/Make.defs.local&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using your favourite editor (vim or nano) copy this into Make.defs.local:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DIM             = 3&lt;br /&gt;
DEBUG            = FALSE&lt;br /&gt;
CXX = g++ -I${MKLROOT}/include&lt;br /&gt;
FC = gfortran -I${MKLROOT}/include&lt;br /&gt;
OPT             = TRUE&lt;br /&gt;
MPI             = TRUE&lt;br /&gt;
OPENMPCC        = TRUE&lt;br /&gt;
OPT             = TRUE&lt;br /&gt;
USE_64          = TRUE&lt;br /&gt;
USE_HDF         = TRUE&lt;br /&gt;
MPICXX           = mpicxx -I${MKLROOT}/include&lt;br /&gt;
HDFINCFLAGS	= -I/software/astro/hdf5/hdf5-1.8.14-intel/include&lt;br /&gt;
HDFLIBFLAGS	= -L/software/astro/hdf5/hdf5-1.8.14-intel/lib -lhdf5 -lz&lt;br /&gt;
HDFMPIINCFLAGS	= -I/software/astro/hdf5/hdf5-1.8.14-intel/include&lt;br /&gt;
HDFMPILIBFLAGS  = -L/software/astro/hdf5/hdf5-1.8.14-intel/lib -lhdf5 -lz&lt;br /&gt;
cxxdbgflags     = -g -Wl,--eh-frame-hdr&lt;br /&gt;
cxxoptflags     = -O3&lt;br /&gt;
fdbgflags       = -g -Wl,--eh-frame-hdr&lt;br /&gt;
foptflags       = -O3&lt;br /&gt;
syslibflags      = -L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm -ldl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that we are NOT compiling the Apparent Horizon finder. That requires some additional work.&lt;br /&gt;
&lt;br /&gt;
Now, load the appropriate modules.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;module purge&lt;br /&gt;
&amp;gt;&amp;gt;module load astro&lt;br /&gt;
&amp;gt;&amp;gt;module load hdf5/inte/1.10.4&lt;br /&gt;
&amp;gt;&amp;gt;module load gcc/12.2-offload&lt;br /&gt;
&amp;gt;&amp;gt;module load intelmpi/18.0.3&lt;br /&gt;
&amp;gt;&amp;gt;module load intel/20.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is recommended to add these to your &amp;lt;code&amp;gt;~/.bashrc&amp;lt;/code&amp;gt; profile. &lt;br /&gt;
&lt;br /&gt;
Now, do&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make all -j 8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And it all should compile in a matter of minutes. &lt;br /&gt;
&lt;br /&gt;
=== Step 2. Run a Binary BH ===&lt;br /&gt;
&lt;br /&gt;
Go back to your home directory, and clone the GRChombo repository:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt; cd ~&lt;br /&gt;
&amp;gt;&amp;gt; git clone https://github.com/GRTLCollaboration/GRChombo.git]&lt;br /&gt;
&amp;gt;&amp;gt; cd GRChombo&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Export the variable containing where is the Chombo library &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;export CHOMBO_HOME=~/Chombo/lib/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let us go to the example of the Binary BH and compile the code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;cd GRChombo/Examples/BinaryBH/&lt;br /&gt;
&amp;gt;&amp;gt;make all -j 8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can start the run with the following BASH script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh                                                  &lt;br /&gt;
#SBATCH -J BBH           		# job name                  &lt;br /&gt;
#SBATCH -t 6:00:00        		# walltime (dd:hh:mm:ss)    &lt;br /&gt;
#SBATCH -p astro2_short&lt;br /&gt;
&lt;br /&gt;
#SBATCH --nodes 8&lt;br /&gt;
#SBATCH --ntasks-per-node=24&lt;br /&gt;
#SBATCH --cpus-per-task=2&lt;br /&gt;
# Output files&lt;br /&gt;
#SBATCH -o std_output.txt&lt;br /&gt;
#SBATCH -e std_error.txt&lt;br /&gt;
#SBATCH -D ./&lt;br /&gt;
module load intelmpi/18.0.3&lt;br /&gt;
&lt;br /&gt;
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK&lt;br /&gt;
# Run the program&lt;br /&gt;
srun ./Main_BinaryBH3d.Linux.64.mpicxx.gfortran.OPT.MPI.OPENMPCC.ex params.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can check [the Wiki](https://github.com/GRTLCollaboration/GRChombo/wiki/Running-the-BinaryBH-example) for more information on the parameter file &amp;lt;code&amp;gt;params.txt&amp;lt;/code&amp;gt;, and how to visualize the output data. Visit is a good option for this.&lt;/div&gt;</summary>
		<author><name>Jredondo</name></author>
	</entry>
	<entry>
		<id>https://wiki.nbi.ku.dk/w/tycho/index.php?title=Tycho_Technical_Documentation&amp;diff=97</id>
		<title>Tycho Technical Documentation</title>
		<link rel="alternate" type="text/html" href="https://wiki.nbi.ku.dk/w/tycho/index.php?title=Tycho_Technical_Documentation&amp;diff=97"/>
		<updated>2023-11-15T13:40:11Z</updated>

		<summary type="html">&lt;p&gt;Jredondo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the technical documentation for the Tycho high performance computing resources. See [https://nbi.ku.dk/english/research_infrastructure/tycho-supercomputer/ the Infrastructure page] at NBI for a non-technical overview of the cluster.&lt;br /&gt;
&lt;br /&gt;
Tycho contain in total more 10,000 CPU cores and 13 data center class GPUs. The cluster is complemented by a 1,300 TB data storage archive and a number of powerful analysis machines used as frontends for the cluster and for pre- and post-prcessing. Current peak performance is 443 TFlops from the CPUs and 93 TFlops from the GPUs.&lt;br /&gt;
&lt;br /&gt;
Tycho is hosted at the [http://www.dcsc.ku.dk/: High Performance Computing center] at the faculty of SCIENCE, University of Copenhagen.&lt;br /&gt;
&lt;br /&gt;
Please visit the [[first steps]] page to get started&lt;br /&gt;
&lt;br /&gt;
Overview:&lt;br /&gt;
* [[Getting Help]]&lt;br /&gt;
* [[Mattermost discussion forum]]&lt;br /&gt;
* [[Being a good HPC user]]&lt;br /&gt;
* [[Accessing Tycho]]&lt;br /&gt;
* [[Using Jupyter notebooks on the frontends]]&lt;br /&gt;
* [[Visual Studio Remote Development]]&lt;br /&gt;
* [[Virtual Desktop]]&lt;br /&gt;
* [[Hardware]]&lt;br /&gt;
* [[Erda]]&lt;br /&gt;
* [[Using GPUs]]&lt;br /&gt;
* [[Compilers]]&lt;br /&gt;
* [[Debugging and Profiling]]&lt;br /&gt;
* [[MPI Libraries]]&lt;br /&gt;
* [[Examples of SLURM scripts]]&lt;br /&gt;
* [[Codes]]&lt;br /&gt;
* Software:&lt;br /&gt;
&lt;br /&gt;
* [[Running Mathematica on compute nodes]]&lt;br /&gt;
* [[GRChombo]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*************************&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;/div&gt;</summary>
		<author><name>Jredondo</name></author>
	</entry>
	<entry>
		<id>https://wiki.nbi.ku.dk/w/tycho/index.php?title=Running_Mathematica_on_compute_nodes&amp;diff=94</id>
		<title>Running Mathematica on compute nodes</title>
		<link rel="alternate" type="text/html" href="https://wiki.nbi.ku.dk/w/tycho/index.php?title=Running_Mathematica_on_compute_nodes&amp;diff=94"/>
		<updated>2023-11-15T13:38:25Z</updated>

		<summary type="html">&lt;p&gt;Jredondo: Created page with &amp;quot;Here are some instructions on how to run Mathematica on the cluster.   === Step 1. ===  Load the mathematica module:  &amp;lt;pre&amp;gt; &amp;gt;&amp;gt;module load astro &amp;gt;&amp;gt;module load mathematica &amp;lt;/pre&amp;gt;  === Step 2. ===  Prepare our test script. You can make mathematica scripts in different ways, but .wls files are good option. Here is an example script, you can make it into a file called &amp;lt;code&amp;gt;test.wls&amp;lt;/code&amp;gt;:  &amp;lt;pre&amp;gt; #!/usr/bin/env wolframscript outdir = &amp;quot;Data/&amp;quot;; fn1 = outdir&amp;lt;&amp;gt;&amp;quot;test.dat&amp;quot;; values...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here are some instructions on how to run Mathematica on the cluster. &lt;br /&gt;
&lt;br /&gt;
=== Step 1. ===&lt;br /&gt;
&lt;br /&gt;
Load the mathematica module:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;module load astro&lt;br /&gt;
&amp;gt;&amp;gt;module load mathematica&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Step 2. ===&lt;br /&gt;
&lt;br /&gt;
Prepare our test script. You can make mathematica scripts in different ways, but .wls files are good option. Here is an example script, you can make it into a file called &amp;lt;code&amp;gt;test.wls&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/usr/bin/env wolframscript&lt;br /&gt;
outdir = &amp;quot;Data/&amp;quot;;&lt;br /&gt;
fn1 = outdir&amp;lt;&amp;gt;&amp;quot;test.dat&amp;quot;;&lt;br /&gt;
values = Table[{x, x^2},{x,0,1,0.1}];&lt;br /&gt;
Export[fn1, values, &amp;quot;Table&amp;quot;];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Step 3. ===&lt;br /&gt;
&lt;br /&gt;
Now prepare your bash script to submit the job. Here&#039;s a template:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=math_test     # shows up in the output of squeue&lt;br /&gt;
#SBATCH --time=00:59:00          # specify the requested wall-time&lt;br /&gt;
#SBATCH --partition=astro3_devel # specify the partition to run on&lt;br /&gt;
#SBATCH --ntasks=1               # number of tasks&lt;br /&gt;
#SBATCH --cpus-per-task=1        # number of OpenMP threads per MPI rank&lt;br /&gt;
#SBATCH --threads-per-core=1     # number of threads active per CPU core (=1: Hyperthreading off)&lt;br /&gt;
# Make sure that Mathematica is loaded&lt;br /&gt;
&lt;br /&gt;
module load astro&lt;br /&gt;
module load math&lt;br /&gt;
&lt;br /&gt;
# Set up port forwarding so that Mathematica finds the license&lt;br /&gt;
&lt;br /&gt;
ssh astro01.hpc.ku.dk -L16286:mathlm.nbi.dk:16286 -L16287:mathlm.nbi.dk:16287 -Nf&lt;br /&gt;
&lt;br /&gt;
# Execute the code&lt;br /&gt;
&lt;br /&gt;
wolframscript stupid_test.wls&lt;br /&gt;
&lt;br /&gt;
# Make sure that the ssh tunnel is killed&lt;br /&gt;
&lt;br /&gt;
pkill -fu $USER astro01&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you are ready to submit your job and have fun. Before submitting, make sure you create the directory &amp;lt;code&amp;gt;&amp;gt;&amp;gt;mkdir Data&amp;lt;/code&amp;gt;. If it runs successfully, you will see a &amp;lt;code&amp;gt;Data/test.dat&amp;lt;/code&amp;gt; file.&lt;/div&gt;</summary>
		<author><name>Jredondo</name></author>
	</entry>
	<entry>
		<id>https://wiki.nbi.ku.dk/w/tycho/index.php?title=Accessing_Tycho&amp;diff=84</id>
		<title>Accessing Tycho</title>
		<link rel="alternate" type="text/html" href="https://wiki.nbi.ku.dk/w/tycho/index.php?title=Accessing_Tycho&amp;diff=84"/>
		<updated>2023-11-15T13:28:26Z</updated>

		<summary type="html">&lt;p&gt;Jredondo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;After getting an account (following the instructions [https://hpc.ku.dk/account.html](here)), you can now log into Tycho using [https://en.wikipedia.org/wiki/Secure_Shell](ssh). &lt;br /&gt;
&lt;br /&gt;
== SSH into the frontends ==&lt;br /&gt;
&lt;br /&gt;
Open your terminal, and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;ssh username@astro06.hpc.ku.dk&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In &amp;quot;username&amp;quot;, replace it with your username. You will be prompted to type your password. Do so, press enter, and then you will be in the frontend. You should see something like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Last login: Mon Nov  6 09:33:04 2023 from 130.225.188.XX&lt;br /&gt;
[username@astro06 ~]$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This way you logged into the astro06 frontend. You can also log in to the other frontends (astro01 and astro02).&lt;br /&gt;
&lt;br /&gt;
== Quality of Life Improvements ==&lt;br /&gt;
&lt;br /&gt;
=== Shortening the access prompt ===&lt;br /&gt;
&lt;br /&gt;
You can shorten the command that you need to write to log into the cluster by adding this line to the &amp;lt;code&amp;gt; ~/.ssh/config &amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Host astro06        User username        HostName astro06.hpc.ku.dk&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you have that, you can log in writing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;ssh astro06&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Aliasing the access prompt === &lt;br /&gt;
&lt;br /&gt;
If you will be using a bash command very often, it is sometimes useful to make an alias. You can do this by adding this line to your &amp;lt;code&amp;gt;~/.bashrc&amp;lt;/code&amp;gt; file (using vim or nano):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
alias tycho=&#039;ssh astro06&#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you do this, write &amp;lt;code&amp;gt; source ~/.bashrc &amp;lt;/code&amp;gt; in the Terminal, and then you can log in to the astro06 frontend by just typing &amp;lt;code&amp;gt; tycho &amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Do not use the ssh option -Y, which &amp;quot;enables trusted X11 forwarding&amp;quot;.  This means, basically, that you turn off some essential X security features and say &amp;quot;I trust the remote host completely&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
=== Passwordless access ===&lt;br /&gt;
&lt;br /&gt;
There is one more quality of life improvement to log into the cluster, which will let you log in without having to write your password every time. &lt;br /&gt;
&lt;br /&gt;
First, we generate a key writing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh-keygen -t ed25519&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With the option t we specify the encryption type. You will be asked for the filename, you can just press enter and use the default. Then, you will be asked for a passphrase to protect your personal key.&lt;br /&gt;
&lt;br /&gt;
You should NOT under any circumstances use an empty pass phrase; it is not necessary for convenience reasons (see below), and could endanger your access to remote supercomputers.  Use instead really a &amp;quot;pass phrase&amp;quot;; a relatively long expression, which need not have the character of a password (such as &amp;quot;Carlsberg is probably the best beer in the world&amp;quot;). &lt;br /&gt;
&lt;br /&gt;
There will be stored two keys (id_rsa and id_rsa.pub) in the hidden folder &amp;lt;code&amp;gt;~/.ssh/&amp;lt;/code&amp;gt; on your client. Note that if you specified a particular name for the key when generating it, the keys will appear with the file name you specified.&lt;br /&gt;
&lt;br /&gt;
You need to copy your public key to the accepted key list of on your host machine (authorized_keys). We do this by writing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat ~/.ssh/id_rsa.pub | ssh username@astro06.hpc.ku.dk &#039;cat &amp;gt;&amp;gt; .ssh/authorized_keys&#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now if you try to log in, you will be prompted to write the passphrase. Instead of writing the passphrase, do&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh-add&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to add the passphrase once and for all. Once you do this, you will be able to log in without having to write your password. &lt;br /&gt;
&lt;br /&gt;
If for some reason no ssh-agent is running on an intermediate host, then as an alternative you can forward your ssh-credentials from your laptop, by using &amp;lt;code&amp;gt;ssh -A&amp;lt;/code&amp;gt; to login to astro0X, and continuing an ssh from there (having stored the id_rsa.pub from your laptop on the remote supercomputer).&lt;br /&gt;
Finally, if for some reason you start out from a place (such a just a command window) where no ssh-agent is running, you can just start one, by doing &amp;lt;code&amp;gt;ssh-agent bash&amp;lt;/code&amp;gt;, this starts an ssh-agent, which starts bash (or tcsh) as a descendant.   Then execute &amp;quot;ssh-add&amp;quot;, and you&#039;re free from typing the pass phrase, for as long as you keep the ssh-agent running.&lt;/div&gt;</summary>
		<author><name>Jredondo</name></author>
	</entry>
	<entry>
		<id>https://wiki.nbi.ku.dk/w/tycho/index.php?title=Accessing_Tycho&amp;diff=83</id>
		<title>Accessing Tycho</title>
		<link rel="alternate" type="text/html" href="https://wiki.nbi.ku.dk/w/tycho/index.php?title=Accessing_Tycho&amp;diff=83"/>
		<updated>2023-11-15T13:28:00Z</updated>

		<summary type="html">&lt;p&gt;Jredondo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;After getting an account (following the instructions [https://hpc.ku.dk/account.html](here)), you can now log into Tycho using [https://en.wikipedia.org/wiki/Secure_Shell](ssh). &lt;br /&gt;
&lt;br /&gt;
== SSH into the frontends ==&lt;br /&gt;
&lt;br /&gt;
Open your terminal, and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;ssh username@astro06.hpc.ku.dk&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In &amp;quot;username&amp;quot;, replace it with your username. You will be prompted to type your password. Do so, press enter, and then you will be in the frontend. You should see something like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Last login: Mon Nov  6 09:33:04 2023 from 130.225.188.XX&lt;br /&gt;
[username@astro06 ~]$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This way you logged into the astro06 frontend. You can also log in to the other frontends (astro01 and astro02).&lt;br /&gt;
&lt;br /&gt;
== Quality of Life Improvements ==&lt;br /&gt;
&lt;br /&gt;
=== Shortening the access prompt ===&lt;br /&gt;
&lt;br /&gt;
You can shorten the command that you need to write to log into the cluster by adding this line to the &amp;lt;code&amp;gt; ~/.ssh/config &amp;lt;\code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Host astro06        User username        HostName astro06.hpc.ku.dk&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you have that, you can log in writing &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;ssh astro06&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Aliasing the access prompt === &lt;br /&gt;
&lt;br /&gt;
If you will be using a bash command very often, it is sometimes useful to make an alias. You can do this by adding this line to your &amp;lt;code&amp;gt;~/.bashrc&amp;lt;/code&amp;gt; file (using vim or nano):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
alias tycho=&#039;ssh astro06&#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you do this, write &amp;lt;code&amp;gt; source ~/.bashrc &amp;lt;/code&amp;gt; in the Terminal, and then you can log in to the astro06 frontend by just typing &amp;lt;code&amp;gt; tycho &amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Do not use the ssh option -Y, which &amp;quot;enables trusted X11 forwarding&amp;quot;.  This means, basically, that you turn off some essential X security features and say &amp;quot;I trust the remote host completely&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
=== Passwordless access ===&lt;br /&gt;
&lt;br /&gt;
There is one more quality of life improvement to log into the cluster, which will let you log in without having to write your password every time. &lt;br /&gt;
&lt;br /&gt;
First, we generate a key writing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh-keygen -t ed25519&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With the option t we specify the encryption type. You will be asked for the filename, you can just press enter and use the default. Then, you will be asked for a passphrase to protect your personal key.&lt;br /&gt;
&lt;br /&gt;
You should NOT under any circumstances use an empty pass phrase; it is not necessary for convenience reasons (see below), and could endanger your access to remote supercomputers.  Use instead really a &amp;quot;pass phrase&amp;quot;; a relatively long expression, which need not have the character of a password (such as &amp;quot;Carlsberg is probably the best beer in the world&amp;quot;). &lt;br /&gt;
&lt;br /&gt;
There will be stored two keys (id_rsa and id_rsa.pub) in the hidden folder &amp;lt;code&amp;gt;~/.ssh/&amp;lt;/code&amp;gt; on your client. Note that if you specified a particular name for the key when generating it, the keys will appear with the file name you specified.&lt;br /&gt;
&lt;br /&gt;
You need to copy your public key to the accepted key list of on your host machine (authorized_keys). We do this by writing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat ~/.ssh/id_rsa.pub | ssh username@astro06.hpc.ku.dk &#039;cat &amp;gt;&amp;gt; .ssh/authorized_keys&#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now if you try to log in, you will be prompted to write the passphrase. Instead of writing the passphrase, do&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh-add&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to add the passphrase once and for all. Once you do this, you will be able to log in without having to write your password. &lt;br /&gt;
&lt;br /&gt;
If for some reason no ssh-agent is running on an intermediate host, then as an alternative you can forward your ssh-credentials from your laptop, by using &amp;lt;code&amp;gt;ssh -A&amp;lt;/code&amp;gt; to login to astro0X, and continuing an ssh from there (having stored the id_rsa.pub from your laptop on the remote supercomputer).&lt;br /&gt;
Finally, if for some reason you start out from a place (such a just a command window) where no ssh-agent is running, you can just start one, by doing &amp;lt;code&amp;gt;ssh-agent bash&amp;lt;/code&amp;gt;, this starts an ssh-agent, which starts bash (or tcsh) as a descendant.   Then execute &amp;quot;ssh-add&amp;quot;, and you&#039;re free from typing the pass phrase, for as long as you keep the ssh-agent running.&lt;/div&gt;</summary>
		<author><name>Jredondo</name></author>
	</entry>
	<entry>
		<id>https://wiki.nbi.ku.dk/w/tycho/index.php?title=Accessing_Tycho&amp;diff=29</id>
		<title>Accessing Tycho</title>
		<link rel="alternate" type="text/html" href="https://wiki.nbi.ku.dk/w/tycho/index.php?title=Accessing_Tycho&amp;diff=29"/>
		<updated>2023-11-15T12:33:22Z</updated>

		<summary type="html">&lt;p&gt;Jredondo: Created page with &amp;quot;After getting an account (following the instructions [https://hpc.ku.dk/account.html](here)), you can now log into Tycho using [https://en.wikipedia.org/wiki/Secure_Shell](ssh).   == SSH into the frontends ==  Open your terminal, and type:  &amp;lt;pre&amp;gt; &amp;gt;&amp;gt;ssh username@astro06.hpc.ku.dk &amp;lt;/pre&amp;gt;  In &amp;quot;username&amp;quot;, replace it with your username. You will be prompted to type your password. Do so, press enter, and then you will be in the frontend. You should see something like this:  &amp;lt;p...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;After getting an account (following the instructions [https://hpc.ku.dk/account.html](here)), you can now log into Tycho using [https://en.wikipedia.org/wiki/Secure_Shell](ssh). &lt;br /&gt;
&lt;br /&gt;
== SSH into the frontends ==&lt;br /&gt;
&lt;br /&gt;
Open your terminal, and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;ssh username@astro06.hpc.ku.dk&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In &amp;quot;username&amp;quot;, replace it with your username. You will be prompted to type your password. Do so, press enter, and then you will be in the frontend. You should see something like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Last login: Mon Nov  6 09:33:04 2023 from 130.225.188.XX&lt;br /&gt;
[username@astro06 ~]$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This way you logged into the astro06 frontend. You can also log in to the other frontends (astro01 and astro02).&lt;/div&gt;</summary>
		<author><name>Jredondo</name></author>
	</entry>
</feed>