1. 31 May, 2019 1 commit
    • Sang Ik Lee's avatar
      Cleanup how compile flags are set and used by nGraph and external projects. (#2942) · 08dcd01b
      Sang Ik Lee authored
      * Cleanup how compile flags set and used by nGraph and external projects.
      Set C++11 through CMake and pass it down to external projects.
      Prefer CMake variables such as CMAKE_POSITION_INDEPENDENT_CODE and
      CMAKE_CXX_STANDARD instead of explicitly setting compiler dependent
      flags.
      Create json compilation database for external projects.
      CMAKE_CXX_FLAGS is used as common global options for nGraph and external
      projects.
      add_compile_options() is used for local options for current and sub
      directories.
      add_definitions() is used for setting definitions for current and sub
      directories.
      Note: Global options are not passed down to some external projects.
      Note: mkl-dnn resets CMAKE_CXX_FLAGS internally.
      Note: TBB and MLSL are not CMake based.
      Noet: Eigen and json is header only library.
      
      * Fix error.
      
      * Fix error. (second attempt)
      
      * Cleanup code.
      
      * Allow check for undefined macro.
      
      * Try to fix cldnn issue.
      
      * Set type for CMake arguments.
      
      * Pass C++ standard to protobuf.
      
      * Pass C++ standard down to TBB.
      
      * Change how Clang specific flags are handled.
      
      * Fix error.
      
      * Workaround for compile error on Baidu's PDPD docker.
      
      * Fix windows build error.
      Unverified
      08dcd01b
  2. 20 Apr, 2019 1 commit
    • Sang Ik Lee's avatar
      Fix install path on Windows (#2765) · 2257d9cf
      Sang Ik Lee authored
      * CMAKE_CFG_INTDIR does not work at install time. Use CMAKE_INSTALL_CONFIG_NAME on Windows.
      
      * Rename NGRAPH_*_INSTALLSRC_DIRECTORY to NGRAPH_*_INSTALL_SRC_DIRECTORY
      2257d9cf
  3. 27 Feb, 2019 1 commit
  4. 25 Feb, 2019 1 commit
    • Sang Ik Lee's avatar
      Update mkl-dnn build script. (#2487) · 65ac0e68
      Sang Ik Lee authored
      Update TBB build script for Windows.
      
      Fix typo.
      
      Fix incorrect omp lib name on Windows.
      
      Fix incorrect tbb.dll path on Windows.
      
      Make LIBRARY and ARCHIVE output directory consistent.
      
      Function missing on Windows.
      
      Update test::util::all_close() to fix compilation issue on Windows
      
      Export CPU_Executable on Windows.
      
      Change nbench path for unit-test on Windows.
      
      Change copy to copy_if_different.
      
      Install CPU backend on Windows.
      
      Disable tools test on Windows.
      
      Disable two failing unit test on Windows CPU.
      
      Fix incorrect CPU backend install path on Windows.
      65ac0e68
  5. 16 Feb, 2019 1 commit
  6. 15 Feb, 2019 2 commits
  7. 03 Jan, 2019 1 commit
  8. 07 Dec, 2018 1 commit
  9. 27 Oct, 2018 1 commit
  10. 24 Sep, 2018 1 commit
  11. 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
      Unverified
      eef750df
  12. 14 Feb, 2018 1 commit
    • Adam Procter's avatar
      CPU backend support on macOS (#492) · 9348da6d
      Adam Procter authored
      * Allow caching of external dependencies (everything but TBB, which I can't figure out yet)
      
      * Tweaks to get CPU backend building and linking (but not actually working) on macOS
      
      * Tweaks to codegen/CPU backend to enable macOS (no builtin headers yet)
      
      * Re-enable header caching stuff on macOS
      
      * Suppress unsupported compiler warning for Apple Clang
      
      * Fix includes for macOS compatibility
      9348da6d
  13. 09 Feb, 2018 1 commit
  14. 08 Feb, 2018 1 commit
  15. 05 Feb, 2018 1 commit
    • Adam Procter's avatar
      Compatibility fixes for gcc-4.8.5 and CentOS-7.4 (#444) · 8bccef1a
      Adam Procter authored
      (Squashing this commit but going to leave the full log here, unlike the way I usually do things)
      
      * Incremental work on compatibility with system requirements
      
      * Lower cmake version requirement so we can work with CentOS 7.4
      
      * Disambiguate isnan call (CentOS's compiler doesn't like it)
      
      * Make external_tbb conditional on NGRAPH_CPU_ENABLE
      
      * Make MKLDNN inclusion conditional on NGRAPH_CPU_ENABLE
      
      * Roll back desperation change to Ubuntu 14.04 binaries
      
      * De-revert copyright date change (arrgh)
      
      * Revert change of TBB's hard-coded compiler choice to gcc
      
      * Cleanup of modified CMake stuff
      
      * Add broken support for building LLVM from source
      
      * Explain modification to json.hpp required compiler version
      
      * Make TBB optional, and on by default. To disable, cmake -DNGRAPH_TBB_ENABLE=FALSE
      
      * Add reasonable default for LLVM's CMAKE_ASM_COMPILER so users don't have to specify it
      
      * Force TBB disabled if CMake is too old to build it (for CentOS)
      
      * Build LLVM OpenMP as external project
      
      * Tweak LLVM build options
      
      * Minor comment edit in cmake scripts
      
      * Workaround (fix?) for codegen crashes on CentOS
      
      * Add some header paths for CentOS to resource_generator; temporary(?) tweak to ignore nonexistent paths
      
      * Remove CMake compatibility figleaf since LLVM will require 3.1+ anyway
      
      * Fix the TBB-enable flag to default to on
      
      * Remove hard-coded choice of clang as tbb compiler
      
      * ln -s -> ln -sf in command to create link for OpenMP source dir
      
      * Make OpenMP build so it doesn't require symlink
      
      * Allow use of prebuilt LLVM if requested at cmake time
      
      * Some INSTALL instructions
      
      * Allow NGRAPH_USE_PREBUILT_LLVM to be set in environment variable
      
      * Tweak CI cmake options to use prebuilt LLVM
      
      * Remove debug messages
      
      * Rework defaulting behavior for LLVM_TARBALL_URL and LLVM_SHA1_HASH
      
      * Remove warning message for unavailable header file directories
      Unverified
      8bccef1a
  16. 28 Dec, 2017 1 commit
    • Jai Menon's avatar
      Build and execute TBB flow graphs in the CPU backend (#304) · c2c33748
      Jai Menon authored
      * CMake: TBB integration placeholder
      
      * CMake: Integrate TBB
      
      * CMake: Indent
      
      * CMake: Rewrite TBB integration
      
      * CMake: More TBB integration changes
      
      * CMake: Install TBB headers and DSOs
      
      * CMake: Don't install the TBB debug DSO
      
      * CMake: Propagate ngraph's configured compiler setting over to MKL-DNN
      
      * CMake: Restore TBB debug DSO installation
      
      * CMake: Add installed headers to search path.
      This needs to be cleaned up along with other header search cleanup
      
      * CPU: Build and execute TBB flowgraphs
      
      * CPU: TBB fixes
      
      * CPU: More TBB fixes
      
      * CPU: Allow both TBB and serial codegen for now
      
      * TBB: get_arguments -> get_input_ops
      
      * CPU: Use node methods
      
      * CPU: Add TBB headers in the build directory to the search path
      
      * TBB: Incorporate various changes from master
      
      * CMake: Indentation fix
      
      * CMake: Indentation fix
      
      * CMake: TBB is mandatory so remove additional predicates
      
      * TBB: Add a test
      
      * CMake: Fix linker flags with GCC
      c2c33748