# Linux dependencies for CPU backend - BLAS

**URL:** <https://community.konduit.ai/t/linux-dependencies-for-cpu-backend-blas/614>\
**Category:** DL4J\
**Created:** [June 14, 2020, 10:29am UTC](https://community.konduit.ai/t/linux-dependencies-for-cpu-backend-blas/614 "2020-06-14T10:29:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hmf](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/hmf/32/236_2.png) [@hmf](https://community.konduit.ai/u/hmf)\
**Post date:** [June 14, 2020, 10:29am UTC](https://community.konduit.ai/t/linux-dependencies-for-cpu-backend-blas/614/1 "2020-06-14T10:29:15Z")

</div>

Several years ago I tried DL4J with success. At that time the CPU backend required I install OpenBLAS, ATLAS or Intel’s MKL. Looking at the current documentation I see no mention of these requirements save for building our own version of DL4J. I only see this:

[https://deeplearning4j.konduit.ai/config/backends/cpu](https://deeplearning4j.konduit.ai/config/backends/cpu)

No mention of JavaCPP, OpenBlas or anything else. My question is, what dependencies exist for the CPU backend? Is their documentation on the run-time dependencies of DL4J?

TIA

---

<div class="post-metadata">

**Author:** ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)\
**Post date:** [June 14, 2020, 10:38am UTC](https://community.konduit.ai/t/linux-dependencies-for-cpu-backend-blas/614/2 "2020-06-14T10:38:20Z")

</div>

That’s all you need. By default mkl-dnn (or oneDNN as they are calling it at the moment) will be used on supported platforms these days, and it is bundled with nd4j-native. On platforms that aren’t supported by mkl-dnn, openblas is used - and it is still bundled.

On the topic of bundled, I guess on can argue that it isn’t bundled but rather just a transitive dependency via JavaCPP presets.

So yes, the dependencies that are listed in the documentation are really all you need on a normal Linux distribution.

---

<div class="post-metadata">

**Author:** ![hmf](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/hmf/32/236_2.png) [@hmf](https://community.konduit.ai/u/hmf)\
**Post date:** [June 16, 2020, 6:54am UTC](https://community.konduit.ai/t/linux-dependencies-for-cpu-backend-blas/614/3 "2020-06-16T06:54:46Z")

</div>

@treo Thanks for the information. I am still a little unsure of what you mean when you say:

> [@treo](#):
>
> bundled with nd4j-native

Does that mean I do not need to install any of the libraries in the OS?

BTW, I think this is precious information that should be documented. I was unaware of mkl-dnn. I have installed `Intel(R) Math Kernel Library 2020 Update 1 for Linux` as an OpenBlas substitute.

TIA.

---

<div class="post-metadata">

**Author:** ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)\
**Post date:** [June 16, 2020, 6:58am UTC](https://community.konduit.ai/t/linux-dependencies-for-cpu-backend-blas/614/4 "2020-06-16T06:58:40Z")

</div>

Yes, you don’t _need_ to install any blas libraries on your system.

But if you want to use them anyway, you still can. We use the JavaCPP openblas preset to load the bundled library, and you can use its System properties to configure it to load something else:

> **[javacpp-presets/openblas at master · bytedeco/javacpp-presets](https://github.com/bytedeco/javacpp-presets/tree/master/openblas)**
>
> master/openblas

---

<div class="post-metadata">

**Author:** ![hmf](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/hmf/32/236_2.png) [@hmf](https://community.konduit.ai/u/hmf)\
**Post date:** [June 16, 2020, 7:04am UTC](https://community.konduit.ai/t/linux-dependencies-for-cpu-backend-blas/614/5 "2020-06-16T07:04:22Z")

</div>

@treo Ok, I also see

> **[javacpp-presets/mkl-dnn at master · bytedeco/javacpp-presets](https://github.com/bytedeco/javacpp-presets/tree/master/mkl-dnn)**
>
> master/mkl-dnn

So no installs.

Thank you

P.S: BTW, thanks for correcting the title.
