1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
--- a/CMakeLists.txt 2022-05-21 13:13:50.806813151 +0200
+++ b/CMakeLists.txt 2022-05-21 13:16:46.448969453 +0200
@@ -165,7 +165,7 @@
message(WARNING "CMAKE_CXX_FLAGS_RELEASE is ${CMAKE_CXX_FLAGS_RELEASE}")
message(WARNING "==========")
-if(NOT TARGET asmjit)
+if(FALSE)
#Download asmjit from github if ASMJIT_SRC_DIR is not specified.
if(NOT DEFINED ASMJIT_SRC_DIR)
set(ASMJIT_SRC_DIR "${FBGEMM_SOURCE_DIR}/third_party/asmjit"
@@ -184,7 +184,7 @@
set_property(TARGET asmjit PROPERTY POSITION_INDEPENDENT_CODE ON)
endif()
-if(NOT TARGET cpuinfo)
+if(FALSE)
#Download cpuinfo from github if CPUINFO_SOURCE_DIR is not specified.
if(NOT DEFINED CPUINFO_SOURCE_DIR)
set(CPUINFO_SOURCE_DIR "${FBGEMM_SOURCE_DIR}/third_party/cpuinfo"
@@ -261,7 +261,6 @@
target_link_libraries(fbgemm $<BUILD_INTERFACE:asmjit>
$<BUILD_INTERFACE:cpuinfo>)
-add_dependencies(fbgemm asmjit cpuinfo)
install(TARGETS fbgemm EXPORT fbgemmLibraryConfig
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
@@ -268,6 +268,8 @@
install(FILES ${FBGEMM_PUBLIC_HEADERS}
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/fbgemm")
+install(FILES src/RefImplementations.h
+ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/fbgemm/src")
install(EXPORT fbgemmLibraryConfig DESTINATION share/cmake/fbgemm
FILE fbgemmLibraryConfig.cmake)
--- a/test/CMakeLists.txt 2022-05-21 13:15:34.140135199 +0200
+++ b/test/CMakeLists.txt 2022-05-21 13:17:59.170813431 +0200
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
-if(FBGEMM_BUILD_TESTS AND NOT TARGET gtest)
+if(FALSE)
#Download Googletest framework from github if
#GOOGLETEST_SOURCE_DIR is not specified.
if(NOT DEFINED GOOGLETEST_SOURCE_DIR)
@@ -62,7 +62,6 @@
target_link_libraries(${TESTNAME} ${OpenMP_CXX_LIBRARIES})
endif()
- add_dependencies(${TESTNAME} gtest fbgemm)
add_test(${TESTNAME} ${TESTNAME})
set_target_properties(${TESTNAME} PROPERTIES FOLDER test)
endmacro()
--- a/src/PackMatrix.cc 2022-05-24 08:19:00.639462626 +0200
+++ b/src/PackMatrix.cc 2022-05-24 08:27:59.127720548 +0200
@@ -30,6 +30,7 @@
}
template <typename PT, typename inpType, typename accType>
+FBGEMM_API
int PackMatrix<PT, inpType, accType>::packedBufferSize(
int rows,
int cols,
|