Skip to content

Commit 5fb7f6a

Browse files
committed
Fix spelling.
1 parent d1bbc1a commit 5fb7f6a

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

docs/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Next, we can probe the machine to see what Exawind-Manager thinks the machine is
104104
user@user-38508s exawind-manager % spack manager find-machine
105105
exawind-manager darwin
106106
107-
Therefore Exawind-Manager will implement the ``yaml`` files from the ``darwin`` (MacOS) `configuration <https://github.com/Exawind/exawind-manager/tree/main/configs/darwin>`_ directory. Note the `base <https://github.com/Exawind/exawind-manager/tree/main/configs/base>`_ configuration files will always be used at a low precedence, with the machine-specific configuration taking precedence. The base files set many preferences as defaults such as where downloads are cached, Spack's temporary build stage is located, etc. Any of these can be overidden by the machine-specific configuration.
107+
Therefore Exawind-Manager will implement the ``yaml`` files from the ``darwin`` (MacOS) `configuration <https://github.com/Exawind/exawind-manager/tree/main/configs/darwin>`_ directory. Note the `base <https://github.com/Exawind/exawind-manager/tree/main/configs/base>`_ configuration files will always be used at a low precedence, with the machine-specific configuration taking precedence. The base files set many preferences as defaults such as where downloads are cached, Spack's temporary build stage is located, etc. Any of these can be overridden by the machine-specific configuration.
108108

109109
Within the machine-specific config or the base config, we have a ``template.yaml`` file which contains the default ``spack.yaml`` file that will be used for that machine if none is created or specified by the user. The ``spack.yaml`` file generally contains the spec or specs that will be built for the project on that machine by default. For the base template we see the default ``template.yaml`` below:
110110

@@ -327,7 +327,7 @@ Next we need to concretize this environment so Spack has a concrete list of exac
327327
328328
Notice that the spec we are using merely has ``cmake`` as a dependency, which we see in the DAG Spack emits. To install this Spack environment, we can use the ``spack install`` command. *However*, this command does not enact maximum build parallelism. The ``spack install`` command will build each package one after another, and with each package it will essentially perform a ``make -j`` command using the maximum CPU cores on the machine within each package. Luckily, the DAG contains more parallel opportunity within itself. For example, ``cmake`` and ``gmake`` do not depend on one another so they can be built concurrently. Within the DAG there are typically numerous opportunities for this further parallelism.
329329

330-
Spack deals with DAG parallelism using filesystem locks. So that allows us to run muliple spack instances. For example we could ``spack install & spack install & wait``, which runs two ``spack install`` commands concurrently. Spack is very aware of itself to have each instance of Spack build separate packages in the DAG that can be built concurrently.
330+
Spack deals with DAG parallelism using filesystem locks. So that allows us to run multiple spack instances. For example we could ``spack install & spack install & wait``, which runs two ``spack install`` commands concurrently. Spack is very aware of itself to have each instance of Spack build separate packages in the DAG that can be built concurrently.
331331

332332
We can expand even further on this idea by having Spack generate a high level GNUmake makefile to perform this DAG parallelism. To build our project using as much build parallelism as possible, we use what Spack calls "depfiles". To use these, we need our environment to be concretized. Any updates to ``spack.yaml`` typically require reconcretization, and after concretization, the depfile needs to be regenerated to match the concrete DAG.
333333

@@ -370,7 +370,7 @@ Here is how we do it using our previously concretized ``amr-wind-env`` environme
370370
Stage: 0.00s. Cmake: 2.86s. Build: 1m 39.30s. Install: 10.22s. Analysis: 1.66s. Post-install: 0.20s. Total: 1m 54.34s
371371
[+] /Users/user/exawind-manager/spack/opt/spack/darwin-ventura-m1/apple-clang-15.0.0/amr-wind-main-mynrqjmh342mfhabxi5spxglxpdw5imj
372372
373-
Notice the makefile is running several Spack instances while also providing build parallelism within each package. Using depfiles is the fastest way to build a large amount of dependenices in Spack typically at the beginning of building an entire environment. Once we start developing ``amr-wind``, it's simpler to use the ``spack install`` command to rebuild the projects listed as develop specs. Note Spack will always rebuild develop specs.
373+
Notice the makefile is running several Spack instances while also providing build parallelism within each package. Using depfiles is the fastest way to build a large amount of dependencies in Spack typically at the beginning of building an entire environment. Once we start developing ``amr-wind``, it's simpler to use the ``spack install`` command to rebuild the projects listed as develop specs. Note Spack will always rebuild develop specs.
374374

375375

376376
Running Tests
@@ -490,7 +490,7 @@ Then we rebuild the project:
490490
Stage: 0.00s. Cmake: 0.00s. Build: 8.21s. Install: 8.02s. Analysis: 0.78s. Post-install: 0.17s. Total: 17.32s
491491
[+] /Users/user/exawind-manager/spack/opt/spack/darwin-ventura-m1/apple-clang-15.0.0/amr-wind-main-mynrqjmh342mfhabxi5spxglxpdw5imj
492492
493-
Note the time in which it took to build ``amr-wind`` (17s), showing that the previous build objects were re-used and only the files that changed were built.
493+
Note the time in which it took to build ``amr-wind`` (17s), showing that the previous build objects were reused and only the files that changed were built.
494494

495495
Now we can run the unit tests again:
496496

find-exawind-manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def detector(name):
110110
except Exception:
111111
"""
112112
all other errors will be raised and kill the program
113-
we can add more excpetions to the pass list as needed
113+
we can add more exceptions to the pass list as needed
114114
in the future
115115
"""
116116
raise

repos/exawind/packages/ctest-package/package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def analysis(self, pkg, spec, prefix):
104104
This method will be used to run regression test
105105
TODO: workout how to get the track,build,site mapped correctly
106106
thinking of a call to super and writing logic into the packages
107-
and auxilary python lib
107+
and auxiliary python lib
108108
"""
109109

110110
with fs.working_dir(self.build_directory):

scripts/admin-system-setup/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This Makefile installs compilers, mpi etc from the base system.
44
There are 3 environments that are chained through make: bootstrap (intermediate compiler), compilers (production compilers), packages.
55
Each environment's store (install tree) is separate to prevent cross contamination.
66

7-
A Makefile for each envrionment is created using spack depfiles, and then they are all chained together with dependencies in the top-level Makefile.
7+
A Makefile for each environment is created using spack depfiles, and then they are all chained together with dependencies in the top-level Makefile.
88

99
To make sure a clean environment is used when running this I used:
1010

scripts/nrel-modules/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This Makefile installs compilers, mpi etc from the base system.
44
There are 3 environments that are chained through make: bootstrap (intermediate compiler), compilers (production compilers), packages.
55
Each environment's store (install tree) is separate to prevent cross contamination.
66

7-
A Makefile for each envrionment is created using spack depfiles, and then they are all chained together with dependencies in the top-level Makefile.
7+
A Makefile for each environment is created using spack depfiles, and then they are all chained together with dependencies in the top-level Makefile.
88

99
To make sure a clean environment is used when running this I used:
1010

0 commit comments

Comments
 (0)