文章

HOLD(cuda11.8) deployment log

pytorch3d

CUB_HOME

1
2
3
# which nvcc
# /usr/local/cuda-11.8/bin/nvcc
export CUB_HOME=/usr/local/cuda-11.8/include/cub

You need C++17 to compile PyTorch

https://github.com/facebookresearch/pytorch3d/issues/1657

modifying the line of setup.py :

1
 extra_compile_args = {"cxx": ["-std=c++14"]} 

into

1
extra_compile_args = {"cxx": ["-std=c++17"]} 

and

1
 nvcc_args.append("-std=c++14") 

into

1
nvcc_args.append("-std=c++17")

kaolin 0.10.0

error:identifier “CHECK_EQ” is undefined

change

1
CHECK_EQ

to

1
TORCH_CHECK_EQ

error: no suitable conversion function from “const at::DeprecatedTypeProperties” to “c10::ScalarType” exists

1
.type()

to

1
.scalar_type()

No module named ‘distutils.msvccompiler’

降低setuptool版本

1
pip install setuptools==64.0.3

error: Setup script exited with error: library mach has Fortran sources but no Fortran compiler found

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
Post-processing (stage 2)...
Building modules...
    Building module "statlib"...
        Constructing wrapper function "swilk"...
          a,w,pw,ifault = swilk(x,a,[init,n1])
        Constructing wrapper function "gscale"...
          astart,a1,ifault = gscale(test,other)
        Constructing wrapper function "prho"...
          ifault = prho(n,is)
    Wrote C/API module "statlib" to file "build/src.linux-x86_64-3.10/scipy/stats/statlibmodule.c"
Reading fortran codes...
        Reading file 'scipy/stats/mvn.pyf' (format:free)
Post-processing...
        Block: mvn
                        Block: mvnun
                        Block: mvnun_weighted
                        Block: mvndst
Post-processing (stage 2)...
Building modules...
    Building module "mvn"...
        Constructing wrapper function "mvnun"...
          value,inform = mvnun(lower,upper,means,covar,[maxpts,abseps,releps])
        Constructing wrapper function "mvnun_weighted"...
          value,inform = mvnun_weighted(lower,upper,means,weights,covar,[maxpts,abseps,releps])
        Constructing wrapper function "mvndst"...
          error,value,inform = mvndst(lower,upper,infin,correl,[maxpts,abseps,releps])
                Constructing COMMON block support for "dkblck"...
                  ivls
    Wrote C/API module "mvn" to file "build/src.linux-x86_64-3.10/scipy/stats/mvnmodule.c"
    Fortran 77 wrappers are saved to "build/src.linux-x86_64-3.10/scipy/stats/mvn-f2pywrappers.f"
WARN: Could not locate executable armflang
WARN: Could not locate executable gfortran
WARN: Could not locate executable f95
WARN: Could not locate executable ifort
WARN: Could not locate executable ifc
WARN: Could not locate executable lf95
WARN: Could not locate executable pgfortran
WARN: Could not locate executable nvfortran
WARN: Could not locate executable f90
WARN: Could not locate executable f77
WARN: Could not locate executable fort
WARN: Could not locate executable efort
WARN: Could not locate executable efc
WARN: Could not locate executable g77
WARN: Could not locate executable g95
WARN: Could not locate executable pathf95
WARN: Could not locate executable nagfor
WARN: Could not locate executable frt
WARN: don't know how to compile Fortran code on platform 'posix'
/home/cxx/miniconda3/envs/hold_env/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/home/cxx/miniconda3/envs/hold_env/lib/python3.10/site-packages/setuptools/command/egg_info.py:643: SetuptoolsDeprecationWarning: Custom 'build_py' does not implement 'get_data_files_without_manifest'.
Please extend command classes from setuptools instead of distutils.
  warnings.warn(
warning: no previously-included files matching '*_subr_*.f' found under directory 'scipy/linalg/src/id_dist/src'
no previously-included directories found matching 'benchmarks/env'
no previously-included directories found matching 'benchmarks/results'
no previously-included directories found matching 'benchmarks/html'
no previously-included directories found matching 'benchmarks/scipy'
no previously-included directories found matching 'scipy/special/tests/data/boost'
no previously-included directories found matching 'scipy/special/tests/data/gsl'
no previously-included directories found matching 'scipy/special/tests/data/local'
no previously-included directories found matching 'doc/build'
no previously-included directories found matching 'doc/source/generated'
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files matching '*.bak' found anywhere in distribution
warning: no previously-included files matching '*.swp' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files found matching 'LICENSES_bundled.txt'
WARN: CCompilerOpt.generate_dispatch_header[2289] : dispatch header dir build/src.linux-x86_64-3.10/numpy/distutils/include does not exist, creating it
error: Setup script exited with error: library mach has Fortran sources but no Fortran compiler found
1
sudo apt-get install gfortran
本文由作者按照 CC BY 4.0 进行授权