The cluster module¶
The cluster module contains various functions related to compute clusters (and also single machines).
Module that holds all compute-cluster-related functions
- rapthor.lib.cluster.get_available_memory()¶
Returns the available memory in GB
Note: a call to ‘free’ is used, which is parsed for the “available” value, the last entry on the second line of output.
- Returns:
- available_gbint
Available memory in GB
- rapthor.lib.cluster.get_chunk_size(cluster_parset, numsamples, numobs, solint)¶
Returns the optimal chunk size to use during a solve
- Parameters:
- cluster_parsetdict
Cluster-specific parset dictionary
- numsamplesint
Total number of samples in the observation
- numobsint
Total number of observations
- solintint
Solution interval in number of samples to be used for the solve
- Returns:
- samples_per_chunkint
Size of chunk in number of samples