diff --git a/.azuredevops/components/ROCmValidationSuite.yml b/.azuredevops/components/ROCmValidationSuite.yml index f4042bdaa..80453472a 100644 --- a/.azuredevops/components/ROCmValidationSuite.yml +++ b/.azuredevops/components/ROCmValidationSuite.yml @@ -13,7 +13,7 @@ parameters: - libyaml-cpp-dev - libpci-dev - libpci3 - - googletest + - libgtest-dev - git - name: rocmDependencies type: object @@ -35,6 +35,10 @@ jobs: - template: /.azuredevops/variables-global.yml - name: HIP_ROCCLR_HOME value: $(Build.BinariesDirectory)/rocm + - name: ROCM_PATH + value: $(Agent.BuildDirectory)/rocm + - name: HIP_INC_DIR + value: $(Agent.BuildDirectory)/rocm pool: vmImage: ${{ variables.BASE_BUILD_POOL }} workspace: @@ -59,10 +63,17 @@ jobs: parameters: dependencyList: ${{ parameters.rocmDependencies }} dependencySource: tag-builds +# Set link to redirect llvm folder + - task: Bash@3 + displayName: create symlink + inputs: + targetType: inline + script: ln -s $(Agent.BuildDirectory)/rocm/llvm $(Agent.BuildDirectory)/rocm/lib/llvm - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/build-cmake.yml parameters: extraBuildFlags: >- -DROCM_PATH=$(Agent.BuildDirectory)/rocm + -DCMAKE_CXX_COMPILER=$(Agent.BuildDirectory)/rocm/llvm/bin/clang++ -DCMAKE_PREFIX_PATH=$(Agent.BuildDirectory)/rocm -DCPACK_PACKAGING_INSTALL_PREFIX=$(Build.BinariesDirectory) -GNinja diff --git a/.azuredevops/components/composable_kernel.yml b/.azuredevops/components/composable_kernel.yml index 2a7a0684a..c4bfc4a2b 100644 --- a/.azuredevops/components/composable_kernel.yml +++ b/.azuredevops/components/composable_kernel.yml @@ -25,7 +25,7 @@ parameters: jobs: - job: composable_kernel - timeoutInMinutes: 210 + timeoutInMinutes: 300 variables: - group: common - template: /.azuredevops/variables-global.yml diff --git a/.azuredevops/components/hipBLASLt.yml b/.azuredevops/components/hipBLASLt.yml index 9e61dae6e..89fb74afc 100644 --- a/.azuredevops/components/hipBLASLt.yml +++ b/.azuredevops/components/hipBLASLt.yml @@ -8,12 +8,13 @@ parameters: - name: aptPackages type: object default: - - ninja-build - - python3-venv - - libmsgpack-dev + - gfortran - git - - python3-pip - libdrm-dev + - libmsgpack-dev + - ninja-build + - python3-pip + - python3-venv - name: pipModules type: object default: @@ -21,12 +22,12 @@ parameters: - name: rocmDependencies type: object default: - - llvm-project - - ROCR-Runtime - clr + - hipBLAS + - llvm-project - rocminfo - rocprofiler-register - - hipBLAS + - ROCR-Runtime jobs: - job: hipBLASLt @@ -58,7 +59,7 @@ jobs: - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/checkout.yml parameters: checkoutRepo: ${{ parameters.checkoutRepo }} - # CI case: download latest default branch build +# CI case: download latest default branch build - ${{ if eq(parameters.checkoutRef, '') }}: - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-rocm.yml parameters: @@ -72,6 +73,27 @@ jobs: dependencySource: tag-builds - script: sudo ln -s $(Agent.BuildDirectory)/rocm /opt/rocm displayName: ROCm symbolic link +# Build and install gtest, lapack, hipBLAS-common +# $(Pipeline.Workspace)/deps is a temporary folder for the build process +# $(Pipeline.Workspace)/s/deps is part of the hipBLASLt repo + - script: mkdir $(Pipeline.Workspace)/deps +# hipBLASLt already has a CMake script for external deps, so we can just run that +# https://github.com/ROCm/hipBLASLt/blob/develop/deps/CMakeLists.txt + - script: cmake $(Pipeline.Workspace)/s/deps + displayName: Configure hipBLASLt external dependencies + workingDirectory: $(Pipeline.Workspace)/deps + - script: make + displayName: Build hipBLASLt external dependencies + workingDirectory: $(Pipeline.Workspace)/deps + - script: sudo make install + displayName: Install hipBLASLt external dependencies + workingDirectory: $(Pipeline.Workspace)/deps +# Set link to redirect llvm folder + - task: Bash@3 + displayName: Symlink to rocm/lib/llvm + inputs: + targetType: inline + script: ln -s $(Agent.BuildDirectory)/rocm/llvm $(Agent.BuildDirectory)/rocm/lib/llvm - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/build-cmake.yml parameters: extraBuildFlags: >- diff --git a/docs/sphinx/requirements.in b/docs/sphinx/requirements.in index 84027c4e2..7bf7f7dfa 100644 --- a/docs/sphinx/requirements.in +++ b/docs/sphinx/requirements.in @@ -1,2 +1,2 @@ -rocm-docs-core==1.4.1 +rocm-docs-core==1.5.0 sphinx-reredirects diff --git a/docs/sphinx/requirements.txt b/docs/sphinx/requirements.txt index 618d5e0d1..c5d03529b 100644 --- a/docs/sphinx/requirements.txt +++ b/docs/sphinx/requirements.txt @@ -16,7 +16,7 @@ beautifulsoup4==4.12.3 # via pydata-sphinx-theme breathe==4.35.0 # via rocm-docs-core -certifi==2024.6.2 +certifi==2024.7.4 # via requests cffi==1.16.0 # via @@ -92,7 +92,7 @@ requests==2.32.3 # via # pygithub # sphinx -rocm-docs-core==1.4.1 +rocm-docs-core==1.5.0 # via -r requirements.in smmap==5.0.1 # via gitdb diff --git a/docs/what-is-rocm.rst b/docs/what-is-rocm.rst index 5303c39e8..2fcb41f2b 100644 --- a/docs/what-is-rocm.rst +++ b/docs/what-is-rocm.rst @@ -100,7 +100,7 @@ Tools ":doc:`AMD SMI `", "C library for Linux that provides a user space interface for applications to monitor and control AMD devices" ":doc:`HIPIFY `", "Translates CUDA source code into portable HIP C++" ":doc:`ROCdbgapi `", "ROCm debugger API library" - "`ROCm Compilers `_", "Clang/LLVM-based compilers" + ":doc:`ROCm compilers <./reference/rocmcc>`", "Clang/LLVM-based compiler" ":doc:`rocminfo `", "Reports system information" ":doc:`ROCProfiler `", "Profiling tool for HIP applications" ":doc:`ROCTracer `", "Intercepts runtime API calls and traces asynchronous activity" @@ -129,6 +129,6 @@ Runtimes .. csv-table:: :header: "Component", "Description" - "`AMD Common Language Runtime (CLR) `_", "Contains source code for AMD's `common language runtimes (CLR) `_ HIP and OpenCL" + ":doc:`AMD Common Language Runtime (CLR) `", "Contains source code for AMD's common language runtimes: HIP and OpenCL" ":doc:`HIP `", "AMD's GPU programming language extension and the GPU runtime" ":doc:`ROCR-Runtime `", "User-mode API interfaces and libraries necessary for host applications to launch compute kernels on available HSA ROCm kernel agents"