You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The makefile should be smart enough not to try to build the software with SSE or AVX if it is unsupported. Eventually it might be nice to make this a runtime check, but this is a reasonable substitute and likely to be simpler.
We want to do the right thing at runtime depending on whether the CPU supports SSE or AVX. The code below (from Sarah) allows us to check, in theory:
if (__builtin_cpu_supports ("avx2")){
//use avx2//TODO: maybe set a global bool as an avx flag?
}
elseif (__builtin_cpu_supports ("ssse3")){
//use ssse3//TODO: set bool?getBitsDNA
}
else {
//TODO: use sse2 - bool?
}
The text was updated successfully, but these errors were encountered:
The makefile should be smart enough not to try to build the software with SSE or AVX if it is unsupported. Eventually it might be nice to make this a runtime check, but this is a reasonable substitute and likely to be simpler.
We want to do the right thing at runtime depending on whether the CPU supports SSE or AVX. The code below (from Sarah) allows us to check, in theory:
The text was updated successfully, but these errors were encountered: