You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixes for MacOS and new CI to prevent future breaks (#164)
* include MacOS in CI
* include dependencies
* replace TCP with sockets
* add libuuid
* fix find UUID to correctly locate files in Ubuntu and MacOS
* fix random segfault in strdup + malloc due to wrong allocation
* ensure consistent use of defined variables
* change transport for MacOS tests
* update env
* update dependencies-macos.sh
* replace found to TRUE/FALSE
* update documentation with timeout and MacOS specifics
* fix git link to avoid authentication
* change transport for tests
* configure network for MacOS tests
---------
Co-authored-by: github-actions <github-actions[bot]@users.noreply.github.com>
Copy file name to clipboardexpand all lines: docs/source/getting_started.rst
+38-4
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ PDC can use either MPICH or OpenMPI as the MPI library, if your system doesn't h
42
42
We provide detailed instructions for installing libfabric, Mercury, and PDC below.
43
43
44
44
.. attention::
45
+
45
46
Following the instructions below will record all the environmental variables needed to run PDC in the ``$WORK_SPACE/pdc_env.sh`` file, which can be used for future PDC runs with ``source $WORK_SPACE/pdc_env.sh``.
46
47
47
48
@@ -57,9 +58,9 @@ Before installing the dependencies and downloading the code repository, we assum
``-DCMAKE_C_COMPILER=mpicc -DMPI_RUN_CMD=mpiexec`` may need to be changed to ``-DCMAKE_C_COMPILER=cc -DMPI_RUN_CMD=srun`` depending on your system environment.
174
194
175
195
.. note::
176
-
If you are trying to compile PDC on your Mac, ``LibUUID`` needs to be installed on your MacOS first. Simple use ``brew install ossp-uuid`` to install it.
196
+
197
+
If you are trying to compile PDC on MacOS, ``LibUUID`` needs to be installed on your MacOS first. Simple use ``brew install ossp-uuid`` to install it.
177
198
If you are trying to compile PDC on Linux, you should also make sure ``LibUUID`` is installed on your system. If not, you can install it with ``sudo apt-get install uuid-dev`` on Ubuntu or ``yum install libuuid-devel`` on CentOS.
178
199
200
+
In MacOS you also need to export the following environment variable so PDC (i.e., Mercury) uses the ``socket`` protocol, the only one supported in MacOS:
201
+
202
+
.. code-block: Bash
203
+
204
+
export HG_TRANSPORT="sockets"
205
+
206
+
179
207
Test Your PDC Installation
180
208
--------------------------
181
209
PDC's ``ctest`` contains both sequential and parallel/MPI tests, and can be run with the following in the `build` directory.
@@ -184,6 +212,12 @@ PDC's ``ctest`` contains both sequential and parallel/MPI tests, and can be run
184
212
185
213
ctest
186
214
215
+
You can also specify a timeout (e.g., 2 minutes) for the tests by specifying the ``timeout`` parameter when calling ``ctest``:
216
+
217
+
.. code-block:: Bash
218
+
219
+
ctest --timeout 120
220
+
187
221
.. note::
188
222
If you are using PDC on an HPC system, e.g. Perlmutter@NERSC, ``ctest`` should be run on a compute node, you can submit an interactive job on Perlmutter: ``salloc --nodes 1 --qos interactive --time 01:00:00 --constraint cpu --account=mxxxx``
0 commit comments