# Going beyond a single core execution with FluxML (no CUDA)

**URL:** <https://discourse.julialang.org/t/going-beyond-a-single-core-execution-with-fluxml-no-cuda/20026>\
**Category:** General Usage\
**Created:** [January 24, 2019, 10:01am UTC](https://discourse.julialang.org/t/going-beyond-a-single-core-execution-with-fluxml-no-cuda/20026 "2019-01-24T10:01:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pauljurczak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pauljurczak/32/921_2.png) [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Post date:** [January 24, 2019, 10:01am UTC](https://discourse.julialang.org/t/going-beyond-a-single-core-execution-with-fluxml-no-cuda/20026/1 "2019-01-24T10:01:08Z")

</div>

I tried a few examples from FluxML model-zoo and only one core is getting fully utilized on my 4 core Intel CPU with integrated GPU. Is there any cure for that, other than buying Nvidia GPU?

Optimally, I would like to have OpenCL support, which could use CPU and iGPU in my PC, but AFAIK, CLArrays are not ported to Julia 1.x yet. Is there any way to at least use all CPU cores in the meantime?

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [January 24, 2019, 10:06am UTC](https://discourse.julialang.org/t/going-beyond-a-single-core-execution-with-fluxml-no-cuda/20026/2 "2019-01-24T10:06:39Z")

</div>

The CPU convolutions and maxpool layers implemented in Julia is AFAIU single threaded. [https://github.com/FluxML/NNlib.jl/pull/67](https://github.com/FluxML/NNlib.jl/pull/67) might be worth having a look at.

---

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [January 24, 2019, 10:09am UTC](https://discourse.julialang.org/t/going-beyond-a-single-core-execution-with-fluxml-no-cuda/20026/3 "2019-01-24T10:09:26Z")

</div>

I really don’t think training ML models on CPU is worth pursuing. The performance difference with GPU is too stark.

---

<div class="post-metadata">

**Author:** ![pauljurczak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pauljurczak/32/921_2.png) [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Post date:** [January 24, 2019, 10:21am UTC](https://discourse.julialang.org/t/going-beyond-a-single-core-execution-with-fluxml-no-cuda/20026/4 "2019-01-24T10:21:50Z")

</div>

@xiaodai You are right in general case, but my models are small and my purpose is far from mainstream. It’s not a big problem, I just don’t want to miss an existing solution. Ultimately, I will use CLArrays when ready.
