Rename hosttrace to omnitrace (#18)

Этот коммит содержится в:
Jonathan R. Madsen
2021-11-24 04:59:59 -06:00
коммит произвёл GitHub
родитель 752424efc2
Коммит 39cf760a4e
46 изменённых файлов: 906 добавлений и 830 удалений
+8 -7
Просмотреть файл
@@ -1,14 +1,15 @@
#!/bin/bash
VERSION=0.0.3
ROCM_VERSION=4.3.0
: ${VERSION:=0.0.3}
: ${ROCM_VERSION:=4.3.0}
: ${NJOBS:=8}
STANDARD_ARGS="-DCPACK_GENERATOR=STGZ -DCMAKE_BUILD_TYPE=Release -DHOSTTRACE_BUILD_DYNINST=ON -DTIMEMORY_BUILD_PORTABLE=ON"
STANDARD_ARGS="-DCPACK_GENERATOR=STGZ -DCMAKE_BUILD_TYPE=Release -DOMNITRACE_BUILD_DYNINST=ON -DTIMEMORY_BUILD_PORTABLE=ON"
cmake -B build-release/core ${STANDARD_ARGS} -DDYNINST_BUILD_{TBB,BOOST,ELFUTILS,LIBIBERTY}=ON -DDYNINST_USE_OpenMP=OFF -DHOSTTRACE_USE_MPI_HEADERS=ON -DHOSTTRACE_USE_ROCTRACER=OFF .
cmake -B build-release/core ${STANDARD_ARGS} -DDYNINST_BUILD_{TBB,BOOST,ELFUTILS,LIBIBERTY}=ON -DDYNINST_USE_OpenMP=OFF -DOMNITRACE_USE_MPI_HEADERS=ON -DOMNITRACE_USE_ROCTRACER=OFF -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF -DOMNITRACE_MAX_THREADS=2048 .
cmake --build build-release/core --target package --parallel 8
cp build-release/core/hosttrace-${VERSION}-Linux.sh build-release/hosttrace-${VERSION}-Linux.sh
cp build-release/core/omnitrace-${VERSION}-Linux.sh build-release/omnitrace-${VERSION}-Linux.sh
cmake -B build-release/rocm-mpi ${STANDARD_ARGS} -DDYNINST_BUILD_{TBB,BOOST,ELFUTILS,LIBIBERTY}=ON -DDYNINST_USE_OpenMP=ON -DHOSTTRACE_USE_MPI_HEADERS=ON -DHOSTTRACE_USE_ROCTRACER=ON .
cmake -B build-release/rocm-mpi ${STANDARD_ARGS} -DDYNINST_BUILD_{TBB,BOOST,ELFUTILS,LIBIBERTY}=ON -DDYNINST_USE_OpenMP=ON -DOMNITRACE_USE_MPI_HEADERS=ON -DOMNITRACE_USE_ROCTRACER=ON -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF -DOMNITRACE_MAX_THREADS=2048 .
cmake --build build-release/rocm-mpi --target package --parallel 8
cp build-release/rocm-mpi/hosttrace-${VERSION}-Linux.sh build-release/hosttrace-${VERSION}-Linux-ROCm-${ROCM_VERSION}.sh
cp build-release/rocm-mpi/omnitrace-${VERSION}-Linux.sh build-release/omnitrace-${VERSION}-Linux-ROCm-${ROCM_VERSION}.sh
Просмотреть файл
+16 -16
Просмотреть файл
@@ -1,7 +1,7 @@
#!/bin/bash -e
#
# This script allows CMAKE_CXX_COMPILER to be a standard
# C++ compiler and hosttrace sets RULE_LAUNCH_COMPILE and
# C++ compiler and omnitrace sets RULE_LAUNCH_COMPILE and
# RULE_LAUNCH_LINK in CMake so that all compiler and link
# commands are prefixed with this script followed by the
# C++ compiler. Thus if $1 == $2 then we know the command
@@ -15,24 +15,24 @@
# emit a message about the underlying command executed
: ${DEBUG:=0}
: ${HOSTTRACE_DEBUG_LAUNCH_COMPILER:=${DEBUG}}
: ${OMNITRACE_DEBUG_LAUNCH_COMPILER:=${DEBUG}}
debug-message()
{
if [ "${HOSTTRACE_DEBUG_LAUNCH_COMPILER}" -ne 0 ]; then
if [ "${OMNITRACE_DEBUG_LAUNCH_COMPILER}" -ne 0 ]; then
echo -e "##### $(basename ${BASH_SOURCE[0]}) executing: \"$@\"... #####"
fi
}
# if hosttrace compiler is not passed, someone is probably trying to invoke it directly
# if omnitrace compiler is not passed, someone is probably trying to invoke it directly
if [ -z "${1}" ]; then
echo -e "\n${BASH_SOURCE[0]} was invoked without the hosttrace compiler as the first argument."
echo -e "\n${BASH_SOURCE[0]} was invoked without the omnitrace compiler as the first argument."
echo "This script is not indended to be directly invoked by any mechanism other"
echo -e "than through a RULE_LAUNCH_COMPILE or RULE_LAUNCH_LINK property set in CMake.\n"
exit 1
fi
# if hosttrace compiler is not passed, someone is probably trying to invoke it directly
# if omnitrace compiler is not passed, someone is probably trying to invoke it directly
if [ -z "${2}" ]; then
echo -e "\n${BASH_SOURCE[0]} was invoked without the C++ compiler as the second argument."
echo "This script is not indended to be directly invoked by any mechanism other"
@@ -43,10 +43,10 @@ fi
# if there aren't two args, this isn't necessarily invalid, just a bit strange
if [ -z "${3}" ]; then exit 0; fi
# store the hosttrace compiler
HOSTTRACE_COMPILER=${1}
# store the omnitrace compiler
OMNITRACE_COMPILER=${1}
# remove the hosttrace compiler from the arguments
# remove the omnitrace compiler from the arguments
shift
# store the expected C++ compiler
@@ -57,19 +57,19 @@ shift
if [[ "${CXX_COMPILER}" != "${1}" ]]; then
debug-message $@
# the command does not depend on hosttrace so just execute the command w/o re-directing to ${HOSTTRACE_COMPILER}
# the command does not depend on omnitrace so just execute the command w/o re-directing to ${OMNITRACE_COMPILER}
eval $@
else
# the executable is the C++ compiler, so we need to re-direct to ${HOSTTRACE_COMPILER}
if [ ! -f "${HOSTTRACE_COMPILER}" ]; then
echo -e "\nError: the compiler redirect for hosttrace was not found at ${HOSTTRACE_COMPILER}\n"
# the executable is the C++ compiler, so we need to re-direct to ${OMNITRACE_COMPILER}
if [ ! -f "${OMNITRACE_COMPILER}" ]; then
echo -e "\nError: the compiler redirect for omnitrace was not found at ${OMNITRACE_COMPILER}\n"
exit 1
fi
# discard the compiler from the command
shift
debug-message ${HOSTTRACE_COMPILER} $@
# execute ${HOSTTRACE_COMPILER} (again, usually nvcc_wrapper)
${HOSTTRACE_COMPILER} $@
debug-message ${OMNITRACE_COMPILER} $@
# execute ${OMNITRACE_COMPILER} (again, usually nvcc_wrapper)
${OMNITRACE_COMPILER} $@
fi