/
example.conf
85 lines (71 loc) · 4.03 KB
/
example.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Since version R2023a, MATLAB can discover clusters running third-party
# schedulers such as LSF. The Discover Clusters functionality
# automatically configures the Parallel Computing Toolbox to submit MATLAB
# jobs to the cluster. To use this functionality, you must create a cluster
# configuration file and store it at a location accessible to MATLAB users.
#
# This file is an example of a cluster configuration which MATLAB can
# discover. You can copy and modify this file to make your cluster discoverable.
#
# For more information, including the required format for this file, see
# the online documentation for making a cluster running a third-party
# scheduler discoverable:
# https://www.mathworks.com/help/matlab-parallel-server/configure-for-cluster-discovery.html
# Copyright 2023 The MathWorks, Inc.
# The name MATLAB will display for the cluster when discovered.
Name = My LSF cluster
# Maximum number of MATLAB workers a single user can use in a single job.
# This number must not exceed the number of available MATLAB Parallel
# Server licenses.
NumWorkers = 32
# Path to the MATLAB install on the cluster for the workers to use. Note
# the variable "$MATLAB_VERSION_STRING" returns the release number of the
# MATLAB client that is running discovery, e.g. 2023a. If multiple versions
# of MATLAB are installed on the cluster, this allows discovery to select
# the correct installation path. Add a leading "R" or "r" if needed to
# complete the MATLAB version.
ClusterMatlabRoot = /opt/matlab/R"$MATLAB_VERSION_STRING"
# Location where the MATLAB client stores job and task information.
JobStorageLocation = /home/matlabjobs
# If the client and cluster share a filesystem but the client is running
# the Windows operating system and the cluster running a Linux operating
# system, you must specify the JobStorageLocation using a structure by
# commenting out the previous line and uncommenting the following lines.
# The 'windows' and 'unix' fields must correspond to the same folder as
# viewed from each of those operating systems.
#JobStorageLocation.windows = \\organization\home\matlabjobs
#JobStorageLocation.unix = /organization/home/matlabjobs
# Folder that contains the scheduler plugin scripts that describe how
# MATLAB interacts with the scheduler. A property can take different values
# depending on the operating system of the client MATLAB by specifying the
# name of the OS in parentheses.
PluginScriptsLocation (Windows) = \\organization\matlab\pluginscripts
PluginScriptsLocation (Unix) = /organization/matlab/pluginscripts
# The operating system on the cluster. Valid values are 'unix' and 'windows'.
OperatingSystem = unix
# Specify whether client and cluster nodes share JobStorageLocation. To
# configure MATLAB to copy job input and output files to and from the
# cluster using SFTP, set this property to false and specify a value for
# AdditionalProperties.RemoteJobStorageLocation below.
HasSharedFilesystem = true
# Specify whether the cluster uses online licensing.
RequiresOnlineLicensing = false
# LicenseNumber for the workers to use. Specify only if
# RequiresOnlineLicensing is set to true.
#LicenseNumber = 123456
[AdditionalProperties]
# To configure the user's machine to connect to the submission host via
# SSH, uncomment the following line and enter the hostname of the cluster
# machine that has the scheduler utilities to submit jobs.
#ClusterHost = lsf-headnode
# If the user's machine and the cluster nodes do not have a shared file
# system, MATLAB can copy job input and output files to and from the
# cluster using SFTP. To activate this feature, set HasSharedFilesystem
# above to false. Then uncomment the following lines and enter the location
# on the cluster to store job files.
#RemoteJobStorageLocation (Windows) = /home/"$USERNAME"/.matlab/generic_cluster_jobs
#RemoteJobStorageLocation (Unix) = /home/"$USER"/.matlab/generic_cluster_jobs
# Username to log in to ClusterHost with. On Linux and Mac, use the USER
# environment variable. On Windows, use the USERNAME variable.
Username (Unix) = "$USER"
Username (Windows) = "$USERNAME"