Commit 0ceb5da9 authored by Yannick de Jong's avatar Yannick de Jong
Browse files

Use C++17

The PyTorch codebase has migrated from the C++14 to the C++17
standard, see: https://github.com/pytorch/pytorch/pull/100557
parent 8b261bf2
...@@ -14,7 +14,7 @@ if torch.cuda.is_available(): ...@@ -14,7 +14,7 @@ if torch.cuda.is_available():
this_dir = os.path.dirname(os.path.realpath(__file__)) this_dir = os.path.dirname(os.path.realpath(__file__))
torch_dir = os.path.dirname(torch.__file__) torch_dir = os.path.dirname(torch.__file__)
conda_include_dir = '/'.join(torch_dir.split('/')[:-4]) + '/include' conda_include_dir = '/'.join(torch_dir.split('/')[:-4]) + '/include'
extra = {'cxx': ['-std=c++14', '-fopenmp','-O3'], 'nvcc': ['-std=c++14', '-Xcompiler', '-fopenmp', '-O3']} extra = {'cxx': ['-std=c++17', '-fopenmp','-O3'], 'nvcc': ['-std=c++17', '-Xcompiler', '-fopenmp', '-O3']}
setup( setup(
name='sparseconvnet', name='sparseconvnet',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment