Skip to content

Commit

Permalink
Merge pull request #2 from RadeonOpenCompute/clang_tot_upgrade
Browse files Browse the repository at this point in the history
Merge to fb80207
  • Loading branch information
aaronenyeshi authored Jun 15, 2017
2 parents 3c86177 + fb80207 commit 5e9b74d
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 24 deletions.
6 changes: 0 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 <hcc.hpp> and include<hcc/hcc.hpp>
execute_process(COMMAND ln -sf ../include hcc
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/include)

# create documentation
configure_file(
${PROJECT_SOURCE_DIR}/lib/doxygen_config.in
Expand Down
15 changes: 7 additions & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion clang
Submodule clang updated from 60159f to b07340
2 changes: 1 addition & 1 deletion compiler
2 changes: 1 addition & 1 deletion compiler-rt
1 change: 1 addition & 0 deletions hcc_config/hcc_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
Expand Down
2 changes: 2 additions & 0 deletions hcc_config/hcc_config.hxx.in
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions lib/hsa/mcwamp_hsa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
#include <hsa/amd_hsa_kernel_code.h>
#include <hsa/hsa_ven_amd_loader.h>

#include <hcc/kalmar_runtime.h>
#include <hcc/kalmar_aligned_alloc.h>
#include "kalmar_runtime.h"
#include "kalmar_aligned_alloc.h"

#include <hc_am.hpp>

Expand Down
2 changes: 1 addition & 1 deletion lld
Submodule lld updated from c87931 to 947522
4 changes: 0 additions & 4 deletions packaging/debian/postinst.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e9b74d

Please sign in to comment.