# Unable to run parallel builds of nupic.core in OS X

**URL:** <https://discourse.numenta.org/t/unable-to-run-parallel-builds-of-nupic-core-in-os-x/1274>\
**Category:** NuPIC\
**Created:** [August 22, 2016, 4:13pm UTC](https://discourse.numenta.org/t/unable-to-run-parallel-builds-of-nupic-core-in-os-x/1274 "2016-08-22T16:13:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Austin\_Marshall](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/austin_marshall/32/1029_2.png) [@Austin\_Marshall](https://discourse.numenta.org/u/Austin_Marshall)\
**Post date:** [August 22, 2016, 4:13pm UTC](https://discourse.numenta.org/t/unable-to-run-parallel-builds-of-nupic-core-in-os-x/1274/1 "2016-08-22T16:13:49Z")

</div>

I’m no longer able to do parallel builds of nupic.core in OS X following instructions from README. In particular, here’s what I’m doing:

```
git clean -fdx
mkdir -p build/scripts
cd build/scripts/
cmake ../.. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../release -DPY_EXTENSIONS_DIR=/Users/amarshall/nta/nupic.core/bindings/py/nupic/bindings > cmake.stdout 2> cmake.stderr
make -j6 > make.stdout 2> make.stderr

```

Meanwhile, if I were to eliminate the `-j6` from the `make` command, it works.

I don’t know if it’s an issue of the documentation being outdated or if it’s a new problem, but I would prefer to run make in parallel – it’s faster.

The referenced `.std*` files are available for viewing at [https://gist.github.com/oxtopus/ef2476ebaa8288e07b56c132d32d9aba](https://gist.github.com/oxtopus/ef2476ebaa8288e07b56c132d32d9aba) since I can’t upload them here and they get truncated if I include inline.

---

<div class="post-metadata">

**Author:** ![rhyolight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/rhyolight/32/3922_2.png) [@rhyolight](https://discourse.numenta.org/u/rhyolight)\
**Post date:** [August 22, 2016, 4:29pm UTC](https://discourse.numenta.org/t/unable-to-run-parallel-builds-of-nupic-core-in-os-x/1274/2 "2016-08-22T16:29:20Z")

</div>

I noticed this last week as well. I thought it was just something to do with my borked up environment. But don’t we don’t run in parallel in Bamboo:

> <https://github.com/numenta/nupic.core/blob/master/ci/bamboo/build-osx.sh#L28>

I think the correct way to fix this is to update this script to use multiple processors and deal with the repercussions.

---

<div class="post-metadata">

**Author:** ![Austin\_Marshall](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/austin_marshall/32/1029_2.png) [@Austin\_Marshall](https://discourse.numenta.org/u/Austin_Marshall)\
**Post date:** [August 22, 2016, 4:30pm UTC](https://discourse.numenta.org/t/unable-to-run-parallel-builds-of-nupic-core-in-os-x/1274/3 "2016-08-22T16:30:47Z")

</div>

> [@rhyolight](#):
>
> I think the correct way to fix this is to update this script to use multiple processors and deal with the repercussions.

+1

---

<div class="post-metadata">

**Author:** ![vkruglikov](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/vkruglikov/32/474_2.png) [@vkruglikov](https://discourse.numenta.org/u/vkruglikov)\
**Post date:** [August 22, 2016, 9:04pm UTC](https://discourse.numenta.org/t/unable-to-run-parallel-builds-of-nupic-core-in-os-x/1274/4 "2016-08-22T21:04:18Z")

</div>

Go figure, but `make -j50` worked. Not suggesting that we need to fish for a value that works, just thought that with a higher value we might have even more opportunity to get into race conditions.

---

<div class="post-metadata">

**Author:** ![vkruglikov](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/vkruglikov/32/474_2.png) [@vkruglikov](https://discourse.numenta.org/u/vkruglikov)\
**Post date:** [August 22, 2016, 9:04pm UTC](https://discourse.numenta.org/t/unable-to-run-parallel-builds-of-nupic-core-in-os-x/1274/5 "2016-08-22T21:04:48Z")

</div>

Clearly, we have dependency issues in the build

---

<div class="post-metadata">

**Author:** ![vkruglikov](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/vkruglikov/32/474_2.png) [@vkruglikov](https://discourse.numenta.org/u/vkruglikov)\
**Post date:** [August 22, 2016, 11:55pm UTC](https://discourse.numenta.org/t/unable-to-run-parallel-builds-of-nupic-core-in-os-x/1274/6 "2016-08-22T23:55:45Z")

</div>

Should be fixed via [https://github.com/numenta/nupic.core/pull/1057](https://github.com/numenta/nupic.core/pull/1057). I tested on my OS X machine both before and after.

---

<div class="post-metadata">

**Author:** ![vkruglikov](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/vkruglikov/32/474_2.png) [@vkruglikov](https://discourse.numenta.org/u/vkruglikov)\
**Post date:** [August 23, 2016, 12:44am UTC](https://discourse.numenta.org/t/unable-to-run-parallel-builds-of-nupic-core-in-os-x/1274/7 "2016-08-23T00:44:01Z")

</div>

The fix [https://github.com/numenta/nupic.core/pull/1057](https://github.com/numenta/nupic.core/pull/1057) has been merged into nupic.core master.
