Fixes for Spack

Change-Id: Ib2ea41b8140589fbc74aa297379588cc720e0183


[ROCm/rocprofiler commit: 6c61aa5311]
이 커밋은 다음에 포함됨:
Ammar ELWazir
2023-06-13 15:09:11 +00:00
커밋한 사람 Ammar Elwazir
부모 dfa893ed83
커밋 94e608e1ad
3개의 변경된 파일12개의 추가작업 그리고 9개의 파일을 삭제
+3 -3
파일 보기
@@ -73,7 +73,7 @@ if ( "${ROCM_ROOT_DIR}" STREQUAL "" )
message ( FATAL_ERROR "ROCM_ROOT_DIR is not found." )
endif ()
find_library ( FIND_AQL_PROFILE_LIB "libhsa-amd-aqlprofile64.so" HINTS ${CMAKE_PREFIX_PATH} PATHS ${ROCM_ROOT_DIR} PATH_SUFFIXES lib)
if ( NOT FIND_AQL_PROFILE_LIB )
message ( FATAL_ERROR "AQL_PROFILE not installed. Please install AQL_PROFILE" )
find_library(FIND_AQL_PROFILE_LIB "libhsa-amd-aqlprofile64.so" HINTS ${CMAKE_PREFIX_PATH} PATHS ${ROCM_ROOT_DIR} PATH_SUFFIXES lib REQUIRED)
if(NOT FIND_AQL_PROFILE_LIB)
message("AQL_PROFILE not installed. Please install AQL_PROFILE")
endif()
+6 -4
파일 보기
@@ -48,10 +48,12 @@ ROCPROFILER_EXPORT int rocprofiler_plugin_initialize(const uint32_t rocprofiler_
return -1;
}
auto output_dir = getenv("OUTPUT_PATH");
if (output_dir == nullptr) {
output_dir = "./";
}
const char* output_dir = []() -> const char* {
if (const char* output_dir_internal = getenv("OUTPUT_PATH"); output_dir_internal != nullptr) {
return output_dir_internal;
}
return "./";
}();
// Create the plugin instance.
try {
+3 -2
파일 보기
@@ -23,8 +23,9 @@ THE SOFTWARE.
#ifndef TEST_CTRL_TEST_KERNEL_H_
#define TEST_CTRL_TEST_KERNEL_H_
#include <string.h>
#include <stdint.h>
#include <string>
#include <cstdlib>
#include <cstdint>
#include <map>
#include <string>