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 1010# TOP_DIR
1111TOP_DIR = os .path .dirname (os .path .realpath (__file__ )) if not 'TOP_DIR' in os .environ else os .environ ["TOP_DIR" ]
1212
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+
1316SUPPORTED_PYTHON_VERSIONS = ["3.7" , "3.8" , "3.9" , "3.10" ]
1417
1518nox .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):
3336def install_torch_trt (session ):
3437 print ("Installing latest torch-tensorrt build" )
3538 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" )
3743
3844def download_datasets (session ):
3945 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