[ROCProfiler SDK] Updating README Building & Installing Instructions (#931)
* Updating ROCProfiler SDK README * Fixing ROCProfiler SDK License * Fixing ROCProfiler SDK Installation Steps --------- Co-authored-by: Joseph Macaranas <145489236+jayhawk-commits@users.noreply.github.com>
This commit is contained in:
@@ -21,7 +21,6 @@ trigger:
|
||||
- ISSUE_TEMPLATE
|
||||
- '*.md'
|
||||
- CODEOWNERS
|
||||
- LICENSE
|
||||
|
||||
pr:
|
||||
autoCancel: true
|
||||
@@ -35,7 +34,6 @@ pr:
|
||||
- ISSUE_TEMPLATE
|
||||
- '*.md'
|
||||
- CODEOWNERS
|
||||
- LICENSE
|
||||
drafts: false
|
||||
|
||||
jobs:
|
||||
|
||||
@@ -61,12 +61,16 @@ It can be set by the user in different locations if needed.
|
||||
## Build and Installation
|
||||
|
||||
```bash
|
||||
git clone https://github.com/ROCm/rocprofiler-sdk.git rocprofiler-sdk-source
|
||||
git clone --no-checkout --filter=blob:none https://github.com/ROCm/rocm-systems.git
|
||||
cd rocm-systems
|
||||
git sparse-checkout init --cone
|
||||
git sparse-checkout set projects/rocprofiler-sdk
|
||||
git checkout develop
|
||||
cmake \
|
||||
-B rocprofiler-sdk-build \
|
||||
-DCMAKE_INSTALL_PREFIX=/opt/rocm \
|
||||
-DCMAKE_PREFIX_PATH=/opt/rocm \
|
||||
rocprofiler-sdk-source
|
||||
projects/rocprofiler-sdk
|
||||
|
||||
cmake --build rocprofiler-sdk-build --target all --parallel $(nproc)
|
||||
```
|
||||
|
||||
@@ -6,19 +6,19 @@ include(CMakePackageConfigHelpers)
|
||||
set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME development)
|
||||
|
||||
install(
|
||||
FILES ${PROJECT_SOURCE_DIR}/LICENSE
|
||||
FILES ${PROJECT_SOURCE_DIR}/LICENSE.md
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/${PACKAGE_NAME}
|
||||
COMPONENT core)
|
||||
|
||||
if(ROCPROFILER_BUILD_DOCS)
|
||||
install(
|
||||
FILES ${PROJECT_SOURCE_DIR}/LICENSE
|
||||
FILES ${PROJECT_SOURCE_DIR}/LICENSE.md
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/${PACKAGE_NAME}-docs
|
||||
COMPONENT docs)
|
||||
endif()
|
||||
|
||||
install(
|
||||
FILES ${PROJECT_SOURCE_DIR}/LICENSE
|
||||
FILES ${PROJECT_SOURCE_DIR}/LICENSE.md
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/${PACKAGE_NAME}-tests
|
||||
COMPONENT tests)
|
||||
|
||||
|
||||
@@ -101,6 +101,6 @@ set(${PACKAGE_NAME}_DIR
|
||||
CACHE PATH "${PACKAGE_NAME} build tree install" FORCE)
|
||||
|
||||
install(
|
||||
FILES ${PROJECT_SOURCE_DIR}/LICENSE
|
||||
FILES ${PROJECT_SOURCE_DIR}/LICENSE.md
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/${PACKAGE_NAME}
|
||||
COMPONENT rocpd)
|
||||
|
||||
@@ -101,6 +101,6 @@ set(${PACKAGE_NAME}_DIR
|
||||
CACHE PATH "${PACKAGE_NAME} build tree install" FORCE)
|
||||
|
||||
install(
|
||||
FILES ${PROJECT_SOURCE_DIR}/LICENSE
|
||||
FILES ${PROJECT_SOURCE_DIR}/LICENSE.md
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/${PACKAGE_NAME}
|
||||
COMPONENT roctx)
|
||||
|
||||
@@ -68,15 +68,18 @@ Building ROCprofiler-SDK from source
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
git clone https://github.com/ROCm/rocprofiler-sdk.git rocprofiler-sdk-source
|
||||
git clone --no-checkout --filter=blob:none https://github.com/ROCm/rocm-systems.git
|
||||
cd rocm-systems
|
||||
git sparse-checkout init --cone
|
||||
git sparse-checkout set projects/rocprofiler-sdk
|
||||
git checkout develop
|
||||
cmake \
|
||||
-B rocprofiler-sdk-build \
|
||||
-D ROCPROFILER_BUILD_TESTS=ON \
|
||||
-D ROCPROFILER_BUILD_SAMPLES=ON \
|
||||
-D CMAKE_INSTALL_PREFIX=/opt/rocm \
|
||||
rocprofiler-sdk-source
|
||||
-DCMAKE_INSTALL_PREFIX=/opt/rocm \
|
||||
-DCMAKE_PREFIX_PATH=/opt/rocm \
|
||||
projects/rocprofiler-sdk
|
||||
|
||||
cmake --build rocprofiler-sdk-build --target all --parallel 8
|
||||
cmake --build rocprofiler-sdk-build --target all --parallel $(nproc)
|
||||
|
||||
Installing ROCprofiler-SDK
|
||||
---------------------------
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
License
|
||||
=======
|
||||
|
||||
.. include:: ../../LICENSE
|
||||
.. include:: ../../LICENSE.md
|
||||
|
||||
Viittaa uudesa ongelmassa
Block a user