Rename Omnitrace to ROCm Systems Profiler (#4)
The Omnitrace program is being renamed. Full name: "ROCm Systems Profiler" Package name: "rocprofiler-systems" Binary / Library names: "rocprof-sys-*" --------- Co-authored-by: Xuan Chen <xuchen@amd.com> Signed-off-by: David Galiffi <David.Galiffi@amd.com>
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
|
||||
|
||||
project(omnitrace-causal-example LANGUAGES CXX)
|
||||
project(rocprofiler-systems-causal-example LANGUAGES CXX)
|
||||
|
||||
if(OMNITRACE_DISABLE_EXAMPLES)
|
||||
if(ROCPROFSYS_DISABLE_EXAMPLES)
|
||||
get_filename_component(_DIR ${CMAKE_CURRENT_LIST_DIR} NAME)
|
||||
|
||||
if(${PROJECT_NAME} IN_LIST OMNITRACE_DISABLE_EXAMPLES OR ${_DIR} IN_LIST
|
||||
OMNITRACE_DISABLE_EXAMPLES)
|
||||
if(${PROJECT_NAME} IN_LIST ROCPROFSYS_DISABLE_EXAMPLES OR ${_DIR} IN_LIST
|
||||
ROCPROFSYS_DISABLE_EXAMPLES)
|
||||
return()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(CMAKE_BUILD_TYPE "Release")
|
||||
find_package(Threads REQUIRED)
|
||||
if(NOT TARGET omnitrace::omnitrace-user-library)
|
||||
find_package(omnitrace REQUIRED COMPONENTS user)
|
||||
if(NOT TARGET rocprofiler-systems::rocprofiler-systems-user-library)
|
||||
find_package(rocprofiler-systems REQUIRED COMPONENTS user)
|
||||
endif()
|
||||
|
||||
add_library(causal-interface-library INTERFACE)
|
||||
@@ -23,19 +23,19 @@ target_compile_options(causal-interface-library INTERFACE -g3 -gdwarf-3
|
||||
target_link_libraries(causal-interface-library INTERFACE Threads::Threads
|
||||
${CMAKE_DL_LIBS})
|
||||
|
||||
omnitrace_causal_example_executable(
|
||||
rocprofiler_systems_causal_example_executable(
|
||||
"causal-both"
|
||||
SOURCES causal.cpp impl.cpp
|
||||
LINK_LIBRARIES causal-interface-library
|
||||
DEFINITIONS USE_RNG=1 USE_CPU=1)
|
||||
|
||||
omnitrace_causal_example_executable(
|
||||
rocprofiler_systems_causal_example_executable(
|
||||
"causal-rng"
|
||||
SOURCES causal.cpp impl.cpp
|
||||
LINK_LIBRARIES causal-interface-library
|
||||
DEFINITIONS USE_RNG=1 USE_CPU=0)
|
||||
|
||||
omnitrace_causal_example_executable(
|
||||
rocprofiler_systems_causal_example_executable(
|
||||
"causal-cpu"
|
||||
SOURCES causal.cpp impl.cpp
|
||||
LINK_LIBRARIES causal-interface-library
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// MIT License
|
||||
//
|
||||
// Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved.
|
||||
// Copyright (c) 2022-2024 Advanced Micro Devices, Inc. All Rights Reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
@@ -27,11 +27,11 @@
|
||||
#define CAUSAL_LABEL __FILE__ ":" CAUSAL_STR(__LINE__)
|
||||
|
||||
#if defined(USE_OMNI) && USE_OMNI > 0
|
||||
# include <omnitrace/causal.h>
|
||||
# define CAUSAL_PROGRESS OMNITRACE_CAUSAL_PROGRESS
|
||||
# define CAUSAL_PROGRESS_NAMED(LABEL) OMNITRACE_CAUSAL_PROGRESS_NAMED(LABEL)
|
||||
# define CAUSAL_BEGIN(LABEL) OMNITRACE_CAUSAL_BEGIN(LABEL)
|
||||
# define CAUSAL_END(LABEL) OMNITRACE_CAUSAL_END(LABEL)
|
||||
# include <rocprofiler-systems/causal.h>
|
||||
# define CAUSAL_PROGRESS ROCPROFSYS_CAUSAL_PROGRESS
|
||||
# define CAUSAL_PROGRESS_NAMED(LABEL) ROCPROFSYS_CAUSAL_PROGRESS_NAMED(LABEL)
|
||||
# define CAUSAL_BEGIN(LABEL) ROCPROFSYS_CAUSAL_BEGIN(LABEL)
|
||||
# define CAUSAL_END(LABEL) ROCPROFSYS_CAUSAL_END(LABEL)
|
||||
#elif defined(USE_COZ) && USE_COZ > 0
|
||||
# include <coz.h>
|
||||
# define CAUSAL_PROGRESS COZ_PROGRESS_NAMED(CAUSAL_LABEL)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// MIT License
|
||||
//
|
||||
// Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved.
|
||||
// Copyright (c) 2022-2024 Advanced Micro Devices, Inc. All Rights Reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
@@ -61,7 +61,7 @@ get_clock_cpu_now() noexcept;
|
||||
} // namespace
|
||||
|
||||
//
|
||||
// This implementation works well for Omnitrace
|
||||
// This implementation works well for rocprof-sys
|
||||
// while COZ makes poor predictions
|
||||
//
|
||||
template <bool V>
|
||||
@@ -82,7 +82,7 @@ template bool rng_impl_func<false>(int64_t, uint64_t);
|
||||
|
||||
//
|
||||
// This implementation works well for COZ
|
||||
// while Omnitrace makes poor predictions
|
||||
// while rocprof-sys makes poor predictions
|
||||
//
|
||||
template <bool V>
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user