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
When installing on MacOS, specify the ``sockets`` protocol used by Mercury by replacing the cmake command from ``-DNA_OFI_TESTING_PROTOCOL=tcp`` to ``-DNA_OFI_TESTING_PROTOCOL=sockets``
170
163
171
164
172
165
Install PDC
@@ -197,11 +190,7 @@ Install PDC
197
190
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.
198
191
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.
199
192
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"
193
+
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: ``export HG_TRANSPORT="sockets"``
205
194
206
195
207
196
Test Your PDC Installation
@@ -219,6 +208,7 @@ You can also specify a timeout (e.g., 2 minutes) for the tests by specifying the
219
208
ctest --timeout 120
220
209
221
210
.. note::
211
+
222
212
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``
223
213
224
214
@@ -232,23 +222,21 @@ But before adding any of your function, we need to enable the Julia support firs
232
222
Prerequisite
233
223
^^^^^^^^^^^^
234
224
235
-
Make sure you have Julia-lang installed. You can check with your system administrator to see if you already have Julia-lang installed. If not, you can either ask your system administrator to install it for you or you can install it yourself if permitted. On macOS, the best way to install Julia is via `Homebrew https://brew.sh`_. You may also refer to `Julia Download Page https://julialang.org/downloads/`_ for instructions on installing Julia.
236
-
Once you installed Julia, you can set `JULIA_HOME` to be where Julia-lang is installed.
225
+
Make sure you have Julia-lang installed. You can check with your system administrator to see if you already have Julia-lang installed. If not, you can either ask your system administrator to install it for you or you can install it yourself if permitted. On macOS, the best way to install Julia is via `Homebrew <https://brew.sh>`_. You may also refer to `Julia Download Page <https://julialang.org/downloads/>`_ for instructions on installing Julia.
226
+
Once you installed Julia, you can set ``JULIA_HOME`` to be where Julia-lang is installed.
On Perlmutter You can ``module load julia`` to load the Julia-lang module and set ``$JULIA_HOME`` with: ``export JULIA_HOME=$(dirname $(dirname $(which julia)))``
247
235
248
236
249
237
Enabling Julia Support for PDC Tests
250
238
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
251
-
Once the Prerequisite is satisfied, you can enable Julia support by adding `--DPDC_ENABLE_JULIA_SUPPORT=ON` to your cmake command and re-run it.
239
+
Once the Prerequisite is satisfied, you can enable Julia support by adding ``--DPDC_ENABLE_JULIA_SUPPORT=ON`` to your cmake command and re-run it.
252
240
Then you can compile your PDC project with Julia support.
253
241
254
242
Now, see Developer Notes to know how you can add your own Julia functions to enhance your test cases in PDC.
@@ -257,9 +245,10 @@ Now, see Developer Notes to know how you can add your own Julia functions to enh
0 commit comments