We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1a265f + 5098002 commit f546575Copy full SHA for f546575
pytorch_binding/setup.py
@@ -1,11 +1,17 @@
1
+from distutils.version import LooseVersion
2
import os
3
import platform
4
import sys
5
from setuptools import setup, find_packages
6
import torch
7
from torch.utils.cpp_extension import BuildExtension, CppExtension
8
-extra_compile_args = ['-std=c++11', '-fPIC']
9
+
10
+extra_compile_args = ['-fPIC']
11
+if LooseVersion(torch.__version__) >= LooseVersion("1.5.0"):
12
+ extra_compile_args += ['-std=c++14']
13
+else:
14
+ extra_compile_args += ['-std=c++11']
15
warp_rnnt_path = "../build"
16
17
if torch.cuda.is_available() or "CUDA_HOME" in os.environ:
0 commit comments