diff --git a/CMakeLists.txt b/CMakeLists.txt index ece7ac28aee..864b9187d26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -498,12 +498,6 @@ add_subdirectory(amp-conformance) add_subdirectory(stl-test) add_subdirectory(cmake-tests) -# create a "hcc" symlink in the include directory -# that points to itself so we could support -# include and include -execute_process(COMMAND ln -sf ../include hcc - WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/include) - # create documentation configure_file( ${PROJECT_SOURCE_DIR}/lib/doxygen_config.in diff --git a/Jenkinsfile b/Jenkinsfile index 6ae6af36a76..bcfbdc88c3c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,14 +25,13 @@ node ('rocmtest') // The client workspace is shared with the docker container stage('HCC Checkout') { - deleteDir( ) - checkout scm - - // list the commit hash of the submodules - sh 'git ls-tree HEAD | grep commit' - - // clone the submodules - sh 'git submodule update --init' + checkout([ + $class: 'GitSCM', + branches: scm.branches, + doGenerateSubmoduleConfigurations: scm.doGenerateSubmoduleConfigurations, + extensions: scm.extensions + [[$class: 'CleanCheckout'], [$class: 'SubmoduleOption', disableSubmodules: false, parentCredentials: false, recursiveSubmodules: true, reference: '', trackingSubmodules: false]], + userRemoteConfigs: scm.userRemoteConfigs + ]) } def hcc_build_image = null diff --git a/clang b/clang index 60159f4c88e..b073404fb8e 160000 --- a/clang +++ b/clang @@ -1 +1 @@ -Subproject commit 60159f4c88ed72f5c77f4d21caf4814fbfb6439c +Subproject commit b073404fb8ecfc80aae2b33a09eaba02835df01d diff --git a/compiler b/compiler index f809e34c906..3b9fdfb79ee 160000 --- a/compiler +++ b/compiler @@ -1 +1 @@ -Subproject commit f809e34c906b467cebff772333c6faff79620f4d +Subproject commit 3b9fdfb79eebc424d06cad37a471fcc98bfe4d8d diff --git a/compiler-rt b/compiler-rt index bd6798dc833..0acb38fc338 160000 --- a/compiler-rt +++ b/compiler-rt @@ -1 +1 @@ -Subproject commit bd6798dc833203428fc92bee091441bef656b8f7 +Subproject commit 0acb38fc3385a48dcdf066a9361855a3977758d6 diff --git a/hcc_config/hcc_config.cpp b/hcc_config/hcc_config.cpp index 9c2cd5c97bd..1c9600e2ca8 100644 --- a/hcc_config/hcc_config.cpp +++ b/hcc_config/hcc_config.cpp @@ -114,6 +114,7 @@ void cxxflags(void) { std::cout << " -I" << p << "/include"; } else { std::cout << " -I" << get_path(path_hcc_include); + std::cout << " -I" << CMAKE_ROCM_ROOT << "/include"; } } else { assert(0 && "Unreacheable!"); diff --git a/hcc_config/hcc_config.hxx.in b/hcc_config/hcc_config.hxx.in index 6df8de9d68f..14f5553533a 100644 --- a/hcc_config/hcc_config.hxx.in +++ b/hcc_config/hcc_config.hxx.in @@ -5,4 +5,6 @@ #define CMAKE_INSTALL_LIB "@CMAKE_INSTALL_LIBDIR@" +#define CMAKE_ROCM_ROOT "@ROCM_ROOT@" + #define CMAKE_GTEST_INC_DIR "@PROJECT_SOURCE_DIR@/utils" diff --git a/lib/hsa/mcwamp_hsa.cpp b/lib/hsa/mcwamp_hsa.cpp index eb58959a545..5eb4c5baa5b 100644 --- a/lib/hsa/mcwamp_hsa.cpp +++ b/lib/hsa/mcwamp_hsa.cpp @@ -30,8 +30,8 @@ #include #include -#include -#include +#include "kalmar_runtime.h" +#include "kalmar_aligned_alloc.h" #include diff --git a/lld b/lld index c87931a5ee5..9475225793f 160000 --- a/lld +++ b/lld @@ -1 +1 @@ -Subproject commit c87931a5ee529e8d01b770e8f3e932a4c078c870 +Subproject commit 9475225793f1753f3cb498df5a6dc086d537ce77 diff --git a/packaging/debian/postinst.in b/packaging/debian/postinst.in index d144f1ecf5e..7b9946387b7 100755 --- a/packaging/debian/postinst.in +++ b/packaging/debian/postinst.in @@ -25,10 +25,6 @@ SOFTLINKS=( do_softlinks() { - if [ ! -e $INSTALL_PATH/include/hcc ] ; then - ln -sf $INSTALL_PATH/include $INSTALL_PATH/include/hcc - fi - if [ $PACKAGE_NAME == "hcc_hsail" ] && [ -L "$ROCM_PATH/hcc" ] && [ $(readlink -f $ROCM_PATH/hcc) == "$ROCM_PATH/hcc-lc" ] ; then return fi