diff --git a/public/VectorPairHMM/src/main/c++/pairhmm-1-base.cc b/public/VectorPairHMM/src/main/c++/pairhmm-1-base.cc index 2528fd152..7ff219b88 100644 --- a/public/VectorPairHMM/src/main/c++/pairhmm-1-base.cc +++ b/public/VectorPairHMM/src/main/c++/pairhmm-1-base.cc @@ -33,7 +33,6 @@ using namespace std; int main(int argc, char** argv) { - cout << "AVX supported? " << _may_i_use_cpu_feature(_FEATURE_AVX) << endl ; #define BATCH_SIZE 10000 if(argc < 2) { diff --git a/public/VectorPairHMM/src/main/c++/utils.cc b/public/VectorPairHMM/src/main/c++/utils.cc index dd72fc512..b3de2c259 100644 --- a/public/VectorPairHMM/src/main/c++/utils.cc +++ b/public/VectorPairHMM/src/main/c++/utils.cc @@ -59,26 +59,28 @@ bool is_avx_supported() bool is_sse41_supported() { - int ecx = 0, edx = 0, ebx = 0; - __asm__("cpuid" - : "=b" (ebx), - "=c" (ecx), - "=d" (edx) - : "a" (1) - ); - return ((ecx >> 19)&1) == 1; + return (_may_i_use_cpu_feature(_FEATURE_SSE4_1) > 0); + //int ecx = 0, edx = 0, ebx = 0; + //__asm__("cpuid" + //: "=b" (ebx), + //"=c" (ecx), + //"=d" (edx) + //: "a" (1) + //); + //return ((ecx >> 19)&1) == 1; } bool is_sse42_supported() { - int ecx = 0, edx = 0, ebx = 0; - __asm__("cpuid" - : "=b" (ebx), - "=c" (ecx), - "=d" (edx) - : "a" (1) - ); - return ((ecx >> 20)&1) == 1; + return (_may_i_use_cpu_feature(_FEATURE_SSE4_2) > 0); + //int ecx = 0, edx = 0, ebx = 0; + //__asm__("cpuid" + //: "=b" (ebx), + //"=c" (ecx), + //"=d" (edx) + //: "a" (1) + //); + //return ((ecx >> 20)&1) == 1; } uint64_t get_machine_capabilities() diff --git a/public/sting-utils/src/main/resources/org/broadinstitute/sting/utils/pairhmm/libVectorLoglessPairHMM.so b/public/sting-utils/src/main/resources/org/broadinstitute/sting/utils/pairhmm/libVectorLoglessPairHMM.so index 5091b2f49..26933455d 100644 Binary files a/public/sting-utils/src/main/resources/org/broadinstitute/sting/utils/pairhmm/libVectorLoglessPairHMM.so and b/public/sting-utils/src/main/resources/org/broadinstitute/sting/utils/pairhmm/libVectorLoglessPairHMM.so differ