Detect the used SIMD instructions to compile Jolt. #585
-
Hello, I'm building Jolt as static library using scons. Jolt is being build with The Jolt cmake configuration is detecting the instruction set to use here https://github.com/jrouwe/JoltPhysics/blob/master/Jolt/Jolt.cmake#L525-L568 I'm wondering if there is a smarter way though. Do you know an alternative way to know the active instruction set? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The SIMD instruction sets are not detected, you specify which ones you want to use by passing the variables to cmake, e.g.:
The machine you compile the code on does not need to have the same capabilities as the machine you intend to distribute the compiled code to. So you choose what the minimum spec machine is and then define the variables that correspond to that minimum spec. |
Beta Was this translation helpful? Give feedback.
The SIMD instruction sets are not detected, you specify which ones you want to use by passing the variables to cmake, e.g.:
The machine you compile the code on does not need to have the same capabilities as the machine you intend to distribute the compiled code to. So you choose what the minimum spec machine is and then define the variables that correspond to that minimum spec.