Skip to content

compile it for torch2.6 cuda12.6 python12 #1963

Closed
@tuqizhao

Description

@tuqizhao

use "pip install ." . Got an error :

FAILED: D:/kaifa/pytorch3d/build/temp.win-amd64-cpython-312/Release/kaifa/pytorch3d/pytorch3d/csrc/pulsar/gpu/renderer.backward.gpu.obj
D:\cuda12.6\bin\nvcc --generate-dependencies-with-compile --dependency-output D:\kaifa\pytorch3d\build\temp.win-amd64-cpython-312\Release\kaifa\pytorch3d\pytorch3d\csrc\pulsar\gpu\renderer.backward.gpu.obj.d -std=c++17 --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /wd4624 -Xcompiler /wd4067 -Xcompiler /wd4068 -Xcompiler /EHsc -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -ID:\kaifa\pytorch3d\pytorch3d\csrc -ID:\Users\t2s_2\miniconda3\envs\torch26\Lib\site-packages\torch\include -ID:\Users\t2s_2\miniconda3\envs\torch26\Lib\site-packages\torch\include\torch\csrc\api\include -ID:\Users\t2s_2\miniconda3\envs\torch26\Lib\site-packages\torch\include\TH -ID:\Users\t2s_2\miniconda3\envs\torch26\Lib\site-packages\torch\include\THC -ID:\cuda12.6\include -ID:\Users\t2s_2\miniconda3\envs\torch26\include -ID:\Users\t2s_2\miniconda3\envs\torch26\Include "-Id:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include" "-Id:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\ATLMFC\include" "-Id:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-ID:\Windows Kits\10\include\10.0.26100.0\ucrt" "-ID:\Windows Kits\10\include\10.0.26100.0\um" "-ID:\Windows Kits\10\include\10.0.26100.0\shared" "-ID:\Windows Kits\10\include\10.0.26100.0\winrt" "-ID:\Windows Kits\10\include\10.0.26100.0\cppwinrt" -c D:\kaifa\pytorch3d\pytorch3d\csrc\pulsar\gpu\renderer.backward.gpu.cu -o D:\kaifa\pytorch3d\build\temp.win-amd64-cpython-312\Release\kaifa\pytorch3d\pytorch3d\csrc\pulsar\gpu\renderer.backward.gpu.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89
D:/cuda12.6/include\cuda/std/__tuple_dir/vector_types.h(88): error: expected a ">"
template <> struct tuple_size : ::cuda::std::__4::integral_constant<size_t, 1> {}; template <size_t _Ip> struct tuple_element<_Ip, unsigned short1> { static_assert(_Ip < 1, "tuple_element index out of range"); using type = unsigned short; }; template <> struct tuple_size : ::cuda::std::__4::integral_constant<size_t, 2> {}; template <size_t _Ip> struct tuple_element<_Ip, unsigned short2> { static_assert(_Ip < 2, "tuple_element index out of range"); using type = unsigned short; }; template <> struct tuple_size : ::cuda::std::__4::integral_constant<size_t, 3> {}; template <size_t _Ip> struct tuple_element<_Ip, unsigned short3> { static_assert(_Ip < 3, "tuple_element index out of range"); using type = unsigned short; }; template <> struct tuple_size : ::cuda::std::__4::integral_constant<size_t, 4> {}; template <size_t _Ip> struct tuple_element<_Ip, unsigned short4> { static_assert(_Ip < 4, "tuple_element index out of range"); using type = unsigned short; };
^

D:/cuda12.6/include\cuda/std/__tuple_dir/vector_types.h(88): error: expected a ">"
template <> struct tuple_size : ::cuda::std::__4::integral_constant<size_t, 1> {}; template <size_t _Ip> struct tuple_element<_Ip, unsigned short1> { static_assert(_Ip < 1, "tuple_element index out of range"); using type = unsigned short; }; template <> struct tuple_size : ::cuda::std::__4::integral_constant<size_t, 2> {}; template <size_t _Ip> struct tuple_element<_Ip, unsigned short2> { static_assert(_Ip < 2, "tuple_element index out of range"); using type = unsigned short; }; template <> struct tuple_size : ::cuda::std::__4::integral_constant<size_t, 3> {}; template <size_t _Ip> struct tuple_element<_Ip, unsigned short3> { static_assert(_Ip < 3, "tuple_element index out of range"); using type = unsigned short; }; template <> struct tuple_size : ::cuda::std::__4::integral_constant<size_t, 4> {}; template <size_t _Ip> struct tuple_element<_Ip, unsigned short4> { static_assert(_Ip < 4, "tuple_element index out of range"); using type = unsigned short; };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions