1. 15 Sep, 2018 1 commit
  2. 13 Sep, 2018 1 commit
    • Nick Korovaiko's avatar
      Control dependencies (#1445) · 58f9af01
      Nick Korovaiko authored
      * topological sort with cdeps
      
      * add control deps API, fix unit tests
      
      * rollback adjoints changes
      
      * fix test failures,add more tests
      
      * remove dead code
      
      * address scott's feedback
      58f9af01
  3. 07 Sep, 2018 1 commit
  4. 06 Sep, 2018 1 commit
  5. 30 Aug, 2018 1 commit
  6. 24 Aug, 2018 1 commit
  7. 22 Aug, 2018 1 commit
  8. 21 Aug, 2018 1 commit
    • Robert Kimball's avatar
      Statically link cpu backend into ngraph shared library (#1444) · 5ab5a129
      Robert Kimball authored
      * static link cpu library to ngraph
      
      * remove debug
      
      * link ngraph and cpu backend into a single shared object
      
      * add -fPIC and whole-archive for CPU backend
      
      * Added conditional for --whole-archive for Mac OS.
      
      * Added more conditonal for MacOS.
      
      * fix linking problem and unit test failures caused by multiple copies of the same function in CPU backend and INTERPRETER
      
      * fix nbench build
      
      * add nbench to unit test build
      
      * add version number to libngraph
      5ab5a129
  9. 17 Aug, 2018 1 commit
    • Jayaram Bobba's avatar
      Enable DEX only build of ngraph (#1424) · 64ac3775
      Jayaram Bobba authored
      * Optionally get rid of codegen from the CPU backend
      
      * Rename option variable
      
      * Merge fixes
      
      * Merge
      
      * Remove extra changes
      
      * remove dex only exclusions (#1429)
      
      * Unconditionally pick  m_direct_execution if NGRAPH_DEX_ONLY
      
      * Style fix
      64ac3775
  10. 12 Aug, 2018 1 commit
  11. 11 Aug, 2018 1 commit
  12. 10 Aug, 2018 1 commit
  13. 27 Jul, 2018 1 commit
    • Adam Procter's avatar
      Add some convenience macros/classes for error messages (#1258) · deacf29a
      Adam Procter authored
      * Testing out some ideas for better error messages on AvgPool
      
      * Add uncaught_exception() check to ConstructionAssertLogger dtor
      
      * More general assertion class, not homed inside Node
      
      * Minor formatting change
      
      * NODE_ASSERT for type prop failure
      
      * Produce lighter-weight DummyAssertionHandler when assertion succeeds
      
      * New ctor for AssertionHelper that takes a single location arg; more const&-ness for the constructors
      
      * Remove move constructor for AssertionHelper; fix broken test in assertion.cpp
      
      * Miscellaneous improvements
      
      * Templatized AssertionHelper so different exception classes can be used; implemented TYPE_CHECK_ASSERT around this
      * Changed from a "stack" of locations to a single location (the stack was too complicated)
      * Added "FAIL" classes/macros which do not take a condition
      
      * Rename a helper function
      
      * Cleanup, cruft removal
      
      * Add test to make sure the assert helper has the lifetime we expect
      
      * Missing includes
      deacf29a
  14. 14 Jul, 2018 1 commit
  15. 21 Jun, 2018 1 commit
    • Adam Straw's avatar
      Constant folding for Reshapes (#1130) · b9a77a9d
      Adam Straw authored
      * adding constant propagation pass
      
      * adding test/constant_propagation.cpp
      
      * template make_constant_reshape function
      
      * code review feedback
      
      * add missing files
      b9a77a9d
  16. 19 Jun, 2018 1 commit
    • Robert Kimball's avatar
      Bob/cmake (#1118) · 4847b2de
      Robert Kimball authored
      * fix mkldnn rpath
      
      * fix compile warning
      
      * close backends when exiting
      
      * set backend output directory of backends to the ngraph output directory
      
      * Aprocter/patch patch (#1119)
      
      * Move more rpath stuff inside if(NOT APPLE)
      
      * fix repatch problem with mkldnn library
      
      * add updated patch command for older versions of cmake
      4847b2de
  17. 13 Jun, 2018 1 commit
  18. 04 Jun, 2018 1 commit
    • Robert Kimball's avatar
      Modernize cmake usage (#1032) · eef750df
      Robert Kimball authored
      * Update cmake files to more modern approach
      
      * disable building libraries that are not required
      
      * handle more build cases
      
      * add versions to backend libs. add start of package target.
      
      * add create_backend to backends
      
      * temporary workaround to tbb not linking correctly with gcc
      
      * install codegen lib
      
      * force tbb to link to the cpu backend so that it is available for codegen
      
      * fix clang build error
      
      * fix warning for codegen build
      
      * update cuda header paths
      
      * change error message for opening backend shared library
      
      * set lib path
      eef750df
  19. 02 Jun, 2018 1 commit
  20. 29 May, 2018 1 commit
    • Chris Sullivan's avatar
      [CS:GPU::Part 1] Add GPUShape type, conversion operators, and generalized shape helpers. (#1031) · d051f5fa
      Chris Sullivan authored
      * Added GPUShape and reworked Shape helpers to be
      compatible with different shape types.
      Shape is now implicitly convertable to GPUShape.
      
      * Updated shape helpers signature and add conversion operators/constructors for GPUShape.
      
      * Adjust row_major_strides to avoid reversed-copy.
      
      * Moved declaration out of loop for clang.
      
      * Moved gpu_shape to gpu transformer.
      
      * Removed no longer necessary headers.
      
      * Added stdexcept header to gpu_shape.hpp
      
      * Changed check on 64bit shape to check if high bits are set.
      
      * Added spacing between functions in GPUShape and boolean operators in shape.hpp.
      
      * Template parameters are UPPER_SNAKE_CASE.
      
      * Return type of shape_size should be large enough to encapsulate the full stride of the tensor.
      This should be 64bits wide regardless of the underlying value_type of the ShapeType.
      
      * [CS:GPU::Part 2] Add GPUMemoryManager, GPUAllocator, and memory primitives. (#1034)
      
      This is a big PR which introduces the GPUMemoryManager, GPUAllocator, and the concept of memory primitives.
      
      A memory primitive is a closure which yields the device memory address for a reserved memory space. When a memory reservation is made, the request is recorded along with the data that should be copied (for kernel arguments, but not for workspace memory). The reservation does not yield an address eagerly but instead does so lazily by returning an index which can be used to look up the memory_primitive at runtime. This allows the GPUMemoryManager to delay resolution of the memory address until all reservations have been made. 
      
      Ideally, the temporary allocations needed by each kernel could be captured by the liveness lists in the GPU_External_Function. This way the pass::MemoryManager would capture these allocations along with the needed tensor allocations.
      
      For now, rather than rearchitect the gpu_emitter and external function, we utilize the GPUMemoryManager, which maintains its own internal pass::MemoryManager, and the GPUAllocator. Liveness is handled by the GPUAllocator: all workspace allocation/reservations created in the same (or sub)scope as the GPUAllocator will persist until the GPUAllocator goes out of scope and deconstructs. At that time, the GPUAllocator will mark the requested temporary buffers as free, and their liveness will be removed (effectively). That way the next kernels that construct a GPUAllocator can reuse the workspace memory that was needed for previous kernels.
      
      Additional notes:
      * This PR updates the CUDAEmitter to exclusively utilize GPUShape instead of Shape.
      
         Commits:
         * Added GPUMemoryManager for aggregating memory allocations and copies into a single operation for kernel arguments, and a reusuable memory space for workspace allocations.
      
         * Added GPUShape and reworked Shape helpers to be
      compatible with different shape types.
      
        * Removed several unecessary static_casts now that GPUShape is utilized. GPUTensorViewWrapper had a few functions returning std::vector<size_t> instead of Shape/Strides. These were updated as well to take advantage of GPUShape convertion operators.
      
         * Coordinate->GPUShape
      
         * Refactored replace_slice into CudaKernelBuilder. Simplified allocations using new GPUAllocator and GPUMemoryManager.
      
        * Refactor allocations to make use of primitive emitter. Now memory primitives are registered at compile time and the gpu memory address is resolved at runtime by invoking the primitive.
      
         * Added const qualifier to data being copied in GPUAllocator::reserve_argspace
      
         * Removed more replace_slice diffs.
      
         * Added unit tests for GPUMemoryManager and added checks that ensure the
      device memory is allocated prior to address resolution by the memory_primitives.
      Also exposed the allocation size of the memory manager.
      
         * Added explicit function for queueing kernel argument data rather than inline in the reservation function per @fengleitian recommendation.
      
      [CS:GPU::Part 3] Refactoring of several ops to use GPUMemoryManager (#1035)
      
      This PR implements the new GPUMemoryManager and allocator for all the ops which were previously implemented but required allocations and copies for kernel arguments at runtime. 
      
      Limitations:
      The convolution workspaces could not be added because the relevant descriptors were not available at compile time due to the codegen. If convolution is later added to the CUDNN emitter, the GPUAllocator can be used to avoid workspace allocation at runtime.
      
         Commits:
         * Replaced runtime host to device memcpys with GPUAllocator reservations in order to move them to compile time.
      
         * Forgot to remove no longer necessary buffer freeing from op emitters.
      
      [CS:GPU::Part4] Added op::ReplaceSlice and enabled respective tests. (#999)
      
      This PR implements ReplaceSlice using the coordinate transformation strategy. A thread for each tensor element of the input tensor is chosen and it's position in the source tensor coordinate system is calculated. If it is within the source slice, the source is loaded and written out, otherwise the input tensor is loaded. 
      
      * Relevant tests are enabled.
      
      * This op was refactored to utilize the new GPUAllocator and memory manager.
      
         Commits: 
      
         * Updated replace_slice op to utilize GPUShape and GPUMemoryManager.
      
         * Added back missing changes after timeline resolution.
      
      * Fixed clang warnings and bug. The cudnn_handle was not initialized ahead of emission time and so any eager cudnn calls would fail.
      To fix this, the cudnn and cublas handle creation was moved to the external function constructor.
      
      * Changed row_major_strides to always return vector<size_t> to avoid overflow for tensors with many dimensions. Handle the conversion to 32 bits for GPU shapes with an explicit conversion constructor from vector<size_t>.
      
      * During merge the allocation line from external_function was left out. Adding it back.
      d051f5fa
  21. 14 May, 2018 1 commit
  22. 11 May, 2018 1 commit
  23. 10 May, 2018 2 commits
  24. 09 May, 2018 1 commit
  25. 07 May, 2018 1 commit
  26. 28 Apr, 2018 1 commit
  27. 26 Apr, 2018 1 commit
  28. 25 Apr, 2018 1 commit
  29. 24 Apr, 2018 1 commit
  30. 21 Apr, 2018 1 commit
    • Adam Straw's avatar
      Add Inference Engine (IE) backend (#883) · 3d590dea
      Adam Straw authored
      * ie backend and manager with passing unit tests except for select/function
      
      * fix function_call and select
      
      * simplify implemenation by removing support for convert and select
      
      * remove manager
      3d590dea
  31. 20 Apr, 2018 1 commit
  32. 10 Apr, 2018 1 commit
    • Nick Korovaiko's avatar
      Zero Dimension Tensor Elimination (#617) · 2d75f665
      Nick Korovaiko authored
      *  zero dimension tensor elimination init
      
      * more ops + refactor + tests
      
      * revert pattern.cpp
      
      * add internal zero-length test
      
      * address Scott's feedback
      
      * fix comp errors
      
      * proper static init
      
      * get rid of unique-ptr
      
      * refactor hashmap into virtual get_default_values on op classes
      
      * fix formatting
      2d75f665
  33. 09 Apr, 2018 1 commit
    • Robert Kimball's avatar
      New backend/transformer API (#739) · 777600c6
      Robert Kimball authored
      * force backend compile() to make a copy of the graph
      
      fix copy_with_new_args on ops that have function pointers internal
      
      update unit test for new backend API
      
      add unit test for multiple simulataneous backends
      
      * move get_subdevices virtual method to Manager class
      
      * update GPU to latest
      
      * update call methods
      
      * add remove_compiled_function()
      777600c6
  34. 29 Mar, 2018 1 commit
  35. 28 Mar, 2018 1 commit
  36. 26 Mar, 2018 1 commit
  37. 22 Mar, 2018 1 commit
  38. 20 Mar, 2018 1 commit
    • Sandeep's avatar
      rename to nnp (#688) · bb831262
      Sandeep authored
      * topolotical-sort based node clustering
      
      * cmake builds
      
      * Argon manager renamed to NNP along with placement
      
      * nnp dir cmake changes
      
      * tests pass
      
      * more renames
      
      * somemore renames
      
      * reslove redefination
      
      * revert to ARGON_API
      
      * more PR comments and remove nnp-fusion tests as redundant
      
      * update path
      
      * fix format
      bb831262
  39. 14 Mar, 2018 1 commit
    • Robert Kimball's avatar
      Yet another serialization option (#619) · 28602f31
      Robert Kimball authored
      * Add cpio file read/write class and unit tests
      
      add reserializer
      
      Add unit test for serialize constants to cpio file. Fix bug in serializer if function has no parameters.
      28602f31