Rename hosttrace to omnitrace (#18)

This commit is contained in:
Jonathan R. Madsen
2021-11-24 04:59:59 -06:00
committed by GitHub
vanhempi 752424efc2
commit 39cf760a4e
46 muutettua tiedostoa jossa 906 lisäystä ja 830 poistoa
+1 -1
Näytä tiedosto
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(hosttrace-dyninst-examples LANGUAGES CXX)
project(omnitrace-dyninst-examples LANGUAGES CXX)
set(CMAKE_VISIBILITY_INLINES_HIDDEN OFF)
set(CMAKE_CXX_VISIBILITY_PRESET "default")
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(hosttrace-parallel-overhead LANGUAGES CXX)
project(omnitrace-parallel-overhead LANGUAGES CXX)
set(CMAKE_BUILD_TYPE "Release")
find_package(Threads REQUIRED)
+4 -4
Näytä tiedosto
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(hosttrace-transpose LANGUAGES CXX)
project(omnitrace-transpose LANGUAGES CXX)
find_program(HIPCC_EXECUTABLE NAMES hipcc)
@@ -17,8 +17,8 @@ endif()
add_executable(transpose transpose.cpp)
if(CMAKE_CXX_COMPILER_IS_CLANG AND TARGET hosttrace::hosttrace-compile-options)
target_link_libraries(transpose PRIVATE hosttrace::hosttrace-compile-options)
if(CMAKE_CXX_COMPILER_IS_CLANG AND TARGET omnitrace::omnitrace-compile-options)
target_link_libraries(transpose PRIVATE omnitrace::omnitrace-compile-options)
else()
target_compile_options(transpose PRIVATE -W -Wall)
endif()
@@ -34,6 +34,6 @@ if(NOT CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
if(NOT CMAKE_CXX_COMPILER_IS_HIPCC AND HIPCC_EXECUTABLE)
# defined in MacroUtilities.cmake
hosttrace_custom_compilation(COMPILER ${HIPCC_EXECUTABLE} TARGET transpose)
omnitrace_custom_compilation(COMPILER ${HIPCC_EXECUTABLE} TARGET transpose)
endif()
endif()
+3 -1
Näytä tiedosto
@@ -172,14 +172,16 @@ int
main(int argc, char** argv)
{
int rank = 0;
int size = 1;
int nthreads = 2;
if(argc > 1) nthreads = atoi(argv[1]);
#if defined(USE_MPI)
MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &size);
#endif
// this is a temporary workaround in hosttrace when HIP + MPI is enabled
// this is a temporary workaround in omnitrace when HIP + MPI is enabled
int ndevice = 0;
int devid = rank;
HIP_API_CALL(hipGetDeviceCount(&ndevice));