-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'amd-develop' into amd-master
Change-Id: I81429e5f3f55a71498da6cece9d08a8b1c170057
- Loading branch information
Showing
10 changed files
with
1,309 additions
and
754 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
#usage : hipconvertinplace.sh DIRNAME [hipify options] [--] [clang options] | ||
|
||
#hipify "inplace" all code files in specified directory. | ||
# This can be quite handy when dealing with an existing CUDA code base since the script | ||
# preserves the existing directory structure. | ||
|
||
SCRIPT_DIR=`dirname $0` | ||
SEARCH_DIR=$1 | ||
|
||
hipify_args='' | ||
while (( "$#" )); do | ||
shift | ||
if [ "$1" != "--" ]; then | ||
hipify_args="$hipify_args $1" | ||
else | ||
shift | ||
break | ||
fi | ||
done | ||
clang_args="$@" | ||
|
||
$SCRIPT_DIR/hipify-clang -inplace -print-stats $hipify_args `$SCRIPT_DIR/findcode.sh $SEARCH_DIR` -- -x cuda $clang_args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
#usage : hipexamine2.sh DIRNAME [hipify options] [--] [clang options] | ||
|
||
# Generate CUDA->HIP conversion statistics for all the code files in the specified directory. | ||
|
||
SCRIPT_DIR=`dirname $0` | ||
SEARCH_DIR=$1 | ||
|
||
hipify_args='' | ||
while (( "$#" )); do | ||
shift | ||
if [ "$1" != "--" ]; then | ||
hipify_args="$hipify_args $1" | ||
else | ||
shift | ||
break | ||
fi | ||
done | ||
clang_args="$@" | ||
|
||
$SCRIPT_DIR/hipify-clang -examine $hipify_args `$SCRIPT_DIR/findcode.sh $SEARCH_DIR` -- -x cuda $clang_args |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,15 @@ install(FILES @hip_SOURCE_DIR@/src/hip_ir.ll DESTINATION lib) | |
############################# | ||
set(CPACK_SET_DESTDIR TRUE) | ||
set(CPACK_INSTALL_PREFIX "/opt/rocm/hip") | ||
set(CPACK_PACKAGE_NAME "hip_hcc") | ||
if(@HCC_VERSION_MAJOR@ EQUAL 0) | ||
set(CPACK_PACKAGE_NAME "hip_hcc") | ||
set(HCC_PACKAGE_NAME "hcc_lc") | ||
set(HIP_PACKAGE_CONFLICTS "hip_hcc_exp") | ||
else() | ||
set(CPACK_PACKAGE_NAME "hip_hcc_exp") | ||
set(HCC_PACKAGE_NAME "hcc") | ||
set(HIP_PACKAGE_CONFLICTS "hip_hcc") | ||
endif() | ||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "HIP: Heterogenous-computing Interface for Portability [HCC]") | ||
set(CPACK_PACKAGE_VENDOR "Advanced Micro Devices, Inc.") | ||
set(CPACK_PACKAGE_CONTACT "Maneesh Gupta <[email protected]>") | ||
|
@@ -25,19 +33,22 @@ set(CPACK_GENERATOR "TGZ;DEB;RPM") | |
set(CPACK_BINARY_DEB "ON") | ||
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${PROJECT_BINARY_DIR}/postinst;${PROJECT_BINARY_DIR}/prerm") | ||
if(@COMPILE_HIP_ATP_MARKER@) | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "hip_base (= ${CPACK_PACKAGE_VERSION}), hcc_lc (= @HCC_PACKAGE_VERSION@), rocm-profiler") | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "hip_base (= ${CPACK_PACKAGE_VERSION}), ${HCC_PACKAGE_NAME} (= @HCC_PACKAGE_VERSION@), rocm-profiler") | ||
else() | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "hip_base (= ${CPACK_PACKAGE_VERSION}), hcc_lc (= @HCC_PACKAGE_VERSION@)") | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "hip_base (= ${CPACK_PACKAGE_VERSION}), ${HCC_PACKAGE_NAME} (= @HCC_PACKAGE_VERSION@)") | ||
endif() | ||
set(CPACK_DEBIAN_PACKAGE_CONFLICTS ${HIP_PACKAGE_CONFLICTS}) | ||
set(CPACK_DEBIAN_PACKAGE_REPLACES ${HIP_PACKAGE_CONFLICTS}) | ||
set(CPACK_BINARY_RPM "ON") | ||
set(CPACK_RPM_PACKAGE_ARCHITECTURE "x86_64") | ||
set(CPACK_RPM_POST_INSTALL_SCRIPT_FILE "${PROJECT_BINARY_DIR}/postinst") | ||
set(CPACK_RPM_PRE_UNINSTALL_SCRIPT_FILE "${PROJECT_BINARY_DIR}/prerm") | ||
set(CPACK_RPM_PACKAGE_AUTOREQPROV " no") | ||
set(CPACK_RPM_PACKAGE_REQUIRES_PREUN ${HIP_PACKAGE_CONFLICTS}) | ||
if(@COMPILE_HIP_ATP_MARKER@) | ||
set(CPACK_RPM_PACKAGE_REQUIRES "hip_base = ${CPACK_PACKAGE_VERSION}, hcc_lc = @HCC_PACKAGE_VERSION@, rocm-profiler") | ||
set(CPACK_RPM_PACKAGE_REQUIRES "hip_base = ${CPACK_PACKAGE_VERSION}, ${HCC_PACKAGE_NAME} = @HCC_PACKAGE_VERSION@, rocm-profiler") | ||
else() | ||
set(CPACK_RPM_PACKAGE_REQUIRES "hip_base = ${CPACK_PACKAGE_VERSION}, hcc_lc = @HCC_PACKAGE_VERSION@") | ||
set(CPACK_RPM_PACKAGE_REQUIRES "hip_base = ${CPACK_PACKAGE_VERSION}, ${HCC_PACKAGE_NAME} = @HCC_PACKAGE_VERSION@") | ||
endif() | ||
set(CPACK_SOURCE_GENERATOR "TGZ") | ||
include(CPack) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters