質問編集履歴
3
エラー文の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -180,4 +180,210 @@
|
|
180
180
|
|
181
181
|
torch.shの中身のgit clone以外をコメントアウトしてみました.
|
182
182
|
|
183
|
-
エラー
|
183
|
+
結果として,以下のエラーが出ました.
|
184
|
+
|
185
|
+
```terminal
|
186
|
+
|
187
|
+
jetbot@jetbot-desktop:~/pytorch-aarch64/build$ sudo bash ./torch.sh
|
188
|
+
|
189
|
+
+ git clone https://github.com/pytorch/pytorch torch
|
190
|
+
|
191
|
+
fatal: destination path 'torch' already exists and is not an empty directory.
|
192
|
+
|
193
|
+
+ :
|
194
|
+
|
195
|
+
+ cd torch
|
196
|
+
|
197
|
+
+ rm build/CMakeCache.txt
|
198
|
+
|
199
|
+
rm: cannot remove 'build/CMakeCache.txt': No such file or directory
|
200
|
+
|
201
|
+
+ :
|
202
|
+
|
203
|
+
+ python3 setup.py build
|
204
|
+
|
205
|
+
Building wheel torch-1.11.0a0+gitc463d50
|
206
|
+
|
207
|
+
-- Building version 1.11.0a0+gitc463d50
|
208
|
+
|
209
|
+
--- Trying to initialize submodules
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
#------------長すぎるので一部省略
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
-- The CXX compiler identification is GNU 7.5.0
|
218
|
+
|
219
|
+
-- The C compiler identification is GNU 7.5.0
|
220
|
+
|
221
|
+
-- Check for working CXX compiler: /usr/bin/c++
|
222
|
+
|
223
|
+
-- Check for working CXX compiler: /usr/bin/c++ -- works
|
224
|
+
|
225
|
+
-- Detecting CXX compiler ABI info
|
226
|
+
|
227
|
+
-- Detecting CXX compiler ABI info - done
|
228
|
+
|
229
|
+
-- Detecting CXX compile features
|
230
|
+
|
231
|
+
-- Detecting CXX compile features - done
|
232
|
+
|
233
|
+
-- Check for working C compiler: /usr/bin/cc
|
234
|
+
|
235
|
+
-- Check for working C compiler: /usr/bin/cc -- works
|
236
|
+
|
237
|
+
-- Detecting C compiler ABI info
|
238
|
+
|
239
|
+
-- Detecting C compiler ABI info - done
|
240
|
+
|
241
|
+
-- Detecting C compile features
|
242
|
+
|
243
|
+
-- Detecting C compile features - done
|
244
|
+
|
245
|
+
-- Not forcing any particular BLAS to be found
|
246
|
+
|
247
|
+
-- Could not find ccache. Consider installing ccache to speed up compilation.
|
248
|
+
|
249
|
+
-- Performing Test COMPILER_WORKS
|
250
|
+
|
251
|
+
-- Performing Test COMPILER_WORKS - Success
|
252
|
+
|
253
|
+
-- Performing Test SUPPORT_GLIBCXX_USE_C99
|
254
|
+
|
255
|
+
-- Performing Test SUPPORT_GLIBCXX_USE_C99 - Success
|
256
|
+
|
257
|
+
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED
|
258
|
+
|
259
|
+
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED - Success
|
260
|
+
|
261
|
+
-- std::exception_ptr is supported.
|
262
|
+
|
263
|
+
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING
|
264
|
+
|
265
|
+
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING - Failed
|
266
|
+
|
267
|
+
-- Turning off deprecation warning due to glog.
|
268
|
+
|
269
|
+
-- Performing Test C_HAS_AVX_1
|
270
|
+
|
271
|
+
-- Performing Test C_HAS_AVX_1 - Failed
|
272
|
+
|
273
|
+
-- Performing Test C_HAS_AVX_2
|
274
|
+
|
275
|
+
-- Performing Test C_HAS_AVX_2 - Failed
|
276
|
+
|
277
|
+
-- Performing Test C_HAS_AVX_3
|
278
|
+
|
279
|
+
-- Performing Test C_HAS_AVX_3 - Failed
|
280
|
+
|
281
|
+
-- Performing Test C_HAS_AVX2_1
|
282
|
+
|
283
|
+
-- Performing Test C_HAS_AVX2_1 - Failed
|
284
|
+
|
285
|
+
-- Performing Test C_HAS_AVX2_2
|
286
|
+
|
287
|
+
-- Performing Test C_HAS_AVX2_2 - Failed
|
288
|
+
|
289
|
+
-- Performing Test C_HAS_AVX2_3
|
290
|
+
|
291
|
+
-- Performing Test C_HAS_AVX2_3 - Failed
|
292
|
+
|
293
|
+
-- Performing Test C_HAS_AVX512_1
|
294
|
+
|
295
|
+
-- Performing Test C_HAS_AVX512_1 - Failed
|
296
|
+
|
297
|
+
-- Performing Test C_HAS_AVX512_2
|
298
|
+
|
299
|
+
-- Performing Test C_HAS_AVX512_2 - Failed
|
300
|
+
|
301
|
+
-- Performing Test C_HAS_AVX512_3
|
302
|
+
|
303
|
+
-- Performing Test C_HAS_AVX512_3 - Failed
|
304
|
+
|
305
|
+
-- Performing Test CXX_HAS_AVX_1
|
306
|
+
|
307
|
+
-- Performing Test CXX_HAS_AVX_1 - Failed
|
308
|
+
|
309
|
+
-- Performing Test CXX_HAS_AVX_2
|
310
|
+
|
311
|
+
-- Performing Test CXX_HAS_AVX_2 - Failed
|
312
|
+
|
313
|
+
-- Performing Test CXX_HAS_AVX_3
|
314
|
+
|
315
|
+
-- Performing Test CXX_HAS_AVX_3 - Failed
|
316
|
+
|
317
|
+
-- Performing Test CXX_HAS_AVX2_1
|
318
|
+
|
319
|
+
-- Performing Test CXX_HAS_AVX2_1 - Failed
|
320
|
+
|
321
|
+
-- Performing Test CXX_HAS_AVX2_2
|
322
|
+
|
323
|
+
-- Performing Test CXX_HAS_AVX2_2 - Failed
|
324
|
+
|
325
|
+
-- Performing Test CXX_HAS_AVX2_3
|
326
|
+
|
327
|
+
-- Performing Test CXX_HAS_AVX2_3 - Failed
|
328
|
+
|
329
|
+
-- Performing Test CXX_HAS_AVX512_1
|
330
|
+
|
331
|
+
-- Performing Test CXX_HAS_AVX512_1 - Failed
|
332
|
+
|
333
|
+
-- Performing Test CXX_HAS_AVX512_2
|
334
|
+
|
335
|
+
-- Performing Test CXX_HAS_AVX512_2 - Failed
|
336
|
+
|
337
|
+
-- Performing Test CXX_HAS_AVX512_3
|
338
|
+
|
339
|
+
-- Performing Test CXX_HAS_AVX512_3 - Failed
|
340
|
+
|
341
|
+
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS
|
342
|
+
|
343
|
+
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS - Failed
|
344
|
+
|
345
|
+
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY
|
346
|
+
|
347
|
+
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY - Success
|
348
|
+
|
349
|
+
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY
|
350
|
+
|
351
|
+
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY - Success
|
352
|
+
|
353
|
+
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC
|
354
|
+
|
355
|
+
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC - Success
|
356
|
+
|
357
|
+
-- Found CUDA: /usr/local/cuda (found version "10.0")
|
358
|
+
|
359
|
+
-- The CUDA compiler identification is unknown
|
360
|
+
|
361
|
+
CMake Error at cmake/public/cuda.cmake:41 (enable_language):
|
362
|
+
|
363
|
+
No CMAKE_CUDA_COMPILER could be found.
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
Tell CMake where to find the compiler by setting either the environment
|
368
|
+
|
369
|
+
variable "CUDACXX" or the CMake cache entry CMAKE_CUDA_COMPILER to the full
|
370
|
+
|
371
|
+
path to the compiler, or to the compiler name if it is in the PATH.
|
372
|
+
|
373
|
+
Call Stack (most recent call first):
|
374
|
+
|
375
|
+
cmake/Dependencies.cmake:43 (include)
|
376
|
+
|
377
|
+
CMakeLists.txt:669 (include)
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
-- Configuring incomplete, errors occurred!
|
384
|
+
|
385
|
+
See also "/home/jetbot/pytorch-aarch64/build/torch/build/CMakeFiles/CMakeOutput.log".
|
386
|
+
|
387
|
+
See also "/home/jetbot/pytorch-aarch64/build/torch/build/CMakeFiles/CMakeError.log".
|
388
|
+
|
389
|
+
```
|
2
再追記の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -173,3 +173,11 @@
|
|
173
173
|
|
174
174
|
|
175
175
|
イメージを書き込んだSDカードに直接git cloneしてるのですが,違う方法なのでしょうか.
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
再追記:
|
180
|
+
|
181
|
+
torch.shの中身のgit clone以外をコメントアウトしてみました.
|
182
|
+
|
183
|
+
エラーは出ていないですが大丈夫でしょうか.
|
1
実行結果の追加,エラー内容追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -19,3 +19,157 @@
|
|
19
19
|
|
20
20
|
|
21
21
|
どなたか別の方法をご教示願えないでしょうか?
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
追記:
|
26
|
+
|
27
|
+
torch.shを実行した際にエラーが出ました.
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
```terminal
|
32
|
+
|
33
|
+
jetbot@jetbot-desktop:~/pytorch-aarch64/build$ sudo bash ./torch.sh
|
34
|
+
|
35
|
+
+ VER=
|
36
|
+
|
37
|
+
+ export PYTORCH_BUILD_VERSION=
|
38
|
+
|
39
|
+
+ PYTORCH_BUILD_VERSION=
|
40
|
+
|
41
|
+
+ export PYTORCH_BUILD_NUMBER=1
|
42
|
+
|
43
|
+
+ PYTORCH_BUILD_NUMBER=1
|
44
|
+
|
45
|
+
+ git clone https://github.com/pytorch/pytorch torch
|
46
|
+
|
47
|
+
Cloning into 'torch'...
|
48
|
+
|
49
|
+
remote: Enumerating objects: 718090, done.
|
50
|
+
|
51
|
+
remote: Counting objects: 100% (112/112), done.
|
52
|
+
|
53
|
+
remote: Compressing objects: 100% (71/71), done.
|
54
|
+
|
55
|
+
remote: Total 718090 (delta 64), reused 83 (delta 41), pack-reused 717978
|
56
|
+
|
57
|
+
Receiving objects: 100% (718090/718090), 682.71 MiB | 10.65 MiB/s, done.
|
58
|
+
|
59
|
+
Resolving deltas: 100% (582684/582684), done.
|
60
|
+
|
61
|
+
Checking out files: 100% (9661/9661), done.
|
62
|
+
|
63
|
+
+ cd torch
|
64
|
+
|
65
|
+
+ git checkout v
|
66
|
+
|
67
|
+
error: pathspec 'v' did not match any file(s) known to git.
|
68
|
+
|
69
|
+
```
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
エラーを調べたところ,
|
74
|
+
|
75
|
+
```terminal
|
76
|
+
|
77
|
+
git fetch
|
78
|
+
|
79
|
+
```
|
80
|
+
|
81
|
+
をすればよいとのことだったのでやってみましたが,
|
82
|
+
|
83
|
+
```terminal
|
84
|
+
|
85
|
+
jetbot@jetbot-desktop:~/pytorch-aarch64/build$ sudo bash ./torch.sh
|
86
|
+
|
87
|
+
+ VER=
|
88
|
+
|
89
|
+
+ export PYTORCH_BUILD_VERSION=
|
90
|
+
|
91
|
+
+ PYTORCH_BUILD_VERSION=
|
92
|
+
|
93
|
+
+ export PYTORCH_BUILD_NUMBER=1
|
94
|
+
|
95
|
+
+ PYTORCH_BUILD_NUMBER=1
|
96
|
+
|
97
|
+
+ git clone https://github.com/pytorch/pytorch torch
|
98
|
+
|
99
|
+
fatal: destination path 'torch' already exists and is not an empty directory.
|
100
|
+
|
101
|
+
+ :
|
102
|
+
|
103
|
+
+ cd torch
|
104
|
+
|
105
|
+
+ git fetch
|
106
|
+
|
107
|
+
From https://github.com/pytorch/pytorch
|
108
|
+
|
109
|
+
254360e182..9b14d93d78 viable/strict -> origin/viable/strict
|
110
|
+
|
111
|
+
+ git checkout v
|
112
|
+
|
113
|
+
error: pathspec 'v' did not match any file(s) known to git.
|
114
|
+
|
115
|
+
```
|
116
|
+
|
117
|
+
同じでした.
|
118
|
+
|
119
|
+
torch.shの中身
|
120
|
+
|
121
|
+
```shell
|
122
|
+
|
123
|
+
#!/usr/bin/env bash
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
set -xe
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
VER="$1"
|
132
|
+
|
133
|
+
export PYTORCH_BUILD_VERSION="$VER"
|
134
|
+
|
135
|
+
export PYTORCH_BUILD_NUMBER="1"
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
git clone https://github.com/pytorch/pytorch torch || :
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
cd torch
|
144
|
+
|
145
|
+
git checkout "v$VER"
|
146
|
+
|
147
|
+
git checkout --recurse-submodules "v$VER"
|
148
|
+
|
149
|
+
git submodule sync
|
150
|
+
|
151
|
+
git submodule update --init --recursive
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
rm build/CMakeCache.txt || :
|
156
|
+
|
157
|
+
# export MAX_JOBS=1
|
158
|
+
|
159
|
+
export BUILD_TEST=0
|
160
|
+
|
161
|
+
export USE_BREAKPAD=0
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
python3 setup.py build
|
166
|
+
|
167
|
+
python3 setup.py install
|
168
|
+
|
169
|
+
python3 setup.py bdist_wheel
|
170
|
+
|
171
|
+
```
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
イメージを書き込んだSDカードに直接git cloneしてるのですが,違う方法なのでしょうか.
|