[rocprofv3] Reorganize rocprofv3.avail python package (#175)
* Reorganize rocprofv3 python package adding Python version candidates review fix fix test fix remove extra line fix the exception handle fix Lint fail fix installation adding checks to check version format disable test for address sanitizer * review comments * Removing extra lines * fix format * Add lib/python3/site-packages to PYTHONPATH in setup-env.sh * rocprof-compute update rocprofv3 avail lib path * Make rocprofv3 python binding build commands consistent with other python bindings * fix cmake * fix rocprof-compute * revert cmake changes * fix rocprofv3 avail python library * fix cmake * fix cmake --------- Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com> Co-authored-by: Sriraksha Nagaraj <Sriraksha.Nagaraj@amd.com> Co-authored-by: Jonathan R. Madsen <Jonathan.Madsen@amd.com> Co-authored-by: systems-assistant[bot] <systems-assistant[bot]@users.noreply.github.com> Co-authored-by: Jonathan R. Madsen <jrmadsen@users.noreply.github.com> Co-authored-by: SrirakshaNag <104580803+SrirakshaNag@users.noreply.github.com> Co-authored-by: Vignesh Edithal <Vignesh.Edithal@amd.com>
This commit is contained in:
zatwierdzone przez
GitHub
rodzic
02294e3852
commit
6b109c11c4
@@ -210,3 +210,23 @@ function(rocprofiler_rocpd_python_bindings _VERSION)
|
||||
DESTINATION ${rocpd_PYTHON_INSTALL_DIRECTORY}
|
||||
COMPONENT rocpd)
|
||||
endfunction()
|
||||
|
||||
function(rocprofiler_rocprofv3_python)
|
||||
set(rocprofv3_PYTHON_INSTALL_DIRECTORY
|
||||
${CMAKE_INSTALL_LIBDIR}/python3/site-packages/rocprofv3)
|
||||
set(rocprofv3_PYTHON_OUTPUT_DIRECTORY
|
||||
${PROJECT_BINARY_DIR}/${rocprofv3_PYTHON_INSTALL_DIRECTORY})
|
||||
set(rocprofv3_PYTHON_SOURCES ${ARGN})
|
||||
if(NOT rocprofv3_PYTHON_SOURCES)
|
||||
message(
|
||||
FATAL_ERROR "rocprofiler_rocprofv3_python requires specifying source files")
|
||||
endif()
|
||||
foreach(_SOURCE ${rocprofv3_PYTHON_SOURCES})
|
||||
configure_file(${CMAKE_CURRENT_LIST_DIR}/${_SOURCE}
|
||||
${rocprofv3_PYTHON_OUTPUT_DIRECTORY}/${_SOURCE} COPYONLY)
|
||||
install(
|
||||
FILES ${rocprofv3_PYTHON_OUTPUT_DIRECTORY}/${_SOURCE}
|
||||
DESTINATION ${rocprofv3_PYTHON_INSTALL_DIRECTORY}
|
||||
COMPONENT tools)
|
||||
endforeach()
|
||||
endfunction()
|
||||
|
||||
Reference in New Issue
Block a user