forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
99 lines (89 loc) · 2.67 KB
/
CMakeLists.txt
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
set(Aten_TH_AVX_extra_src)
set(hdr
THGeneral.h THHalf.h THAllocator.h THStorage.h THStorageFunctions.h THTensor.h THTensorApply.h THBlas.h
THLapack.h THVector.h )
set(ATen_TH_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/THGeneral.cpp
${CMAKE_CURRENT_SOURCE_DIR}/THAllocator.cpp
${CMAKE_CURRENT_SOURCE_DIR}/THStorageFunctions.cpp
${CMAKE_CURRENT_SOURCE_DIR}/THTensor.cpp
${CMAKE_CURRENT_SOURCE_DIR}/THTensorMath.cpp
${CMAKE_CURRENT_SOURCE_DIR}/THTensorMoreMath.cpp
${CMAKE_CURRENT_SOURCE_DIR}/THTensorEvenMoreMath.cpp
${CMAKE_CURRENT_SOURCE_DIR}/THTensorLapack.cpp
${CMAKE_CURRENT_SOURCE_DIR}/THBlas.cpp
${CMAKE_CURRENT_SOURCE_DIR}/THLapack.cpp
)
# Remember that PARENT_SCOPE variables are not in the current scope
set(ATen_TH_SRCS ${ATen_TH_SRCS} PARENT_SCOPE)
set(ATen_CPU_SRCS ${ATen_CPU_SRCS} ${ATen_TH_SRCS} PARENT_SCOPE)
# Aten_TH_AVX_extra_src is used in aten/src/ATen/CMakeLists.txt
# when built with BUILD_LITE_INTERPRETER=1
set(Aten_TH_AVX_extra_src ${Aten_TH_AVX_extra_src} PARENT_SCOPE)
######################################################
set(ATen_CPU_INCLUDE ${ATen_CPU_INCLUDE}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
PARENT_SCOPE)
set(ATen_CUDA_INCLUDE ${ATen_CUDA_INCLUDE}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
PARENT_SCOPE)
configure_file(THGeneral.h.in "${CMAKE_CURRENT_BINARY_DIR}/THGeneral.h")
install(FILES
TH.h
THAllocator.h
THBlas.h
${CMAKE_CURRENT_BINARY_DIR}/THGeneral.h
THGenerateAllTypes.h
THGenerateBFloat16Type.h
THGenerateBoolType.h
THGenerateDoubleType.h
THGenerateFloatType.h
THGenerateHalfType.h
THGenerateComplexFloatType.h
THGenerateComplexDoubleType.h
THGenerateLongType.h
THGenerateIntType.h
THGenerateShortType.h
THGenerateCharType.h
THGenerateByteType.h
THGenerateFloatTypes.h
THGenerateComplexTypes.h
THGenerateIntTypes.h
THGenerateQUInt8Type.h
THGenerateQUInt4x2Type.h
THGenerateQInt8Type.h
THGenerateQInt32Type.h
THGenerateQTypes.h
THLapack.h
THStorage.h
THStorageFunctions.h
THTensor.h
THTensorApply.h
THTensorDimApply.h
THVector.h
THHalf.h
THTensor.hpp
THStorageFunctions.hpp
DESTINATION "${ATEN_INSTALL_INCLUDE_SUBDIR}/TH")
install(FILES
generic/THBlas.cpp
generic/THBlas.h
generic/THLapack.cpp
generic/THLapack.h
generic/THStorage.cpp
generic/THStorage.h
generic/THStorageCopy.cpp
generic/THStorageCopy.h
generic/THTensor.cpp
generic/THTensor.h
generic/THTensor.hpp
generic/THTensorLapack.cpp
generic/THTensorLapack.h
generic/THTensorMath.cpp
generic/THTensorMath.h
generic/THVector.h
# See Note [TH abstraction violation]
generic/THTensorFastGetSet.hpp
DESTINATION "${ATEN_INSTALL_INCLUDE_SUBDIR}/TH/generic")