Lines 4-10
Link Here
|
4 |
EAPI=8 |
4 |
EAPI=8 |
5 |
|
5 |
|
6 |
PYTHON_COMPAT=( python3_{9..11} ) |
6 |
PYTHON_COMPAT=( python3_{9..11} ) |
7 |
inherit python-single-r1 cmake cuda flag-o-matic |
7 |
inherit python-single-r1 cmake cuda flag-o-matic prefix |
8 |
|
8 |
|
9 |
MYPN=pytorch |
9 |
MYPN=pytorch |
10 |
MYP=${MYPN}-${PV} |
10 |
MYP=${MYPN}-${PV} |
Lines 97-102
Link Here
|
97 |
pushd torch/csrc/jit/serialization || die |
97 |
pushd torch/csrc/jit/serialization || die |
98 |
flatc --cpp --gen-mutable --scoped-enums mobile_bytecode.fbs || die |
98 |
flatc --cpp --gen-mutable --scoped-enums mobile_bytecode.fbs || die |
99 |
popd |
99 |
popd |
|
|
100 |
# prefixify the hardcoded paths, after all patches are applied |
101 |
hprefixify \ |
102 |
aten/CMakeLists.txt \ |
103 |
caffe2/CMakeLists.txt \ |
104 |
cmake/Metal.cmake \ |
105 |
cmake/Modules/*.cmake \ |
106 |
cmake/Modules_CUDA_fix/FindCUDNN.cmake \ |
107 |
cmake/Modules_CUDA_fix/upstream/FindCUDA/make2cmake.cmake \ |
108 |
cmake/Modules_CUDA_fix/upstream/FindPackageHandleStandardArgs.cmake \ |
109 |
cmake/public/LoadHIP.cmake \ |
110 |
cmake/public/cuda.cmake \ |
111 |
cmake/Dependencies.cmake \ |
112 |
torch/CMakeLists.txt \ |
113 |
CMakeLists.txt |
100 |
} |
114 |
} |
101 |
|
115 |
|
102 |
src_configure() { |
116 |
src_configure() { |