2 #include <gtest/gtest.h> 10 #include <test/cpp/jit/test_alias_analysis.h> 11 #include <test/cpp/jit/test_argument_spec.h> 12 #include <test/cpp/jit/test_autodiff.h> 13 #include <test/cpp/jit/test_class_parser.h> 14 #include <test/cpp/jit/test_code_template.h> 15 #include <test/cpp/jit/test_constant_pooling.h> 16 #include <test/cpp/jit/test_create_autodiff_subgraphs.h> 17 #include <test/cpp/jit/test_custom_operators.h> 18 #include <test/cpp/jit/test_dynamic_dag.h> 19 #include <test/cpp/jit/test_fuser.h> 20 #include <test/cpp/jit/test_graph_executor.h> 21 #include <test/cpp/jit/test_interpreter.h> 22 #include <test/cpp/jit/test_ir.h> 23 #include <test/cpp/jit/test_irparser.h> 24 #include <test/cpp/jit/test_ivalue.h> 25 #include <test/cpp/jit/test_misc.h> 26 #include <test/cpp/jit/test_netdef_converter.h> 27 #include <test/cpp/jit/test_subgraph_utils.h> 34 #define TH_FORALL_TESTS(_) \ 40 _(CreateAutodiffSubgraphs) \ 43 _(DifferentiateWithRequiresGrad) \ 49 _(RegisterFusionCachesKernel) \ 62 _(ATenNativeBatchNorm) \ 66 #define TH_FORALL_TESTS_CUDA(_) \ 72 #if defined(USE_GTEST) 74 #define JIT_GTEST(name) \ 75 TEST(JitTest, name) { \ 78 TH_FORALL_TESTS(JIT_GTEST)
81 #define JIT_GTEST_CUDA(name) \ 82 TEST(JitTest, name##_CUDA) { \ 85 TH_FORALL_TESTS_CUDA(JIT_GTEST_CUDA)
89 #define JIT_TEST(name) test##name(); 90 void runJITCPPTests() {
91 TH_FORALL_TESTS(JIT_TEST)
92 TH_FORALL_TESTS_CUDA(JIT_TEST)
96 testEvalModeForLoadedModule();