@@ -508,6 +508,7 @@ commands:
508
508
- store_artifacts :
509
509
path : /tmp/testlogs
510
510
511
+ # =================== FX tests start ======================== #
511
512
test-fx_core :
512
513
description : " Test the fx core"
513
514
steps :
@@ -707,6 +708,167 @@ commands:
707
708
- store_artifacts :
708
709
path : /tmp/testlogs
709
710
711
+ # =================== FX tests end ======================== #
712
+
713
+ # =================== Dynamo tests start ======================== #
714
+ test-dynamo-fx_ts_core :
715
+ description : " Test the Dynamo core"
716
+ steps :
717
+ - run :
718
+ name : Run Dynamo core tests
719
+ command : |
720
+ cd py/torch_tensorrt/dynamo/fx_ts_compat/test
721
+ pushd core/
722
+ pytest --junitxml=/tmp/artifacts/test_results/dynamo/core/test_results.xml
723
+ popd
724
+
725
+ - store_test_results :
726
+ path : /tmp/artifacts
727
+ - store_artifacts :
728
+ path : /tmp/testlogs
729
+
730
+ test-dynamo-fx_ts_converters_acc :
731
+ description : " Test the Dynamo acc converters"
732
+ steps :
733
+ - run :
734
+ name : Run FX converter tests
735
+ command : |
736
+ cd py/torch_tensorrt/dynamo/fx_ts_compat/test
737
+ pushd converters/acc_op/
738
+ pytest --junitxml=/tmp/artifacts/test_results/dynamo/converters/acc_op/test_results.xml
739
+ popd
740
+
741
+ - store_test_results :
742
+ path : /tmp/artifacts
743
+ - store_artifacts :
744
+ path : /tmp/testlogs
745
+
746
+ test-dynamo-fx_ts_converters_aten :
747
+ description : " Test the dynamo aten converters"
748
+ steps :
749
+ - run :
750
+ name : Run dynamo converter tests
751
+ command : |
752
+ cd py/torch_tensorrt/dynamo/fx_ts_compat/test
753
+ pushd converters/aten_op/
754
+ pytest --junitxml=/tmp/artifacts/test_results/dynamo/converters/aten_op/test_results.xml
755
+ popd
756
+
757
+ - store_test_results :
758
+ path : /tmp/artifacts
759
+ - store_artifacts :
760
+ path : /tmp/testlogs
761
+
762
+ test-dynamo-fx_ts_converters_vanilla :
763
+ description : " Test the dynamo vanilla converters"
764
+ steps :
765
+ - run :
766
+ name : Run dynamo converter tests
767
+ command : |
768
+ cd py/torch_tensorrt/dynamo/fx_ts_compat/test
769
+ pushd converters/vanilla/
770
+ pytest --junitxml=/tmp/artifacts/test_results/dynamo/converters/vanilla/test_results.xml
771
+ popd
772
+
773
+ - store_test_results :
774
+ path : /tmp/artifacts
775
+ - store_artifacts :
776
+ path : /tmp/testlogs
777
+
778
+ test-dynamo-fx_ts_passes :
779
+ description : " Test the dynamo passes"
780
+ steps :
781
+ - run :
782
+ name : Run dynamo passes
783
+ command : |
784
+ cd py/torch_tensorrt/dynamo/fx_ts_compat/test
785
+ pushd passes
786
+ list_passes=$(ls | grep -v test_setitem*)
787
+ pytest $list_passes --junitxml=/tmp/artifacts/test_results/dynamo/passes/test_results.xml
788
+ popd
789
+ - store_test_results :
790
+ path : /tmp/artifacts
791
+ - store_artifacts :
792
+ path : /tmp/testlogs
793
+
794
+ test-dynamo-fx_ts_tools :
795
+ description : " Test the dynamo tools"
796
+ steps :
797
+ - run :
798
+ name : Run dynamo tools
799
+ command : |
800
+ cd py/torch_tensorrt/dynamo/fx_ts_compat/test
801
+ pushd tools
802
+ pytest --junitxml=/tmp/artifacts/test_results/dynamo/tools/test_results.xml
803
+ popd
804
+ - store_test_results :
805
+ path : /tmp/artifacts
806
+ - store_artifacts :
807
+ path : /tmp/testlogs
808
+
809
+ test-dynamo-fx_ts_trt_lower :
810
+ description : " Test the dynamo TRT lowering"
811
+ steps :
812
+ - run :
813
+ name : Run dynamo TRT lowering
814
+ command : |
815
+ cd py/torch_tensorrt/dynamo/fx_ts_compat/test
816
+ pushd trt_lower
817
+ pytest --junitxml=/tmp/artifacts/test_results/dynamo/trt_lower/test_results.xml
818
+ popd
819
+ - store_test_results :
820
+ path : /tmp/artifacts
821
+ - store_artifacts :
822
+ path : /tmp/testlogs
823
+
824
+ test-dynamo-fx_ts_tracer :
825
+ description : " Test all dynamo tracers"
826
+ steps :
827
+ - run :
828
+ name : Run dynamo tracer
829
+ command : |
830
+ cd py/torch_tensorrt/dynamo/fx_ts_compat/test
831
+ pushd tracer
832
+ list_tracer=$(ls | grep -v test_dispatch_*)
833
+ pytest $list_tracer --junitxml=/tmp/artifacts/test_results/fx/tracer/test_results.xml
834
+ popd
835
+ - store_test_results :
836
+ path : /tmp/artifacts
837
+ - store_artifacts :
838
+ path : /tmp/testlogs
839
+
840
+ test-dynamo-fx_ts_tracer_acc :
841
+ description : " Test the dynamo acc tracer only"
842
+ steps :
843
+ - run :
844
+ name : Run dynamo tracer
845
+ command : |
846
+ cd py/torch_tensorrt/dynamo/fx_ts_compat/test
847
+ pushd tracer
848
+ list_tracer=$(ls | grep test_acc)
849
+ pytest $list_tracer --junitxml=/tmp/artifacts/test_results/dynamo/tracer/test_results.xml
850
+ popd
851
+ - store_test_results :
852
+ path : /tmp/artifacts
853
+ - store_artifacts :
854
+ path : /tmp/testlogs
855
+
856
+ test-dynamo-fx_ts_quant :
857
+ description : " Test the dynamo quant"
858
+ steps :
859
+ - run :
860
+ name : Run dynamo quant tests
861
+ command : |
862
+ cd py/torch_tensorrt/dynamo/fx_ts_compat/test
863
+ pushd quant/
864
+ pytest --junitxml=/tmp/artifacts/test_results/dynamo/quant/test_results.xml
865
+ popd
866
+
867
+ - store_test_results :
868
+ path : /tmp/artifacts
869
+ - store_artifacts :
870
+ path : /tmp/testlogs
871
+
710
872
test-dynamo-torch_compile :
711
873
description : " Test the Dynamo torch_compile path"
712
874
steps :
@@ -719,11 +881,55 @@ commands:
719
881
pip3 install transformers
720
882
pytest --junitxml=/tmp/artifacts/test_results/dynamo/test_results.xml --ir torch_compile
721
883
popd
884
+
722
885
- store_test_results :
723
886
path : /tmp/artifacts
724
887
- store_artifacts :
725
888
path : /tmp/testlogs
726
889
890
+ test-dynamo-fx_ts :
891
+ description : " Test the dynamo backend"
892
+ steps :
893
+ - run :
894
+ name : Run dynamo tests
895
+ command : |
896
+ mkdir -p /tmp/artifacts/test_results
897
+ - test-dynamo-fx_ts_converters_acc
898
+ - test-dynamo-fx_ts_converters_aten
899
+ - test-dynamo-fx_ts_converters_vanilla
900
+ - test-dynamo-fx_ts_passes
901
+ - test-dynamo-fx_ts_tools
902
+ - test-dynamo-fx_ts_trt_lower
903
+ - test-dynamo-fx_ts_tracer
904
+ - test-dynamo-fx_ts_core
905
+ - test-dynamo-fx_ts_quant
906
+ - store_test_results :
907
+ path : /tmp/artifacts
908
+ - store_artifacts :
909
+ path : /tmp/testlogs
910
+
911
+ test-dynamo-fx_ts-no-aten :
912
+ description : " Test the dynamo backend without aten operators"
913
+ steps :
914
+ - run :
915
+ name : Run dynamo tests without aten ops
916
+ command : |
917
+ mkdir -p /tmp/artifacts/test_results
918
+ - test-dynamo-fx_ts_converters_acc
919
+ - test-dynamo-fx_ts_converters_vanilla
920
+ - test-dynamo-fx_ts_passes
921
+ - test-dynamo-fx_ts_tools
922
+ - test-dynamo-fx_ts_trt_lower
923
+ - test-dynamo-fx_ts_tracer_acc
924
+ - test-dynamo-fx_ts_core
925
+ - test-dynamo-fx_ts_quant
926
+ - store_test_results :
927
+ path : /tmp/artifacts
928
+ - store_artifacts :
929
+ path : /tmp/testlogs
930
+
931
+ # =================== Dynamo tests end ======================== #
932
+
727
933
# Define a job to be invoked later in a workflow.
728
934
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
729
935
jobs :
@@ -930,6 +1136,7 @@ jobs:
930
1136
# We install torch after torch-trt because pip automatically enforces the version constraint otherwise
931
1137
- dump-test-env
932
1138
- test-dynamo-torch_compile
1139
+ - test-dynamo-fx_ts
933
1140
934
1141
test-py-dynamo-x86_64-linux-no-aten :
935
1142
parameters :
@@ -960,7 +1167,7 @@ jobs:
960
1167
command : pip3 install --pre /tmp/dist/x86_64-linux/*cp39-cp39*.whl
961
1168
# We install torch after torch-trt because pip automatically enforces the version constraint otherwise
962
1169
- dump-test-env
963
- - test-dynamo-torch_compile
1170
+ - test-dynamo-fx_ts-no-aten
964
1171
965
1172
package-x86_64-linux :
966
1173
parameters :
0 commit comments