Skip to content

SIMD trap at avx2::_mm256_sad_epu8 #1412

Closed
@zesterer

Description

@zesterer

Hello,

I made an attempt at building Veloren with the cranelift backend!

I'll preface this by saying that I did not expect this to work, and the fact that the thing even compiled at all is miraculous to me. Veloren is an enormous codebase nowadays that pulls in a terrifying number of dependencies that do all sorts of weird and unusual things that likely represent a headache for a codegen backend like JIT, dynamic linking, horrible multi-threading things, linking to several C and C++ codebases, a lot of SIMD (both explicit and implicit), atomics all over the place, etc.

When running the executable, I get:

trap at Instance { def: Item(DefId(2:14641 ~ core[b9f2]::core_arch::x86::avx2::_mm256_sad_epu8)), args: [] } (_ZN4core9core_arch3x864avx215_mm256_sad_epu817h663d79696ba92f42E): llvm.x86.avx2.psad.bw

(this happens after both wgpu selects a graphics adapter and the internal server boots up, so that it got this far is impressive!)

That said, there was no warning about this intrinsic (or any warnings at all, for that manner) reported during the build process, despite this post implying that there should be.

Hopefully this is useful information!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-core-archArea: Necessary for full core::arch support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions