diff --git a/ernerf/freqencoder/backend.py b/ernerf/freqencoder/backend.py index 3bd9131..6b3c7f6 100644 --- a/ernerf/freqencoder/backend.py +++ b/ernerf/freqencoder/backend.py @@ -4,13 +4,13 @@ from torch.utils.cpp_extension import load _src_path = os.path.dirname(os.path.abspath(__file__)) nvcc_flags = [ - '-O3', '-std=c++14', - '-U__CUDA_NO_HALF_OPERATORS__', '-U__CUDA_NO_HALF_CONVERSIONS__', '-U__CUDA_NO_HALF2_OPERATORS__', + '-O3', '-std=c++17', + '-U__CUDA_NO_HALF_OPERATORS__', '-U__CUDA_NO_HALF_CONVERSIONS__', '-U__CUDA_NO_HALF2_OPERATORS__', '-allow-unsupported-compiler', '-use_fast_math' ] 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'] diff --git a/ernerf/freqencoder/setup.py b/ernerf/freqencoder/setup.py index 3eb4af7..6cf4dcb 100644 --- a/ernerf/freqencoder/setup.py +++ b/ernerf/freqencoder/setup.py @@ -5,13 +5,13 @@ from torch.utils.cpp_extension import BuildExtension, CUDAExtension _src_path = os.path.dirname(os.path.abspath(__file__)) nvcc_flags = [ - '-O3', '-std=c++14', - '-U__CUDA_NO_HALF_OPERATORS__', '-U__CUDA_NO_HALF_CONVERSIONS__', '-U__CUDA_NO_HALF2_OPERATORS__', + '-O3', '-std=c++17', + '-U__CUDA_NO_HALF_OPERATORS__', '-U__CUDA_NO_HALF_CONVERSIONS__', '-U__CUDA_NO_HALF2_OPERATORS__', '-allow-unsupported-compiler', '-use_fast_math' ] 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'] diff --git a/ernerf/gridencoder/backend.py b/ernerf/gridencoder/backend.py index d4aa494..b6579e2 100644 --- a/ernerf/gridencoder/backend.py +++ b/ernerf/gridencoder/backend.py @@ -4,12 +4,12 @@ from torch.utils.cpp_extension import load _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', '-finput-charset=UTF-8'] + c_flags = ['-O3', '-std=c++17', '-finput-charset=UTF-8'] elif os.name == "nt": c_flags = ['/O2', '/std:c++17', '/finput-charset=UTF-8'] diff --git a/ernerf/gridencoder/setup.py b/ernerf/gridencoder/setup.py index 714bf1c..6a385b4 100644 --- a/ernerf/gridencoder/setup.py +++ b/ernerf/gridencoder/setup.py @@ -5,12 +5,12 @@ from torch.utils.cpp_extension import BuildExtension, CUDAExtension _src_path = os.path.dirname(os.path.abspath(__file__)) nvcc_flags = [ - '-O3', '-std=c++14', - '-U__CUDA_NO_HALF_OPERATORS__', '-U__CUDA_NO_HALF_CONVERSIONS__', '-U__CUDA_NO_HALF2_OPERATORS__', + '-O3', '-std=c++17', + '-U__CUDA_NO_HALF_OPERATORS__', '-U__CUDA_NO_HALF_CONVERSIONS__', '-U__CUDA_NO_HALF2_OPERATORS__','-allow-unsupported-compiler', ] 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'] diff --git a/ernerf/raymarching/backend.py b/ernerf/raymarching/backend.py index d8f65d6..508cf4e 100644 --- a/ernerf/raymarching/backend.py +++ b/ernerf/raymarching/backend.py @@ -4,12 +4,12 @@ from torch.utils.cpp_extension import load _src_path = os.path.dirname(os.path.abspath(__file__)) nvcc_flags = [ - '-O3', '-std=c++14', - '-U__CUDA_NO_HALF_OPERATORS__', '-U__CUDA_NO_HALF_CONVERSIONS__', '-U__CUDA_NO_HALF2_OPERATORS__', + '-O3', '-std=c++17', + '-U__CUDA_NO_HALF_OPERATORS__', '-U__CUDA_NO_HALF_CONVERSIONS__', '-U__CUDA_NO_HALF2_OPERATORS__','-allow-unsupported-compiler', ] 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'] diff --git a/ernerf/raymarching/setup.py b/ernerf/raymarching/setup.py index 6a7e62f..9843144 100644 --- a/ernerf/raymarching/setup.py +++ b/ernerf/raymarching/setup.py @@ -5,13 +5,13 @@ from torch.utils.cpp_extension import BuildExtension, CUDAExtension _src_path = os.path.dirname(os.path.abspath(__file__)) nvcc_flags = [ - '-O3', '-std=c++14', + '-O3', '-std=c++17', # '-lineinfo', # to debug illegal memory access - '-U__CUDA_NO_HALF_OPERATORS__', '-U__CUDA_NO_HALF_CONVERSIONS__', '-U__CUDA_NO_HALF2_OPERATORS__', + '-U__CUDA_NO_HALF_OPERATORS__', '-U__CUDA_NO_HALF_CONVERSIONS__', '-U__CUDA_NO_HALF2_OPERATORS__','-allow-unsupported-compiler', ] 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'] diff --git a/ernerf/shencoder/backend.py b/ernerf/shencoder/backend.py index c41c8cb..ae06988 100644 --- a/ernerf/shencoder/backend.py +++ b/ernerf/shencoder/backend.py @@ -4,12 +4,12 @@ from torch.utils.cpp_extension import load _src_path = os.path.dirname(os.path.abspath(__file__)) nvcc_flags = [ - '-O3', '-std=c++14', - '-U__CUDA_NO_HALF_OPERATORS__', '-U__CUDA_NO_HALF_CONVERSIONS__', '-U__CUDA_NO_HALF2_OPERATORS__', + '-O3', '-std=c++17', + '-U__CUDA_NO_HALF_OPERATORS__', '-U__CUDA_NO_HALF_CONVERSIONS__', '-U__CUDA_NO_HALF2_OPERATORS__','-allow-unsupported-compiler', ] if os.name == "posix": - c_flags = ['-O3', '-std=c++14', '-finput-charset=utf-8'] + c_flags = ['-O3', '-std=c++17', '-finput-charset=utf-8'] elif os.name == "nt": c_flags = ['/O2', '/std:c++17', '/source-charset:utf-8'] diff --git a/ernerf/shencoder/setup.py b/ernerf/shencoder/setup.py index 342a601..d282bf2 100644 --- a/ernerf/shencoder/setup.py +++ b/ernerf/shencoder/setup.py @@ -5,12 +5,12 @@ from torch.utils.cpp_extension import BuildExtension, CUDAExtension _src_path = os.path.dirname(os.path.abspath(__file__)) nvcc_flags = [ - '-O3', '-std=c++14', - '-U__CUDA_NO_HALF_OPERATORS__', '-U__CUDA_NO_HALF_CONVERSIONS__', '-U__CUDA_NO_HALF2_OPERATORS__', + '-O3', '-std=c++17', + '-U__CUDA_NO_HALF_OPERATORS__', '-U__CUDA_NO_HALF_CONVERSIONS__', '-U__CUDA_NO_HALF2_OPERATORS__','-allow-unsupported-compiler', ] 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']