# Best choices for AMD 3970x when compiling from source

**URL:** <https://discourse.julialang.org/t/best-choices-for-amd-3970x-when-compiling-from-source/42180>\
**Category:** General Usage\
**Tags:** compilation\
**Created:** [June 28, 2020, 2:50am UTC](https://discourse.julialang.org/t/best-choices-for-amd-3970x-when-compiling-from-source/42180 "2020-06-28T02:50:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joris\_Pinkse](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joris_pinkse/32/216398_2.png) [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)\
**Post date:** [June 28, 2020, 2:50am UTC](https://discourse.julialang.org/t/best-choices-for-amd-3970x-when-compiling-from-source/42180/1 "2020-06-28T02:50:07Z")

</div>

When compiling from source there are various environment variables that can be set. For instance, there are various architecture options, thread counts, etcetera. What are the optimal choices for these for an AMD 3970x machine on Linux? (32 CPUs / 64 threads)
