• Diego Caballero's avatar
    [Standalone] Introduce CPURuntimeContextCG for standalone codegen generation. (#2421) · e9162eb5
    Diego Caballero authored
    * [CPUCodegen] Remove unnecessary forward declaration.
    
    * [CPUCodegen] Introduce CPURuntimeContextCG for standalone codegen generation.
    
    This patch introduces CPURuntimeContextCG. This class is aimed at
    removing the dependency between nGraph and the generated code in
    codegen mode. It will be used to hold the runtime context in
    codegen mode and it will be emitted in the generated code. For now,
    CPURuntimeContextCG only contains TBB's graph and global context.
    Follow-up patches will migrate more members in CPURuntimeContext to
    CPURuntimeContextCG for codegen mode.
    
    Testing results:
      - Before: NGRAPH_CODEGEN=1 test/unit-test
        [----------] Global test environment tear-down
        [==========] 2503 tests from 54 test cases ran. (290406 ms total)
        [  PASSED  ] 2490 tests.
    
      - After: NGRAPH_CODEGEN=1 test/unit-test
        [----------] Global test environment tear-down
        [==========] 2503 tests from 54 test cases ran. (412616 ms total)
        [  PASSED  ] 2490 tests.
    
    * [CPUCodegen] Refactor function parameters string
    
    * Fix bug in CPU_CallFrame destructor impacting DEX
    
    * [Standalone] Replace assert with NGRAPH_ASSERT
    e9162eb5
Name
Last commit
Last update
.ci Loading commit data...
cmake Loading commit data...
contrib/docker Loading commit data...
doc Loading commit data...
licenses Loading commit data...
maint Loading commit data...
python Loading commit data...
src Loading commit data...
test Loading commit data...
.clang-format Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.travis.yml Loading commit data...
ABOUT.md Loading commit data...
CMakeLists.txt Loading commit data...
CODEOWNERS Loading commit data...
CONTRIB.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
VERSION.in Loading commit data...
changes.md Loading commit data...
ecosystem-overview.md Loading commit data...