Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with c10::guts::to_string #37

Closed
HungNgoCT opened this issue Mar 4, 2024 · 2 comments
Closed

Error with c10::guts::to_string #37

HungNgoCT opened this issue Mar 4, 2024 · 2 comments

Comments

@HungNgoCT
Copy link

Hi.,

Thank you for the code.

I followed the guidance for compiling using:
-Visual studio community 2022
-Cuda 11.8
-CuDNN for cuda 11.8

Using cmake, can generate config and .sln file without any problems.

However, I open the solution file in VS 2022, the I got the error as in the image below.
image

I think I have a problems with C10 version.

Can anybody help me to solve this.

Thank you in advance

@luoww1992
Copy link

luoww1992 commented Mar 5, 2024

@HungNgoCT ,
i am sucessful in win10:
my conda env is:

# packages in environment at C:\ProgramData\miniconda3\envs\trips:       
#                                                                        
# Name                    Version                   Build  Channel       
absl-py                   2.1.0              pyhd8ed1ab_0    conda-forge 
aiohttp                   3.9.3            py39ha55989b_0    conda-forge 
aiosignal                 1.3.1              pyhd8ed1ab_0    conda-forge 
assimp                    5.2.5                h4dcb625_0    conda-forge 
async-timeout             4.0.3              pyhd8ed1ab_0    conda-forge 
attrs                     23.2.0             pyh71513ae_0    conda-forge 
blinker                   1.7.0              pyhd8ed1ab_0    conda-forge 
blis                      0.9.0                hcfcfb64_1    conda-forge 
boost-cpp                 1.78.0               h9f4b32c_4    conda-forge 
brotli-python             1.1.0            py39h99910a6_1    conda-forge 
bzip2                     1.0.8                hcfcfb64_5    conda-forge 
ca-certificates           2024.2.2             h56e8100_0    conda-forge 
cachetools                5.3.3              pyhd8ed1ab_0    conda-forge 
certifi                   2024.2.2         py39haa95532_0                
cffi                      1.16.0           py39ha55989b_0    conda-forge 
charset-normalizer        3.3.2              pyhd8ed1ab_0    conda-forge 
click                     8.1.7           win_pyh7428d3b_0    conda-forge
cmake                     3.26.4               h693b641_0                
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
cryptography              42.0.5           py39hb6bd5e6_0    conda-forge
doxygen                   1.10.0               h31cd86e_0    conda-forge
freeglut                  3.2.2                h63175ca_2    conda-forge
freeimage                 3.18.0              ha010600_19    conda-forge
frozenlist                1.4.1            py39ha55989b_0    conda-forge
gettext                   0.21.1               h5728263_0    conda-forge
gflags                    2.2.2             ha925a31_1004    conda-forge
glew                      2.1.0                h39d44d4_2    conda-forge
glog                      0.5.0                h4797de2_0    conda-forge
google-auth               2.28.1             pyhca7485f_0    conda-forge
google-auth-oauthlib      0.4.6              pyhd8ed1ab_0    conda-forge
grpcio                    1.46.3           py39hf7b6eba_0    conda-forge
idna                      3.6                pyhd8ed1ab_0    conda-forge
imath                     3.1.10               h12be248_0    conda-forge
importlib-metadata        7.0.1              pyha770c72_0    conda-forge
intel-openmp              2024.0.2                 pypi_0    pypi
jxrlib                    1.1                  hcfcfb64_3    conda-forge
lcms2                     2.16                 h67d730c_0    conda-forge
lerc                      4.0.0                h63175ca_0    conda-forge
libblas                   3.9.0             21_win64_blis    conda-forge
libcblas                  3.9.0             21_win64_blis    conda-forge
libdeflate                1.19                 hcfcfb64_0    conda-forge
libffi                    3.4.2                h8ffe710_5    conda-forge
libglib                   2.68.4               h3be07f2_1    conda-forge
libiconv                  1.17                 hcfcfb64_2    conda-forge
libjpeg-turbo             3.0.0                hcfcfb64_1    conda-forge
liblapack                 3.9.0           5_hd5c7e75_netlib    conda-forge
libpng                    1.6.43               h19919ed_0    conda-forge
libprotobuf               3.13.0.1             h200bbdf_0    conda-forge
libraw                    0.21.1               h5557f11_2    conda-forge
libtiff                   4.6.0                h6e2ebb7_2    conda-forge
libuv                     1.44.2               h2bbff1b_0
libwebp-base              1.3.2                hcfcfb64_0    conda-forge
libzip                    1.10.1               h1d365fa_3    conda-forge
libzlib                   1.2.13               hcfcfb64_5    conda-forge
llvm-openmp               8.0.1                h1ad3211_0    conda-forge
lz4-c                     1.9.4                h2bbff1b_0
m2-bash                   4.3.042                       5
m2-gcc-libs               5.3.0                         4
m2-gettext                0.19.7                        4
m2-libasprintf            0.19.7                        4
m2-libgettextpo           0.19.7                        4
m2-libiconv               1.14                          3
m2-libintl                0.19.7                        4
m2-liblzma                5.2.2                         2    conda-forge
m2-msys2-runtime          2.5.0.17080.65c939c               3
m2w64-gcc-libgfortran     5.3.0                         6    conda-forge
m2w64-gcc-libs            5.3.0                         7    conda-forge
m2w64-gcc-libs-core       5.3.0                         7    conda-forge
m2w64-gmp                 6.1.0                         2    conda-forge
m2w64-libwinpthread-git   5.0.0.4634.697f757               2    conda-forge
markdown                  3.5.2              pyhd8ed1ab_0    conda-forge
markupsafe                2.1.5            py39ha55989b_0    conda-forge
mkl                       2024.0.0                 pypi_0    pypi
mkl-include               2024.0.0                 pypi_0    pypi
mkl-static                2024.0.0                 pypi_0    pypi
msys2-conda-epoch         20160418                      1    conda-forge
multidict                 6.0.5            py39ha55989b_0    conda-forge
numpy                     1.26.4           py39hddb5d58_0    conda-forge
oauthlib                  3.2.2              pyhd8ed1ab_0    conda-forge
openexr                   3.2.2                hf79fc45_0    conda-forge
openjpeg                  2.5.2                h3d672ee_0    conda-forge
openmp                    8.0.1                         0    conda-forge
openssl                   3.2.1                hcfcfb64_0    conda-forge
pcre                      8.45                 h0e60522_0    conda-forge
pip                       23.3.1           py39haa95532_0
pkg-config                0.29.2            h2bf4dc2_1008    conda-forge
pkgconfig                 1.5.5              pyhd8ed1ab_4    conda-forge
protobuf                  3.13.0.1         py39h415ef7b_1    conda-forge
pyasn1                    0.5.1              pyhd8ed1ab_0    conda-forge
pyasn1-modules            0.3.0              pyhd8ed1ab_0    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pyjwt                     2.8.0              pyhd8ed1ab_1    conda-forge
pyopenssl                 24.0.0             pyhd8ed1ab_0    conda-forge
tbb                       2021.11.0                pypi_0    pypi
tensorboard               2.8.0              pyhd8ed1ab_1    conda-forge
tensorboard-data-server   0.6.1            py39hcbf5309_4    conda-forge
tensorboard-plugin-wit    1.8.1              pyhd8ed1ab_0    conda-forge
typing-extensions         4.10.0               hd8ed1ab_0    conda-forge
typing_extensions         4.10.0             pyha770c72_0    conda-forge
tzdata                    2024a                h04d1e81_0
ucrt                      10.0.22621.0         h57928b3_0    intel
urllib3                   2.2.1              pyhd8ed1ab_0    conda-forge
vc                        14.2                 h21ff451_1
vc14_runtime              14.36.32532         hdcecf7f_17    intel
vs2015_runtime            14.36.32532         h05e6639_17    intel
werkzeug                  3.0.1              pyhd8ed1ab_0    conda-forge
wheel                     0.41.2           py39haa95532_0
win_inet_pton             1.1.0              pyhd8ed1ab_6    conda-forge
xz                        5.4.6                h8cc25b3_0
yarl                      1.9.4            py39ha55989b_0    conda-forge
zipp                      3.17.0             pyhd8ed1ab_0    conda-forge
zlib                      1.2.13               hcfcfb64_5    conda-forge
zstd                      1.5.5                hd43e919_0
zziplib                   0.13.69              h1d00b33_1    conda-forge

1> conda install the envs likes it, download the libtorch: https://download.pytorch.org/libtorch/cu118/libtorch-win-shared-with-deps-2.0.1%2Bcu118.zip
2> then open the Anaconda Prompt(Miniconda3) cmd black windows with administrator privileges
3> activate conda env, and cd the trips fold dir
4> run the two cmd:

cmake -Bbuild -DCMAKE_CUDA_COMPILER="%CUDA_PATH%\bin\nvcc.exe" -DCMAKE_PREFIX_PATH=".\External\libtorch" -DCONDA_P_PATH="%CONDA_PREFIX%" -DCUDA_P_PATH="%CUDA_PATH%" -DCMAKE_BUILD_TYPE=RelWithDebInfo .

and

cmake --build build --config RelWithDebInfo -j

5> run train or viewer...

@HungNgoCT
Copy link
Author

HungNgoCT commented Mar 5, 2024

1> conda install the envs likes it, download the libtorch: https://download.pytorch.org/libtorch/cu118/libtorch-win-shared-with-deps-2.0.1%2Bcu118.zip

Thank you @luoww1992 .

I use the libtorch version in the link (1> conda install the envs likes it, download the libtorch: https://download.pytorch.org/libtorch/cu118/libtorch-win-shared-with-deps-2.0.1%2Bcu118.zip) you given, it works.

The reason because I used the latest libtorch version which I downloaded from pytorch page, the c10::guts::to_string() function was removed.

Thanks again @luoww1992

The problem solved, let it closes here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants