Skip to content

Commit d7d0e66

Browse files
Yangqingfacebook-github-bot
authored andcommitted
CMake updates.
Summary: Closes facebookarchive#970 Differential Revision: D5505960 Pulled By: Yangqing fbshipit-source-id: 1843c83d4ab5f9f3880bf93a9c748717c6af8565
1 parent 33044d2 commit d7d0e66

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

caffe2/utils/windows_cpu_supports.h

Lines changed: 0 additions & 19 deletions
This file was deleted.

cmake/MiscCheck.cmake

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,6 @@ else()
2121
add_definitions(-DCAFFE2_UNIQUE_LONG_TYPEMETA)
2222
endif()
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

0 commit comments

Comments
 (0)