# Check availability of AVX-512, AVX2 etc?

**URL:** <https://discourse.julialang.org/t/check-availability-of-avx-512-avx2-etc/132467>\
**Category:** General Usage\
**Created:** [September 17, 2025, 6:31pm UTC](https://discourse.julialang.org/t/check-availability-of-avx-512-avx2-etc/132467 "2025-09-17T18:31:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Norman](https://avatars.discourse-cdn.com/v4/letter/n/97f17d/32.png) [@Norman](https://discourse.julialang.org/u/Norman)\
**Post date:** [September 17, 2025, 6:31pm UTC](https://discourse.julialang.org/t/check-availability-of-avx-512-avx2-etc/132467/1 "2025-09-17T18:31:25Z")

</div>

Is there a standard/simple way in Julia to tell whether the CPU running Julia supports features like AVX-512, AVX2 etc?

I want to have a helper function that returns the approapriate length for a SIMD Vector (`Vec`) to be constructed, which can vary depending on the CPU. If it’s too complicated or not reliable, I will just let the user set an environment variable.

Update: Just discovered `simdbits()` from CpuId.jl.

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [September 17, 2025, 7:46pm UTC](https://discourse.julialang.org/t/check-availability-of-avx-512-avx2-etc/132467/2 "2025-09-17T19:46:26Z")

</div>

There’s CpuId.jl, though it hasn’t been updated in a while.
