File tree Expand file tree Collapse file tree 2 files changed +0
-34
lines changed Expand file tree Collapse file tree 2 files changed +0
-34
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -21,21 +21,6 @@ else()
2121 add_definitions (-DCAFFE2_UNIQUE_LONG_TYPEMETA)
2222endif ()
2323
24- # ---[ Check if __builtin_cpu_supports is supported by the compiler
25- CHECK_CXX_SOURCE_COMPILES(
26- "#include <iostream>
27-
28- int main(int argc, char** argv) {
29- std::cout << __builtin_cpu_supports(\" avx2\" ) << std::endl;
30- return 0;
31- }" HAS_BUILTIN_CPU_SUPPORTS)
32- if (HAS_BUILTIN_CPU_SUPPORTS)
33- message (STATUS "This compiler has builtin_cpu_supports feature." )
34- else ()
35- message (STATUS "This compiler does not have builtin_cpu_supports feature." )
36- add_definitions (-DCAFFE2_NO_BUILTIN_CPU_SUPPORTS)
37- endif ()
38-
3924# Note(jiayq): on ubuntu 14.04, the default glog install uses ext/hash_set that
4025# is being deprecated. As a result, we will test if this is the environment we
4126# are building under. If yes, we will turn off deprecation warning for a
You can’t perform that action at this time.
0 commit comments