# Error precompiling on cluster

**URL:** <https://discourse.julialang.org/t/error-precompiling-on-cluster/104974>\
**Category:** General Usage\
**Tags:** question, cluster, precompilation\
**Created:** [October 15, 2023, 8:43am UTC](https://discourse.julialang.org/t/error-precompiling-on-cluster/104974 "2023-10-15T08:43:05Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![roi.holtzman](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Post date:** [October 19, 2023, 8:41am UTC](https://discourse.julialang.org/t/error-precompiling-on-cluster/104974/24 "2023-10-19T08:41:59Z")

</div>

This summarizes the solution to my issue.

The culprit was indeed in @jishnub tip:

> [@jishnub](#):
>
> `export JULIA_CPU_TARGET="generic;skylake-avx512,clone_all;znver2,clone_all"`

For me, I have an LSF cluster, and the appropriate way to find the CPU of the nodes is to run

```julia
lshosts -w

```

This shows that many CPUs are `Intel_Skylake`, but does not reveal the full details of the CPU.  
Setting in `.bashrc`

```julia
export JULIA_CPU_TARGET="generic;skylake,clone_all;icelake-server,clone_all"

```

solved the issue.

Let me also mention that for the LSF cluster, one can submit the job to run only on nodes with a specific CPU. I used when I run `bsub` this option

```julia
-R select [model=Intel_Skylake]

```

Thanks, Everyone!

---

_[View the full topic](https://discourse.julialang.org/t/error-precompiling-on-cluster/104974)._
