Ignore:
Timestamp:
Jul 25, 2016, 12:16:43 PM (3 years ago)
Author:
cameron
Message:

AVX2 checking via getHostCPUFeatures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IDISA/idisa_target.cpp

    r5037 r5108  
    99#include <IDISA/idisa_i64_builder.h>
    1010
    11 // Dynamic processor detection
    12 //#define ISPC_LLVM_VERSION ISPC_LLVM_3_6
    13 #include <util/ispc.h>
    14 
    1511namespace IDISA {
    1612   
     
    1814
    1915IDISA_Builder * GetIDISA_Builder(Module * mod) {
    20     bool hasAVX2 = (strncmp(lGetSystemISA(), "avx2", 4) == 0);
     16    bool hasAVX2 = AVX2_available();
    2117    unsigned theBlockSize = codegen::BlockSize;  // from command line
    2218   
Note: See TracChangeset for help on using the changeset viewer.