Module build exec (#765)
* code cleanup
* clang format
* backup code
* clang format
* remove unnecessary code
* clang format
* add module print function
* code backup
* refine the module::print function
* refine the module:to_value() function
* code backup
* backup code changes
* code backup
* remove to_value and from_value function from the module class
* rename a function
* rename the if operator
* refine the if operator
* refine the print function of module and program
* code backup
* code backup
* fix a build warning
* fix overload of compute_shape function
* code backup
* fix unit test error
* fix cppcheck error
* fix the issue related to the overload of compute_shape
* fix review comments
* fix cppcheck error
* change the return name of if_op to be if
* clang format
* fix two unit tests
* clang format
* rename variables
* clang format
* remove the unused compute_op function
* clang format
* add lowering of if operator and compute_op function
* clang format
* add parsing if operator in onnx file
* clang format
* fix clang tidy format
* clang format
* add the gpu implementation of the if operator
* enhance the validate function and uncomment a unit test
* clang format
* remove unnecessary code
* add sub_module processing in ref passes
* clang format
* clang format
* fix a hang issue related to the valid function
* fix an issue in replace_refs
* clang format
* fix review comments
* clang format
* fix cppcheck error
* clang format
* add a unit test for more code coverage
* clang format
* fix review comments and add test for more code coverage
* clang format
* fix cppcheck error
* clang format
* fix cppcheck error
* fix a cppcheck error
* clang format
* backup code
* clang format
* fix cppcheck error
* clang format
* some code refinement
* clang format
* code backup to handle submodules in module compilation
* clang format
* code backup
* clang format
* code backup
* clang format
* fix a bug related to literal id
* fix a bug in gpu execution
* change the way of compiling a graph
* clang format
* backup more changes
* clang format
* refine pass log information
* remove unnecessary code
* clang format
* temp changes backup
* clang format
* add module name prefix to scratch memory id in hip_memory_allocation
* clang format
* change to copy the cond input by inserting a copy instruction
* clang format
* change to use the if output argument as the submodule output so can remove a gpu_copy
* clang format
* consider submodule in some compile passes
* clang format
* fix review comments
* clang format
* fix issues related to scratch memory
* clang format
* remove unnecessary code
* fix cppcheck error
* clang format
* reslove the implicit dependencies issue related to submodule
* clang format
* fix cppcheck error
* clang format
* backup temp changes
* clang format
* fixed an bug in the has_instruction function
* clang format
* fix the return value of the gpu implementation of the if operator
* fix a bug in the compute_shape function in the gpu implementation
* add an if onnx unit test
* clang format
* add more unit tests
* clang format
* tmp code backup
* clang format
* fix a sync problem related to copy cond argument from gpu to cpu
* clang format
* change the compile offload copy flag setting
* clang format
* enable copy from cpu to be able to do synchronous copy
* clang format
* add more unit tests
* add more unit tests
* add more ref unit tests
* clang format
* fixed a bug error
* tmp code backup
* clang format
* fixed an onnx verify unit test
* add more unit tests
* clang format
* reverse a change
* fix cppcheck error
* fix cppcheck error
* fix to print all instructions in program execution
* clang format
* fix bugs related to memory coloring and offload copy to be true
* clang format
* remove unnecessary include header file
* sort test cases in ref_cpu_ops alphabetically
* clang format
* add a flag to disable cpu target in verification test
* change the way to disable some tests
* clang format
* disable verify unit test of the if operators
* add a function call to have more code coverage
* fix a build error
* fix review comments
* fix review comments
* clang format
* add a api gpu unit test for more code coverage
* clang format
* change to use instruction.size() as node index
* move the calc_implicit_deps function to module class as a member function
* clang format
* move the offload_copy flag setting to lowering
* clang format
* assign the module_eval lambda function to a variable to simplify code
* clang format
* move the compute function from ref/gpu implementation to the main if operator
* clang format
* fix cpp check error
* add a unit test for more code coverage
* clang format
* add unit test to calculate implicit deps
* add a python unit test
* clang format
* refine a unit test to have more code coverage
* clang format
* chang the way of wrap up arguments for sub modules
* clang format
* fix some build errors
* code cleanup
* refine unit tests to have more code coverage
* clang format
* refine unit test to have more code coverage
* code backup
* clang format
* add memory coloring test
* refine memory coloring unit test
* clang format
* remove an unnecessary line
* remove an unused line
* remove an unnecessary parameter in the lambda function
* clang format
* refine a unit test
* remove an unnecessary line
* refine unit tests to have more code coverage
* clang format
* combine two lines
* add one more unit test for more code coverage
* clang format
* add one more unit test
* clang format
* fix review comments
* refine a print out information
* fix review comments
* clang format
* change the sync copy to using a gpu device sync
* clang format
* remove unnecessary code
Co-authored-by:
mvermeulen <5479696+mvermeulen@users.noreply.github.com>
Showing
src/targets/gpu/include/migraphx/gpu/hip.hpp
100755 → 100644
File added
File added
File added
test/onnx/if_param_test.onnx
0 → 100644
File added
test/onnx/if_pl_test.onnx
0 → 100644
File added
This diff is collapsed.
Please register or sign in to comment