File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 10
10
# TOP_DIR
11
11
TOP_DIR = os .path .dirname (os .path .realpath (__file__ )) if not 'TOP_DIR' in os .environ else os .environ ["TOP_DIR" ]
12
12
13
+ # Set the USE_CXX11=1 to use cxx11_abi
14
+ USE_CXX11 = 0 if not 'USE_CXX11' in os .environ else os .environ ["USE_CXX11" ]
15
+
13
16
SUPPORTED_PYTHON_VERSIONS = ["3.7" , "3.8" , "3.9" , "3.10" ]
14
17
15
18
nox .options .sessions = ["l0_api_tests-" + "{}.{}" .format (sys .version_info .major , sys .version_info .minor )]
@@ -33,7 +36,10 @@ def download_models(session, use_host_env=False):
33
36
def install_torch_trt (session ):
34
37
print ("Installing latest torch-tensorrt build" )
35
38
session .chdir (os .path .join (TOP_DIR , "py" ))
36
- session .run ("python" , "setup.py" , "develop" )
39
+ if USE_CXX11 :
40
+ session .run ('python' , 'setup.py' , 'develop' , '--use-cxx11-abi' )
41
+ else :
42
+ session .run ("python" , "setup.py" , "develop" )
37
43
38
44
def download_datasets (session ):
39
45
print ("Downloading dataset to path" , os .path .join (TOP_DIR , 'examples/int8/training/vgg16' ))
You can’t perform that action at this time.
0 commit comments