# OpenBLAS malloc

**URL:** <https://discourse.julialang.org/t/openblas-malloc/74804>\
**Category:** General Usage\
**Tags:** question\
**Created:** [January 18, 2022, 2:00pm UTC](https://discourse.julialang.org/t/openblas-malloc/74804 "2022-01-18T14:00:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohmsweetohm1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ohmsweetohm1/32/49126_2.png) [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Post date:** [January 18, 2022, 2:00pm UTC](https://discourse.julialang.org/t/openblas-malloc/74804/1 "2022-01-18T14:00:42Z")

</div>

I got this:

```julia
OpenBLAS: malloc failed in dsyrk_thread_UT

```

```julia
julia> versioninfo()
Julia Version 1.7.0
Commit 3bf9d17731 (2021-11-30 12:12 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, skylake)
Environment:
  JULIA_PKG_PRECOMPILE_AUTO = 0

julia> Threads.nthreads()
4

```

Unfortunately I can not share my script. Any ideas what might cause this or how to debug it?  
I will try to reduce my script as much as possible in order to come up with a MWE.

---

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [January 18, 2022, 2:02pm UTC](https://discourse.julialang.org/t/openblas-malloc/74804/2 "2022-01-18T14:02:33Z")

</div>

Did you run out of memory?

---

<div class="post-metadata">

**Author:** ![ohmsweetohm1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ohmsweetohm1/32/49126_2.png) [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Post date:** [January 18, 2022, 2:11pm UTC](https://discourse.julialang.org/t/openblas-malloc/74804/3 "2022-01-18T14:11:11Z")

</div>

How would I check for that? Simply in the task manager or resource monitor? Top was 90%

---

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [January 18, 2022, 2:17pm UTC](https://discourse.julialang.org/t/openblas-malloc/74804/4 "2022-01-18T14:17:34Z")

</div>

yeah. That would be the problem then. BLAS is trying to allocate a buffer somewhere and is failing because you are out of memory.

---

<div class="post-metadata">

**Author:** ![ohmsweetohm1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ohmsweetohm1/32/49126_2.png) [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Post date:** [January 18, 2022, 2:20pm UTC](https://discourse.julialang.org/t/openblas-malloc/74804/5 "2022-01-18T14:20:04Z")

</div>

So nothing I can do?

---

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [January 18, 2022, 2:23pm UTC](https://discourse.julialang.org/t/openblas-malloc/74804/6 "2022-01-18T14:23:15Z")

</div>

Your 2 options are to figure out what is using all the RAM in your computation. It’s possible that this could be fixed by lowering RAM use elsewhere. It’s also possible that you just need more RAM to run the calculation.
