Skip to content

Commit

Permalink
Update backend.py
Browse files Browse the repository at this point in the history
Fix /home/user/Linly-Talker/.venv310/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4:2: error: #error C++17 or later compatible compiler is required to use PyTorch.
  • Loading branch information
pergyz authored Sep 2, 2024
1 parent ba016be commit f8a8297
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NeRF/raymarching/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
_src_path = os.path.dirname(os.path.abspath(__file__))

nvcc_flags = [
'-O3', '-std=c++14',
'-O3', '-std=c++17',
'-U__CUDA_NO_HALF_OPERATORS__', '-U__CUDA_NO_HALF_CONVERSIONS__', '-U__CUDA_NO_HALF2_OPERATORS__',
]

if os.name == "posix":
c_flags = ['-O3', '-std=c++14']
c_flags = ['-O3', '-std=c++17']
elif os.name == "nt":
c_flags = ['/O2', '/std:c++17']

Expand Down Expand Up @@ -37,4 +37,4 @@ def find_cl_path():
]],
)

__all__ = ['_backend']
__all__ = ['_backend']

0 comments on commit f8a8297

Please sign in to comment.