Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,7 @@ tool_runner::get_initial_environment()
if(!libexec_path.empty()) data.env.set(env::SCRIPT_PATH, libexec_path);

update_verbose_from_env();
const bool verbose = (data.out.verbose > 0);
if(auto llvm_dir = rocprofsys::common::discover_llvm_libdir_for_ompt(verbose);
if(auto llvm_dir = rocprofsys::common::discover_llvm_libdir_for_ompt();
!llvm_dir.empty())
{
data.env.set("LD_LIBRARY_PATH", llvm_dir, update_mode::APPEND);
Expand Down Expand Up @@ -394,7 +393,7 @@ tool_runner::prepare_environment()
rocprofsys::argparse::add_ld_library_path(data);
}

rocprofsys::argparse::add_torch_library_path(data, data.out.verbose > 0);
rocprofsys::argparse::add_torch_library_path(data);
rocprofsys::common::consolidate_env_entries(data.env.current);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ get_initial_environment()
update_env(_env, "ROCPROFSYS_LAUNCHER", "rocprof-sys-causal");

// Ensure libomptarget.so can be found by the target (OpenMP/HIP apps)
if(auto llvm_dir =
rocprofsys::common::discover_llvm_libdir_for_ompt(get_verbose() > 0);
if(auto llvm_dir = rocprofsys::common::discover_llvm_libdir_for_ompt();
!llvm_dir.empty())
{
update_env(_env, "LD_LIBRARY_PATH", llvm_dir, /*append=*/true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ target_link_libraries(
rocprofiler-systems::rocprofiler-systems-compile-options
rocprofiler-systems::rocprofiler-systems-compile-definitions
rocprofiler-systems::rocprofiler-systems-sanitizer
rocprofiler-systems::rocprofiler-systems-common-library
timemory::timemory-headers
timemory::timemory-extensions
timemory::timemory-core
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ target_compile_definitions(
INTERFACE $<BUILD_INTERFACE:ROCPROFSYS_INTERNAL_BUILD=1>
)

target_link_libraries(
rocprofiler-systems-common-library
INTERFACE $<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-logger>
)

if(ROCPROFSYS_BUILD_TESTING)
add_subdirectory(tests)
endif()
28 changes: 17 additions & 11 deletions projects/rocprofiler-systems/source/lib/common/defines.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,23 @@

#define ROCPROFSYS_ATTRIBUTE(...) __attribute__((__VA_ARGS__))
#define ROCPROFSYS_VISIBILITY(MODE) ROCPROFSYS_ATTRIBUTE(visibility(MODE))
#define ROCPROFSYS_PUBLIC_API ROCPROFSYS_VISIBILITY("default")
#define ROCPROFSYS_HIDDEN_API ROCPROFSYS_VISIBILITY("hidden")
#define ROCPROFSYS_INTERNAL_API ROCPROFSYS_VISIBILITY("internal")
#define ROCPROFSYS_INLINE ROCPROFSYS_ATTRIBUTE(always_inline) inline
#define ROCPROFSYS_NOINLINE ROCPROFSYS_ATTRIBUTE(noinline)
#define ROCPROFSYS_HOT ROCPROFSYS_ATTRIBUTE(hot)
#define ROCPROFSYS_COLD ROCPROFSYS_ATTRIBUTE(cold)
#define ROCPROFSYS_CONST ROCPROFSYS_ATTRIBUTE(const)
#define ROCPROFSYS_PURE ROCPROFSYS_ATTRIBUTE(pure)
#define ROCPROFSYS_WEAK ROCPROFSYS_ATTRIBUTE(weak)
#define ROCPROFSYS_PACKED ROCPROFSYS_ATTRIBUTE(__packed__)
#if !defined(ROCPROFSYS_PUBLIC_API)
# define ROCPROFSYS_PUBLIC_API ROCPROFSYS_VISIBILITY("default")
#endif
#if !defined(ROCPROFSYS_HIDDEN_API)
# define ROCPROFSYS_HIDDEN_API ROCPROFSYS_VISIBILITY("hidden")
#endif
#if !defined(ROCPROFSYS_INTERNAL_API)
# define ROCPROFSYS_INTERNAL_API ROCPROFSYS_VISIBILITY("internal")
#endif
#define ROCPROFSYS_INLINE ROCPROFSYS_ATTRIBUTE(always_inline) inline
#define ROCPROFSYS_NOINLINE ROCPROFSYS_ATTRIBUTE(noinline)
#define ROCPROFSYS_HOT ROCPROFSYS_ATTRIBUTE(hot)
#define ROCPROFSYS_COLD ROCPROFSYS_ATTRIBUTE(cold)
#define ROCPROFSYS_CONST ROCPROFSYS_ATTRIBUTE(const)
#define ROCPROFSYS_PURE ROCPROFSYS_ATTRIBUTE(pure)
#define ROCPROFSYS_WEAK ROCPROFSYS_ATTRIBUTE(weak)
#define ROCPROFSYS_PACKED ROCPROFSYS_ATTRIBUTE(__packed__)
#define ROCPROFSYS_PACKED_ALIGN(VAL) \
ROCPROFSYS_PACKED ROCPROFSYS_ATTRIBUTE(__aligned__(VAL))
#define ROCPROFSYS_LIKELY(...) __builtin_expect((__VA_ARGS__), 1)
Expand Down
Loading
Loading