Unverified Commit d8587872 authored by Robert Kimball's avatar Robert Kimball Committed by GitHub

add checks that allow GPU to be build without CPU (#1627)

parent 5c9e481d
...@@ -408,9 +408,15 @@ void codegen::CompilerCore::configure_search_path() ...@@ -408,9 +408,15 @@ void codegen::CompilerCore::configure_search_path()
#endif #endif
#if defined(__APPLE__) #if defined(__APPLE__)
#ifdef EIGEN_HEADERS_PATH
add_header_search_path(EIGEN_HEADERS_PATH); add_header_search_path(EIGEN_HEADERS_PATH);
#endif
#ifdef MKLDNN_HEADERS_PATH
add_header_search_path(MKLDNN_HEADERS_PATH); add_header_search_path(MKLDNN_HEADERS_PATH);
#endif
#ifdef TBB_HEADERS_PATH
add_header_search_path(TBB_HEADERS_PATH); add_header_search_path(TBB_HEADERS_PATH);
#endif
add_header_search_path(NGRAPH_HEADERS_PATH); add_header_search_path(NGRAPH_HEADERS_PATH);
add_header_search_path(CLANG_BUILTIN_HEADERS_PATH); add_header_search_path(CLANG_BUILTIN_HEADERS_PATH);
...@@ -422,9 +428,15 @@ void codegen::CompilerCore::configure_search_path() ...@@ -422,9 +428,15 @@ void codegen::CompilerCore::configure_search_path()
// Instead of re-implementing all of that functionality in a custom toolchain // Instead of re-implementing all of that functionality in a custom toolchain
// just hardcode the paths relevant to frequently used build/test machines for now // just hardcode the paths relevant to frequently used build/test machines for now
add_header_search_path(CLANG_BUILTIN_HEADERS_PATH); add_header_search_path(CLANG_BUILTIN_HEADERS_PATH);
#ifdef EIGEN_HEADERS_PATH
add_header_search_path(EIGEN_HEADERS_PATH); add_header_search_path(EIGEN_HEADERS_PATH);
#endif
#ifdef MKLDNN_HEADERS_PATH
add_header_search_path(MKLDNN_HEADERS_PATH); add_header_search_path(MKLDNN_HEADERS_PATH);
#endif
#ifdef TBB_HEADERS_PATH
add_header_search_path(TBB_HEADERS_PATH); add_header_search_path(TBB_HEADERS_PATH);
#endif
add_header_search_path(NGRAPH_HEADERS_PATH); add_header_search_path(NGRAPH_HEADERS_PATH);
string header_version = find_header_version("/usr/include/c++"); string header_version = find_header_version("/usr/include/c++");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment